[FFmpeg-user] segmenter creates empty m3u8 file

Hector Cano hcano at mebcn.com
Mon Jun 18 17:35:49 CEST 2012


On Mon, Jun 18, 2012 at 5:01 PM, Christian Ebert <blacktrash at gmx.net> wrote:
>
> * Hector Cano on Monday, June 18, 2012 at 14:15:36 +0200
> > On Mon, Jun 18, 2012 at 2:07 PM, Christian Ebert <blacktrash at gmx.net>
> > wrote:
> >> * Christian Ebert on Saturday, June 16, 2012 at 00:29:54 +0100
> >>> I'm trying to segment an mp4 into a m3u8 playlist. My 2 attempts
> >>> so far result in an empty m3u8 file. What am I doing wrong?
> >>
> >> Ideas anyone?
> >
> > I don't know for sure if this is the problem, but I always specify the
> > segment length (in seconds)
> > -segment_time 10
> >
> > I also had some quirks with the list contents (though the segments were
> > correctly created) and had to specify a
> >
> > -segment_list_size N
> >
> > where N is a number greater than the expected number of segments.
>
> -segment_list_size triggers some content to be written to the
> test.m3u8 file - not very useful though, basically the same as
> $ ls -1 *.ts > test.m3u8
> But the manual says so, so I guess I cannot complain, and have to
> look for a "real" segmenter, or experiment with creating an m3u8
> myself.
>

Have you tried including the desired segment length?

-segment_time 10

That should produce 10 second long segments, as far as I have tested.


More information about the ffmpeg-user mailing list