[FFmpeg-user] Sending a UDP stream out via HLS

Moritz Barsnick barsnick at gmx.net
Tue Apr 11 15:28:45 EEST 2017

On Mon, Apr 10, 2017 at 17:50:53 +0100, Simon Brown wrote:
> ffmpeg -i udp://@65111 -f hls -hls_time 2 -hls_list_size 5 -vcodec copy
> -acodec copy browser.m3u8
> I get a browser.m3u8 file and browser0.ts
> However, browser0.ts doesn't change to browser1.ts at any stage and just
> keeps growing.  The status information as it's doing this shows speed as
> 1.0x (or slightly above), but I'd expect that given that the stream coming
> in is in real time.  If I press 'q' to quit it then tells me that it copied
> 0kb of video but eg 162kb of audio.  And the resultant browser0.ts does
> indeed just have audio packets in it (and some TS control packets).

Does it work if you try to encode this UDP input to a single file, for
the same ~23 seconds? I think your video stream may have a (timestamp)
offset of more than thos 23 seconds, and never even deliver any frames
to be represented during this time. But I may be guessing incorrectly.

> What am I doing wrong?

- You're not providing the complete, uncut console output.
- You're using a quite old version of ffmpeg, please try with latest.
  Your version is from September last year:
>     encoder         : Lavf57.49.100

If there happens to have been a bug, it may have been resolved in those
seven months - always try latest if you think you have encountered an


More information about the ffmpeg-user mailing list