[FFmpeg-user] convert HLS stream to UDP
Sorin Esanu
sorin at evox.ro
Thu Nov 12 20:19:27 CET 2015
Hello,
I am trying to convert (without transcoding) an HLS stream to UDP and
send it to my computer. For that I use this command, unnder Ubuntu 14.04:
./ffmpeg -i
http://hls.cdn.flosoft.biz/flosoft/smil:twitStreamAll.smil/playlist.m3u8
-map 0:1 -map 0:2 -c:v:0 copy -c:a:0 copy -f mpegts udp://192.168.2.227:1234
I am then using VLC on Windows to view that stream (udp://:1234).
It does not work, as the video it's all some random colored squares and
audio is just some random noise and cracking.
Using same command to save the file local:
./ffmpeg -i
http://hls.cdn.flosoft.biz/flosoft/smil:twitStreamAll.smil/playlist.m3u8
-map 0:1 -map 0:2 -c:v:0 copy -c:a:0 copy test.avi
produces a perfectly readable file that I can view with VLC.
I've tried various options here (with and without transcoding),
multicast... nothing. I get the same unusable video and audio.
Could you tell me what am I missing here? There is no packet loss
between my Windows computer (the one with VLC) and the Ubuntu server.
I've also tried other computers with same result.
Thank you and sorry if this is a trivial question! I do not have
experience playing with video streams, or at least not more than viewing
them in VLC.
Sorin
More information about the ffmpeg-user
mailing list