1
0
mirror of https://github.com/FFmpeg/FFmpeg.git synced 2024-11-21 10:55:51 +02:00
FFmpeg/fftools
Limin Wang 3da35b7cc7 fftools/ffmpeg: fix the wrong bitrate and speed stats
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: Limin Wang <lance.lmwang@gmail.com>
2020-10-31 09:49:10 +08:00
..
cmdutils.c fftools: switch to the new child class iteration API 2020-06-10 12:36:44 +02:00
cmdutils.h fftools: Use right function signature and pointers 2019-08-15 01:26:21 +02:00
ffmpeg_filter.c fftools, libavcodec, libavfilter: Add const to some AVCodec * 2020-09-11 14:42:36 +02:00
ffmpeg_hw.c ffmpeg: Don't require a known device to pass a frames context to an encoder 2020-05-03 16:04:27 +01:00
ffmpeg_opt.c ffmpeg: add a data size threshold for muxing queue size 2020-10-29 16:59:48 +02:00
ffmpeg_qsv.c ffmpeg: Remove the hw_device_ctx global 2020-04-26 18:38:25 +01:00
ffmpeg_videotoolbox.c Stop hardcoding align=32 in av_frame_get_buffer() calls. 2020-05-22 14:38:57 +02:00
ffmpeg.c fftools/ffmpeg: fix the wrong bitrate and speed stats 2020-10-31 09:49:10 +08:00
ffmpeg.h ffmpeg: add a data size threshold for muxing queue size 2020-10-29 16:59:48 +02:00
ffplay.c ffplay: fix autoexit doesn't work in the case of pb->error 2020-09-08 19:59:17 +02:00
ffprobe.c fftools/ffprobe: use av_timecode_make_smpte_tc_string2 2020-09-13 17:51:57 +02:00
Makefile ffmpeg: remove superfluous custom cuvid hwaccel 2020-03-03 18:11:28 -03:00