[FFmpeg-user] Demuxing HLS stream of fmp4 segments

Dennis Mungai dmngaie at gmail.com
Fri Apr 17 15:38:57 EEST 2020


On Fri, 17 Apr 2020, 15:26 Pedro Pedrosa, <pedrojvpedrosa at gmail.com> wrote:

> Hello all
>
> I'm trying to demux an HLS stream containing fmp4 segments. It works fine
> if I demux from the start of the input but as soon as I add the -ss flag to
> skip to a timecode it no longer produces any output.
>
> I have tested on my own ffmpeg-generated streams and also on a public file
> at
>
> https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8
>
> Exact command that does not work: ffmpeg -ss 00:03:00 -i
>
> https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8
> -y
> <https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8-y>
> -frames 1 -f image2 test.jpg
>
> Usage that works (omit -ss): ffmpeg -i
>
> https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8
> -y
> <https://bitmovin-a.akamaihd.net/content/MI201109210084_1/m3u8s-fmp4/f08e80da-bf1d-4e3d-8899-f0f6155f6efa_video_270_400000.m3u8-y>
> -frames 1 -f image2 test.jpg
>
> Any help would be greatly appreciated
>

What build version of FFmpeg are you using, and on what platform?

Where possible, use a recent build from the master git tip. John Van Sickle
and Zeranoe's static builds should do. Then retest and report back, with
full, uncut console output.

There have been patches published recently that improve FFmpeg's handling
of fragmented mp4.


More information about the ffmpeg-user mailing list