[FFmpeg-user] last frame missing from mpeg2 and mpeg1 encodes
Chris Vincze
chris-v at moving-picture.com
Fri Feb 22 13:43:11 CET 2013
> Is this also reproducible if you use a ten-frame input file?
> If yes, please provide such a sample.
With a ten-frame input I'm getting the right length, but a green bar over the end frame. With a 100 frame input i'm getting the same result as with 1000 frames, one missing frame, a 99 frame output. I'm enclosing both here, with their outputs:
ftp://ftp6.moving-picture.com/private/ffmpeg/
The console from the outputs are below.
Thanks
chris
TEN FRAME:
ffmpeg -i ten_frame.mov' -r 25.0 -vf 'scale=312:176, pad=320:176:4.0:0' -c:v mpeg1video -pix_fmt yuv420p -q:v 1 -c:a mp2 -b:a 192k -r:a 48000 -y 'ten_frame.mpg'
ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Feb 18 2013 20:45:30 with gcc 4.0.1 (GCC) (Apple Inc. build 5493)
configuration: --prefix=/software/ffmpeg/1.1/macos.leopard.i386 --enable-shared --enable-pic --enable-gpl --enable-version3 --enable-nonfree --disable-doc --enable-postproc --enable-avfilter --enable-pthreads --enable-runtime-cpudetect --enable-libx264 --enable-libxvid --enable-libvorbis --enable-libspeex --enable-libtheora --enable-libopenjpeg --extra-ldflags=-L/software/x264/2013.01.08/macos.leopard.i386/lib --extra-ldflags=-L/software/xvidcore/1.3.2/macos.leopard.i386/lib --extra-ldflags=-L/software/xiph.org/2011.09.11/macos.leopard.i386/lib --extra-ldflags=-L/software/openjpeg/1.5.1/macos.leopard.i386/lib --extra-ldflags=-L/software/ffmpeg/1.1/macos.leopard.i386/lib --extra-ldflags='-Wl,-rpath,/software/xiph.org/2011.09.11/macos.leopard.i386/lib' --extra-cflags=-I/software/x264/2013.01.08/macos.leopard.i386/include --extra-cflags=-I/software/xvidcore/1.3.2/macos.leopard.i386/include --extra-cflags=-I/software/xiph.org/2011.09.11/macos.leopard.i386/include --extra-cflags=-I/software/openjpeg/1.5.1/macos libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.106 / 54. 59.106
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.100 / 3. 32.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'ten_frame.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2013-02-22 12:21:01
timecode : 00:00:00:00
Duration: 00:00:00.40, start: 0.000000, bitrate: 579 kb/s
Stream #0:0(eng): Video: prores (apco / 0x6F637061), yuv422p10le, 512x288, 507 kb/s, SAR 1000:1000 DAR 16:9, 25 fps, 25 tbr, 2500 tbn, 2500 tbc
Metadata:
creation_time : 2013-02-22 12:21:01
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Data: none (tmcd / 0x64636D74)
Metadata:
creation_time : 2013-02-22 12:21:05
handler_name : Apple Alias Data Handler
timecode : 00:00:00:00
[mpeg @ 0x183b220] VBV buffer size not set, muxing may fail
Output #0, mpeg, to 'ten_frame.mpg':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
timecode : 00:00:00:00
encoder : Lavf54.59.106
Stream #0:0(eng): Video: mpeg1video, yuv420p, 320x176 [SAR 352:351 DAR 640:351], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Metadata:
creation_time : 2013-02-22 12:21:01
handler_name : Apple Alias Data Handler
Stream mapping:
Stream #0:0 -> #0:0 (prores -> mpeg1video)
Press [q] to stop, [?] for help
frame= 10 fps=0.0 q=1.0 Lsize= 12kB time=00:00:00.36 bitrate= 273.1kbits/s
video:10kB audio:0kB subtitle:0 global headers:0kB muxing overhead 17.995007%
100 FRAME
ffmpeg -i 'hundred_frame.mov' -r 25.0 -vf 'scale=312:176, pad=320:176:4.0:0' -c:v mpeg1video -pix_fmt yuv420p -q:v 1 -c:a mp2 -b:a 192k -r:a 48000 -y 'hundred_frame.mov'
ffmpeg version 1.1 Copyright (c) 2000-2013 the FFmpeg developers
built on Feb 18 2013 20:45:30 with gcc 4.0.1 (GCC) (Apple Inc. build 5493)
configuration: --prefix=/software/ffmpeg/1.1/macos.leopard.i386 --enable-shared --enable-pic --enable-gpl --enable-version3 --enable-nonfree --disable-doc --enable-postproc --enable-avfilter --enable-pthreads --enable-runtime-cpudetect --enable-libx264 --enable-libxvid --enable-libvorbis --enable-libspeex --enable-libtheora --enable-libopenjpeg --extra-ldflags=-L/software/x264/2013.01.08/macos.leopard.i386/lib --extra-ldflags=-L/software/xvidcore/1.3.2/macos.leopard.i386/lib --extra-ldflags=-L/software/xiph.org/2011.09.11/macos.leopard.i386/lib --extra-ldflags=-L/software/openjpeg/1.5.1/macos.leopard.i386/lib --extra-ldflags=-L/software/ffmpeg/1.1/macos.leopard.i386/lib --extra-ldflags='-Wl,-rpath,/software/xiph.org/2011.09.11/macos.leopard.i386/lib' --extra-cflags=-I/software/x264/2013.01.08/macos.leopard.i386/include --extra-cflags=-I/software/xvidcore/1.3.2/macos.leopard.i386/include --extra-cflags=-I/software/xiph.org/2011.09.11/macos.leopard.i386/include --extra-cflags=-I/software/openjpeg/1.5.1/macos libavutil 52. 13.100 / 52. 13.100
libavcodec 54. 86.100 / 54. 86.100
libavformat 54. 59.106 / 54. 59.106
libavdevice 54. 3.102 / 54. 3.102
libavfilter 3. 32.100 / 3. 32.100
libswscale 2. 1.103 / 2. 1.103
libswresample 0. 17.102 / 0. 17.102
libpostproc 52. 2.100 / 52. 2.100
Input #0, mov,mp4,m4a,3gp,3g2,mj2, from 'hundred_frame.mov':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
creation_time : 2013-02-22 12:26:03
timecode : 00:00:00:00
Duration: 00:00:04.00, start: 0.000000, bitrate: 689 kb/s
Stream #0:0(eng): Video: prores (apco / 0x6F637061), yuv422p10le, 512x288, 679 kb/s, SAR 1000:1000 DAR 16:9, 25 fps, 25 tbr, 25 tbn, 25 tbc
Metadata:
creation_time : 2013-02-22 12:26:03
handler_name : Apple Alias Data Handler
Stream #0:1(eng): Data: none (tmcd / 0x64636D74)
Metadata:
creation_time : 2013-02-22 12:25:53
handler_name : Apple Alias Data Handler
timecode : 00:00:00:00
[mpeg @ 0x183bc20] VBV buffer size not set, muxing may fail
Output #0, mpeg, to 'hundred_frame.mpg':
Metadata:
major_brand : qt
minor_version : 537199360
compatible_brands: qt
timecode : 00:00:00:00
encoder : Lavf54.59.106
Stream #0:0(eng): Video: mpeg1video, yuv420p, 320x176 [SAR 352:351 DAR 640:351], q=2-31, 200 kb/s, 90k tbn, 25 tbc
Metadata:
creation_time : 2013-02-22 12:26:03
handler_name : Apple Alias Data Handler
Stream mapping:
Stream #0:0 -> #0:0 (prores -> mpeg1video)
Press [q] to stop, [?] for help
frame= 100 fps=0.0 q=1.0 Lsize= 120kB time=00:00:03.96 bitrate= 248.2kbits/s
video:117kB audio:0kB subtitle:0 global headers:0kB muxing overhead 2.905092%
More information about the ffmpeg-user
mailing list