[FFmpeg-devel] [PATCH v3 0/3] optimize frame dumping and fix missing start codes

hwrenx hwrenx at 126.com
Fri Jul 12 18:21:31 EEST 2019


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 for missing start code
  lavc/libdavs2.c: change decoder info level
  lavc/libdavs2.c: use decoder data directly instead of memcpy

 libavcodec/avs2_parser.c |  4 +++-
 libavcodec/libdavs2.c    | 58 ++++++++++++++++++++++++++++--------------------
 2 files changed, 37 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