[Ffmpeg-devel] Offer an analyse about the broken mpegts in ffmpeg

Martin Alexander Walschik walschik
Mon Mar 12 16:18:58 CET 2007


Hi Ben,

thanks for your answere.

2007/3/12, Benoit Fouet <benoit.fouet at purplelabs.com>:
>
> Hi,
>
> Martin Alexander Walschik wrote:
> > The ffmpeg-command and output (-b parameter is needed by me?)
> >
> > alex at alex-linux:~/video$ ffmpeg-alex -i Dracula_1930.mpg -r 25 -g 50 -s
> > 720x576 -aspect 4:3 -b 384 -maxrate 6000 -ps 1024 -bufsize 128000 -qmax
> 3
> > -bf 2 -er 3 -benchmark -hex -vstats -f mpegts -vcodec mpeg2video
> > Dracula_1930_ts.mpg
> can you please try with -b 384k ?



Yes, here is the output:

alex at alex-linux:~/video$ ffmpeg-alex -i Dracula_1930.mpg -r 25 -g 50 -s
720x576 -aspect 4:3 -b 384k -ps 1024 -bufsize 128000 -qmax 3 -bf 2 -er 3
-benchmark -hex -vstats -f mpegts -vcodec mpeg2video Dracula_1930_ts.mpg
FFmpeg version SVN-r8287, Copyright (c) 2000-2007 Fabrice Bellard, et al.
  configuration:
  libavutil version: 49.3.0
  libavcodec version: 51.38.0
  libavformat version: 51.10.0
  built on Mar  7 2007 15:05:31, gcc: 4.0.3 (Ubuntu 4.0.3-1ubuntu5)
Input #0, mpeg, from 'Dracula_1930.mpg':
  Duration: 00:01:49.3, start: 0.270133, bitrate: 3242 kb/s
  Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480, 9250 kb/s,
23.98fps(r)
  Stream #0.1[0x1c0]: Audio: mp2, 48000 Hz, stereo, 192 kb/s
File 'Dracula_1930_ts.mpg' already exists. Overwrite ? [y/N] y
Output #0, mpegts, to 'Dracula_1930_ts.mpg':
  Stream #0.0: Video: mpeg2video, yuv420p, 720x576, q=2-3, 384 kb/s, 25.00fps(c)
  Stream #0.1: Audio: mp2, 48000 Hz, stereo, 64 kb/s
Stream mapping:
  Stream #0.0 -> #0.0
  Stream #0.1 -> #0.1
Press [q] to stop encoding
[mpeg2video @ 0x8407aa0]rc buffer underflow
[....]
frame= 2765 q=31.0 Lsize=   50687kB time=110.6 bitrate=3755.7kbits/s
video:40558kB audio:864kB global headers:0kB muxing overhead 22.365805%
bench: utime=75.565s

You are right, i?ve change to -b 384k and removed -maxrate

The new File and error-log is under:

http://134.102.96.93/~alex/ffmpeg/set1/error-log.txt
http://134.102.96.93/~alex/ffmpeg/set1/Dracula_1930_ts.mpg

regards
  Martin Alexander Walschik




More information about the ffmpeg-devel mailing list