[FFmpeg-user] Bad keyframes when encoding to the ogg container format

Robert McIntyre rlm at mit.edu
Mon Feb 13 01:04:10 CET 2012


I updated to the latest version of ffmpeg and re-encoded my video, but
I still get the error message "[ogg @ 0x121f2a0] Broken file,
keyframes not correctly marked."

[~/proj/cortex/render] $ ffmpeg -r 25 -i test-pics/%07d.png -b:v 9000k
-vcodec libtheora out-37806.ogg
ffmpeg version N-37806-gf51a072 Copyright (c) 2000-2012 the FFmpeg developers
  built on Feb 13 2012 00:32:35 with gcc 4.5.2
  configuration: --prefix=/usr --mandir=/usr/man --enable-x11grab
--enable-gpl --enable-shared --disable-static --enable-gray
--enable-libtheora --enable-libvorbis
--enable-libxvid --enable-libx264 --enable-gnutls --enable-bzlib
--enable-libmp3lame --enable-pic --disable-stripping
  libavutil      51. 39.100 / 51. 39.100
  libavcodec     54.  1.100 / 54.  1.100
  libavformat    54.  0.100 / 54.  0.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 62.100 /  2. 62.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
Input #0, image2, from 'test-pics/%07d.png':
  Duration: 00:00:02.00, start: 0.000000, bitrate: N/A
    Stream #0:0: Video: png, pal8, 1280x550, 25 fps, 25 tbr, 25 tbn, 25 tbc
Incompatible pixel format 'pal8' for codec 'libtheora', auto-selecting
format 'yuv
420p'
[buffer @ 0x1cf4540] w:1280 h:550 pixfmt:pal8 tb:1/1000000 sar:0/1 sws_param:
[buffersink @ 0x1ced6e0] auto-inserting filter 'auto-inserted scale 0'
between the
 filter 'src' and the filter 'out'
[scale @ 0x1d04100] w:1280 h:550 fmt:pal8 -> w:1280 h:550 fmt:yuv420p flags:0x4
Output #0, ogg, to 'out-37806.ogg':
  Metadata:
    encoder         : Lavf54.0.100
    Stream #0:0: Video: theora, yuv420p, 1280x550, q=2-31, 9000 kb/s,
25 tbn, 25 t
bc
Stream mapping:
  Stream #0:0 -> #0:0 (png -> libtheora)
Press [q] to stop, [?] for help
frame=   14 fps=  0 q=0.0 size=      29kB time=00:00:00.52 bitrate=
462.4kbits/s
Buffer video input changed from size:1280x550 fmt:pal8 to
size:1280x550 fmt:rgba
[scale @ 0x1d04100] w:1280 h:550 fmt:rgba -> w:1280 h:550 fmt:yuv420p flags:0x2
frame=   26 fps= 26 q=0.0 size=      57kB time=00:00:01.04 bitrate=
448.5kbits/s
frame=   38 fps= 25 q=0.0 size=      82kB time=00:00:01.52 bitrate=
443.1kbits/s
frame=   49 fps= 24 q=0.0 size=     193kB time=00:00:01.96 bitrate=
804.8kbits/s
frame=   50 fps= 24 q=0.0 Lsize=     228kB time=00:00:02.00 bitrate=
935.5kbits/s

video:224kB audio:0kB global headers:3kB muxing overhead 0.608261%
[~/proj/cortex/render] $ ffplay out-37806.ogg
ffplay version N-37806-gf51a072 Copyright (c) 2003-2012 the FFmpeg developers
  built on Feb 13 2012 00:32:35 with gcc 4.5.2
  configuration: --prefix=/usr --mandir=/usr/man --enable-x11grab
--enable-gpl --enable-shared --disable-static --enable-gray
--enable-libtheora --enable-libvorbis
--enable-libxvid --enable-libx264 --enable-gnutls --enable-bzlib
--enable-libmp3lame --enable-pic --disable-stripping
  libavutil      51. 39.100 / 51. 39.100
  libavcodec     54.  1.100 / 54.  1.100
  libavformat    54.  0.100 / 54.  0.100
  libavdevice    53.  4.100 / 53.  4.100
  libavfilter     2. 62.100 /  2. 62.100
  libswscale      2.  1.100 /  2.  1.100
  libswresample   0.  6.100 /  0.  6.100
  libpostproc    52.  0.100 / 52.  0.100
[ogg @ 0x121f2a0] Broken file, keyframes not correctly marked.
Input #0, ogg, from 'out-37806.ogg':
  Duration: 00:00:02.00, start: 0.000000, bitrate: 935 kb/s
    Stream #0:0: Video: theora, yuv420p, 1280x550 [SAR 1:1 DAR
128:55], 25 tbr, 25
 tbn, 25 tbc
[ogg @ 0x121f2a0] Broken file, keyframes not correctly marked.0/0   0/0
   3.44 A-V:  0.000 fd=   0 aq=    0KB vq=    0KB sq=    0B f=0/0

this is using the test-images at:
http://aurellem.org/test-pics.tar.bz2

the encoded video is here:
http://aurellem.org/out-37806.ogg
(this is a 2 second video again, just to show that the error message
is still there)

Should I still be seeing the message "[ogg @ 0x121f2a0] Broken file,
keyframes not correctly marked." using the latest ffmpeg?

sincerely,
--Robert McIntyre


More information about the ffmpeg-user mailing list