Sep. 15th, 2011

victor_sudakov: (Default)
ffmpeg -i file.mp3 -acodec copy -f rtp rtp://239.8.8.8:5000 -re

В плеере, например в VLC, указываешь rtp://239.8.8.8:5000 и слушаешь.

Главный секрет в ключике "-re". "With -re you read the input at native frame rate, so you will be sending it as long as the file duration.". Без этого ключика ffmpeg выплевывает файл в сеть на максимальной скорости и завершается, а VLC играет сколько успел накопить в буфере, квакает и замолкает.

И ведь я не сам догадался про -re, бился полдня и в конце концов спросил в рассылке: http://ffmpeg.org/pipermail/ffmpeg-user/2011-September/002333.html

Продолжение в http://victor-sudakov.dreamwidth.org/68975.html

Profile

victor_sudakov: (Default)
Виктор Судаков

December 2024

S M T W T F S
1234567
891011121314
15161718192021
22232425262728
293031    

Most Popular Tags

Style Credit

Expand Cut Tags

No cut tags
Page generated Aug. 25th, 2025 05:50 am
Powered by Dreamwidth Studios