[FFmpeg-devel] [PATCH v4 0/3] optimize frame dumping and fix missing start codes
hwrenx
hwrenx at 126.com
Mon Jul 22 07:23:35 EEST 2019
Version 4:
1. Change info level setting.
2. Remove `Decoder not found` condition.
--------
The previous version 2 patches were deprecated for using
pointer to itself can be unsafe when release frames.
This patch set is mainly about avoiding using memcpy when fetching
frame data, and fixed missing start codes which may cause error
packetization sometime. Default info level of libdavs2 was changed
because we found debug info is useless in most of the time.
hwrenx (3):
lavc/avs2_parser.c: fix missing start code
lavc/libdavs2.c: fix decoder info level setting
lavc/libdavs2.c: reduce memcpy
libavcodec/avs2_parser.c | 4 +++-
libavcodec/libdavs2.c | 61 +++++++++++++++++++++++++++++-------------------
2 files changed, 40 insertions(+), 25 deletions(-)
The performance comparison is like following:
[Platform]
Intel® Core™ i7-8700k CPU @ 3.70GHz × 6 / 16GiB
[Command]
ffmpeg -i test.avs2 -vsync 0 -f null -
[Stream]
7680x4320 yuv420p Random Access
[Original version]
frame= 2669 fps= 23 q=-0.0 Lsize=N/A time=00:00:53.44 bitrate=N/A speed=0.465x
[Optimized version]
frame= 2669 fps= 42 q=-0.0 Lsize=N/A time=00:00:53.44 bitrate=N/A speed=0.836x
--
2.7.4
More information about the ffmpeg-devel
mailing list