• Limin Wang's avatar
    fftools/ffmpeg: fix the wrong bitrate and speed stats · 3da35b7c
    Limin Wang authored
    The bitrate and speed stats are wrong if the copyts is enabled.
    Please test with below command:
    wget http://samples.mplayerhq.hu/MPEG2/foxksaz.ts
    ./ffmpeg -y -copyts -i ./foxksaz.ts -c:v libx264 -x264opts \
        nal-hrd=cbr:force-cfr=1 -b:v 3500k -minrate 3500k -maxrate 3500k -bufsize \
        1000k  -c:a mp2 -muxrate 4500k  -vframes 1000 test.ts
    
    before:
    frame= 1000 fps=112 q=-1.0 Lsize=    9063kB time=09:10:12.41 bitrate=   2.2kbits/s speed=3.7e+03x
    after:
    frame= 1000 fps=112 q=-1.0 Lsize=    9062kB time=00:00:15.78 bitrate=4703.4kbits/s speed=1.77x
    Signed-off-by: 's avatarLimin Wang <lance.lmwang@gmail.com>
    3da35b7c
Name
Last commit
Last update
..
Makefile Loading commit data...
cmdutils.c Loading commit data...
cmdutils.h Loading commit data...
ffmpeg.c Loading commit data...
ffmpeg.h Loading commit data...
ffmpeg_filter.c Loading commit data...
ffmpeg_hw.c Loading commit data...
ffmpeg_opt.c Loading commit data...
ffmpeg_qsv.c Loading commit data...
ffmpeg_videotoolbox.c Loading commit data...
ffplay.c Loading commit data...
ffprobe.c Loading commit data...