New submission from SenKi <[email protected]>:

Hi All,

I have a MPEG2 recording (hardware encoded with a PVR card) that I want to clip,
but when I clip it throws a bunch of buffer underflow warnings and the resulting
clip is actually some "x" seconds larger than the requested clip duration.

For exmaple:

 ffmpeg -ss 00:00:00 -t 00:01:11 -i /home/recordings/recording.mpg -acodec copy
-vcodec copy -async 1 -y recording-clip1.mpg

results in a 1:19 second video instead of a 1:11 sec video, with a bunch of
buffer underflow warnings.

Please download the video file from:
http://dl.getdropbox.com/u/741809/1052_20091008140000-head.mpg

Sen

----------
files: buffer_underflow.txt
messages: 7378
priority: normal
status: new
substatus: new
title: buffer underflow while Clipping
type: bug

_____________________________________________________
FFmpeg issue tracker <[email protected]>
<https://roundup.ffmpeg.org/roundup/ffmpeg/issue1461>
_____________________________________________________
FFmpeg version 0.5, Copyright (c) 2000-2009 Fabrice Bellard, et al.
  configuration: --enable-static --enable-libmp3lame --enable-gpl 
--enable-libfaad --enable-libvorbis --enable-pthreads --enable-libfaac 
--enable-libxvid --enable-postproc --enable-libamr-nb --enable-libamr-wb 
--enable-x11grab --enable-libgsm --enable-libx264 --enable-libtheora 
--enable-swscale --enable-libdc1394 --enable-nonfree --disable-stripping 
--enable-avfilter --enable-libdirac --disable-decoder=libdirac 
--enable-libschroedinger --disable-encoder=libschroedinger --disable-shared
  libavutil     49.15. 0 / 49.15. 0
  libavcodec    52.20. 0 / 52.20. 0
  libavformat   52.31. 0 / 52.31. 0
  libavdevice   52. 1. 0 / 52. 1. 0
  libavfilter    0. 4. 0 /  0. 4. 0
  libswscale     0. 7. 1 /  0. 7. 1
  libpostproc   51. 2. 0 / 51. 2. 0
  built on Sep 10 2009 16:58:42, gcc: 4.3.2

Seems stream 0 codec frame rate differs from container frame rate: 50.00 (50/1) 
-> 25.00 (25/1)
Input #0, mpeg, from '/home/dndvr/videos/miq1/1052_20091008140000.mpg':
  Duration: 00:59:52.32, start: 0.156111, bitrate: 5048 kb/s
    Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 
4:3], 6000 kb/s, 25 tbr, 90k tbn, 50 tbc
    Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
Output #0, mpeg, to '1052_20091008140000-clip1.mpg':
    Stream #0.0, 1/90000: Video: mpeg2video, yuv420p, 720x576 [PAR 16:15 DAR 
4:3], 1/25, q=2-31, 6000 kb/s, 90k tbn, 25 tbc
    Stream #0.1, 1/90000: Audio: mp2, 48000 Hz, stereo, s16, 384 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
timestamp discontinuity 20328000, new offset= -20484111
timestamp discontinuity -168000, new offset= -20316111
timestamp discontinuity 41080000, new offset= -61396111
timestamp discontinuity -41056000, new offset= -20340111
timestamp discontinuity 48984000, new offset= -69324111
timestamp discontinuity -7928000, new offset= -61396111
[mpeg @ 0xa191860]buffer underflow i=0 bufi=1261 size=18696
[mpeg @ 0xa191860]buffer underflow i=0 bufi=3290 size=18696
[mpeg @ 0xa191860]buffer underflow i=0 bufi=5331 size=18696
[mpeg @ 0xa191860]buffer underflow i=0 bufi=7372 size=18696
[mpeg @ 0xa191860]buffer underflow i=0 bufi=9413 size=18696
[mpeg @ 0xa191860]buffer underflow i=0 bufi=11454 size=18696
[mpeg @ 0xa191860]buffer underflow i=0 bufi=13495 size=18696
[mpeg @ 0xa191860]buffer underflow i=0 bufi=15536 size=18696
[mpeg @ 0xa191860]buffer underflow i=0 bufi=17577 size=18696
[mpeg @ 0xa191860]buffer underflow i=0 bufi=1210 size=21872
[mpeg @ 0xa191860]buffer underflow i=0 bufi=3239 size=21872
[mpeg @ 0xa191860]buffer underflow i=0 bufi=5280 size=21872
[mpeg @ 0xa191860]buffer underflow i=0 bufi=7321 size=21872
[mpeg @ 0xa191860]buffer underflow i=0 bufi=9362 size=21872
    Last message repeated 1 times
[mpeg @ 0xa191860]buffer underflow i=0 bufi=11403 size=21872
[mpeg @ 0xa191860]buffer underflow i=0 bufi=13444 size=21872
[mpeg @ 0xa191860]buffer underflow i=0 bufi=15485 size=21872
[mpeg @ 0xa191860]buffer underflow i=0 bufi=17526 size=21872
[mpeg @ 0xa191860]buffer underflow i=0 bufi=19567 size=21872
[mpeg @ 0xa191860]buffer underflow i=0 bufi=21608 size=21872
frame= 1775 fps=  0 q=-1.0 Lsize=   42708kB time=79.33 bitrate=4410.3kbits/s 
dup=0 drop=0
video:39198kB audio:3305kB global headers:0kB muxing overhead 0.482753%

Reply via email to