[FFmpeg-user] segmenter creates empty m3u8 file

Hector Cano hcano at mebcn.com
Mon Jun 18 14:15:36 CEST 2012


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.


>
> > ts:
> >
> > $ ffmpeg -i ../test.mp4 -map 0 -bsf h264_mp4toannexb -c copy -f segment
> -segment_list test.m3u8 test%03d.ts
> > ffmpeg version N-41632-g2b1fc56 Copyright (c) 2000-2012 the FFmpeg
> developers
> >  built on Jun 16 2012 00:15:35 with gcc 4.0.1 (Apple Inc. build 5493)
> >  configuration: --enable-gpl --enable-version3 --enable-nonfree
> --disable-network --disable-ffserver --disable-ffplay --enable-shared
> --enable-pthreads --enable-postproc --enable-libx264 --enable-libxvid
> --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis
> --enable-libvpx --enable-librtmp --extra-cflags=-I/sw/include
> --extra-libs=-L/sw/lib
> >  libavutil      51. 58.100 / 51. 58.100
> >  libavcodec     54. 25.100 / 54. 25.100
> >  libavformat    54.  6.101 / 54.  6.101
> >  libavdevice    54.  0.100 / 54.  0.100
> >  libavfilter     2. 80.100 /  2. 80.100
> >  libswscale      2.  1.100 /  2.  1.100
> >  libswresample   0. 15.100 /  0. 15.100
> >  libpostproc    52.  0.100 / 52.  0.100
> > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../test.mp4':
> >  Metadata:
> >    major_brand     : M4V
> >    minor_version   : 1
> >    compatible_brands: isomavc1M4A M4V mp42
> >    creation_time   : 2011-02-20 15:53:17
> >    title           : Cowboy Canoe Coma - Trailer 1
> >  Duration: 00:04:14.30, start: 0.000000, bitrate: 626 kb/s
> >    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 /
> 0x31637661), yuv420p, 512x384 [SAR 1:1 DAR 4:3], 541 kb/s, 25 fps, 25 tbr,
> 100 tbn, 50 tbc
> >    Metadata:
> >      creation_time   : 2011-02-20 15:53:17
> >      handler_name    : test
> >    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
> s16, 80 kb/s
> >    Metadata:
> >      creation_time   : 2011-02-20 15:53:18
> >      handler_name    : test
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > Output #0, segment, to 'test%03d.ts':
> >  Metadata:
> >    major_brand     : M4V
> >    minor_version   : 1
> >    compatible_brands: isomavc1M4A M4V mp42
> >    creation_time   : 2011-02-20 15:53:17
> >    title           : Test
> >    encoder         : Lavf54.6.101
> >    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 512x384
> [SAR 1:1 DAR 4:3], q=2-31, 541 kb/s, 25 fps, 90k tbn, 100 tbc
> >    Metadata:
> >      creation_time   : 2011-02-20 15:53:17
> >      handler_name    : test
> >    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
> 80 kb/s
> >    Metadata:
> >      creation_time   : 2011-02-20 15:53:18
> >      handler_name    : test
> > Stream mapping:
> >  Stream #0:0 -> #0:0 (copy)
> >  Stream #0:1 -> #0:1 (copy)
> > Press [q] to stop, [?] for help
> > [adts @ 0x2831220] Encoder did not produce proper pts, making some up.
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > muxrate VBR, pcr every 10 pkts, sdt every 200, pat/pmt every 40 pkts
> 0.0kbits/s
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > [mpegts @ 0x2811820] muxrate VBR, pcr every 10 pkts, sdt every 200,
> pat/pmt every 40 pkts
> > frame= 6356 fps=0.0 q=-1.0 Lsize=       0kB time=00:04:14.21 bitrate=
> 0.0kbits/s
> > video:16807kB audio:2511kB global headers:0kB muxing overhead
> -100.000000%
> > $ ls -l | head -3
> > total 46472
> > -rw-r--r--  1 chris  wheel        0 Jun 16 00:26 test.m3u8
> > -rw-r--r--  1 chris  wheel   225036 Jun 16 00:26 test000.ts
> >
> > m4v:
> >
> > $ ffmpeg -i ../test.mp4 -map 0 -c copy -f segment -segment_list
> test.m3u8 test%03d.m4v
> > ffmpeg version N-41632-g2b1fc56 Copyright (c) 2000-2012 the FFmpeg
> developers
> >  built on Jun 16 2012 00:15:35 with gcc 4.0.1 (Apple Inc. build 5493)
> >  configuration: --enable-gpl --enable-version3 --enable-nonfree
> --disable-network --disable-ffserver --disable-ffplay --enable-shared
> --enable-pthreads --enable-postproc --enable-libx264 --enable-libxvid
> --enable-libfaac --enable-libmp3lame --enable-libtheora --enable-libvorbis
> --enable-libvpx --enable-librtmp --extra-cflags=-I/sw/include
> --extra-libs=-L/sw/lib
> >  libavutil      51. 58.100 / 51. 58.100
> >  libavcodec     54. 25.100 / 54. 25.100
> >  libavformat    54.  6.101 / 54.  6.101
> >  libavdevice    54.  0.100 / 54.  0.100
> >  libavfilter     2. 80.100 /  2. 80.100
> >  libswscale      2.  1.100 /  2.  1.100
> >  libswresample   0. 15.100 /  0. 15.100
> >  libpostproc    52.  0.100 / 52.  0.100
> > Input #0, mov,mp4,m4a,3gp,3g2,mj2, from '../test.mp4':
> >  Metadata:
> >    major_brand     : M4V
> >    minor_version   : 1
> >    compatible_brands: isomavc1M4A M4V mp42
> >    creation_time   : 2011-02-20 15:53:17
> >    title           : Cowboy Canoe Coma - Trailer 1
> >  Duration: 00:04:14.30, start: 0.000000, bitrate: 626 kb/s
> >    Stream #0:0(und): Video: h264 (Constrained Baseline) (avc1 /
> 0x31637661), yuv420p, 512x384 [SAR 1:1 DAR 4:3], 541 kb/s, 25 fps, 25 tbr,
> 100 tbn, 50 tbc
> >    Metadata:
> >      creation_time   : 2011-02-20 15:53:17
> >      handler_name    : test
> >    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
> s16, 80 kb/s
> >    Metadata:
> >      creation_time   : 2011-02-20 15:53:18
> >      handler_name    : test
> > Output #0, segment, to 'test%03d.m4v':
> >  Metadata:
> >    major_brand     : M4V
> >    minor_version   : 1
> >    compatible_brands: isomavc1M4A M4V mp42
> >    creation_time   : 2011-02-20 15:53:17
> >    title           : Test
> >    encoder         : Lavf54.6.101
> >    Stream #0:0(und): Video: h264 (avc1 / 0x31637661), yuv420p, 512x384
> [SAR 1:1 DAR 4:3], q=2-31, 541 kb/s, 25 fps, 100 tbn, 100 tbc
> >    Metadata:
> >      creation_time   : 2011-02-20 15:53:17
> >      handler_name    : test
> >    Stream #0:1(und): Audio: aac (mp4a / 0x6134706D), 44100 Hz, stereo,
> 80 kb/s
> >    Metadata:
> >      creation_time   : 2011-02-20 15:53:18
> >      handler_name    : test
> > Stream mapping:
> >  Stream #0:0 -> #0:0 (copy)
> >  Stream #0:1 -> #0:1 (copy)
> > Press [q] to stop, [?] for help
> > frame= 6356 fps=0.0 q=-1.0 Lsize=       0kB time=00:04:14.21 bitrate=
> 0.0kbits/s
> > video:16807kB audio:2511kB global headers:0kB muxing overhead
> -100.000000%
> > $ ls -l | head -3
> > total 39224
> > -rw-r--r--  1 chris  wheel        0 Jun 16 00:20 test.m3u8
> > -rw-r--r--  1 chris  wheel   116777 Jun 16 00:20 test000.m4v
>
> --
> theatre - books - texts - movies
> Black Trash Productions at home: http://www.blacktrash.org
> Black Trash Productions on Facebook:
> http://www.facebook.com/blacktrashproductions
> _______________________________________________
> ffmpeg-user mailing list
> ffmpeg-user at ffmpeg.org
> http://ffmpeg.org/mailman/listinfo/ffmpeg-user
>


More information about the ffmpeg-user mailing list