[FFmpeg-user] Encoding to mpeg2video results in buffer underflows

Carl Eugen Hoyos cehoyos at ag.or.at
Sat Dec 29 19:06:01 CET 2012


Frank Häfemeier <ffmpeg <at> frank.haefemeier.eu> writes:

> Am Sonntag, den 09.12.2012, 03:07 +0100 schrieb Frank Häfemeier:
> > Hi Carl,
> > [...]
> > I upoload a sample video file and console output to the FTP server with
> > the name 'h264_mpeg2video_rc_buffer_underflow.ts' and
> > 'h264_mpeg2video_rc_buffer_underflow.txt'.
> > 
> > Don't hesitate to ask if you need further help.
> 
> Does a ticket exists so I can track it or is it fixed maybe?

Sorry for forgetting about this problem!

I just tested with the sample (and command line) you uploaded, 
the problem does not appear to be reproducible anymore.

Carl Eugen

$ ffmpeg -i h264_mpeg2video_rc_buffer_underflow.ts -target pal-dvd -f mpeg2video
out.m2v
ffmpeg version N-48278-g925c9f4 Copyright (c) 2000-2012 the FFmpeg developers
  built on Dec 29 2012 19:04:51 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      52. 12.100 / 52. 12.100
  libavcodec     54. 81.100 / 54. 81.100
  libavformat    54. 50.104 / 54. 50.104
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 30.101 /  3. 30.101
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[h264 @ 0x1cce9e0] mmco: unref short failure
    Last message repeated 2 times
[mpegts @ 0x1cca7c0] max_analyze_duration 5000000 reached at 5000000
Input #0, mpegts, from 'h264_mpeg2video_rc_buffer_underflow.ts':
  Duration: 00:00:20.14, start: 1.400000, bitrate: 6964 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
Output #0, mpeg2video, to 'out.m2v':
  Metadata:
    encoder         : Lavf54.50.104
    Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR 16:9],
q=2-31, 6000 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> mpeg2video)
Press [q] to stop, [?] for help
[h264 @ 0x1ea3260] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x2041a00] mmco: unref short failure
frame=  505 fps=214 q=2.0 Lsize=   11024kB time=00:00:20.16
bitrate=4479.4kbits/s dup=3 drop=493
video:11024kB audio:0kB subtitle:0 global headers:0kB muxing overhead 0.000000%

$ ffmpeg -i h264_mpeg2video_rc_buffer_underflow.ts -target pal-dvd out.vob
ffmpeg version N-48278-g925c9f4 Copyright (c) 2000-2012 the FFmpeg developers
  built on Dec 29 2012 19:04:51 with gcc 4.7 (SUSE Linux)
  configuration: --enable-gpl
  libavutil      52. 12.100 / 52. 12.100
  libavcodec     54. 81.100 / 54. 81.100
  libavformat    54. 50.104 / 54. 50.104
  libavdevice    54.  3.102 / 54.  3.102
  libavfilter     3. 30.101 /  3. 30.101
  libswscale      2.  1.103 /  2.  1.103
  libswresample   0. 17.102 /  0. 17.102
  libpostproc    52.  2.100 / 52.  2.100
[h264 @ 0x27c79a0] mmco: unref short failure
    Last message repeated 2 times
[mpegts @ 0x27c3780] max_analyze_duration 5000000 reached at 5000000
Input #0, mpegts, from 'h264_mpeg2video_rc_buffer_underflow.ts':
  Duration: 00:00:20.14, start: 1.400000, bitrate: 6964 kb/s
  Program 1
    Metadata:
      service_name    : Service01
      service_provider: FFmpeg
    Stream #0:0[0x100]: Video: h264 (Main) ([27][0][0][0] / 0x001B), yuv420p,
1280x720 [SAR 1:1 DAR 16:9], 50 fps, 50 tbr, 90k tbn, 100 tbc
Output #0, dvd, to 'out.vob':
  Metadata:
    encoder         : Lavf54.50.104
    Stream #0:0: Video: mpeg2video, yuv420p, 720x576 [SAR 64:45 DAR 16:9],
q=2-31, 6000 kb/s, 90k tbn, 25 tbc
Stream mapping:
  Stream #0:0 -> #0:0 (h264 -> mpeg2video)
Press [q] to stop, [?] for help
[h264 @ 0x299c220] mmco: unref short failure
    Last message repeated 1 times
[h264 @ 0x2b3a9c0] mmco: unref short failure
frame=  505 fps=211 q=2.0 Lsize=   11262kB time=00:00:20.16
bitrate=4576.3kbits/s dup=3 drop=493
video:11024kB audio:0kB subtitle:0 global headers:0kB muxing overhead 2.163261%



More information about the ffmpeg-user mailing list