On 15.01.2019 23:41, Michael Dirks wrote:
On 15.01.2019 23:05, michael.di...@xaymar.com wrote:
From: Michael Fabian 'Xaymar' Dirks <i...@xaymar.com>

Adds support for the pict_type field in AVFrame to amf_h264 and amf_h265 simultaneously. This field is needed in cases where the application wishes to override the frame type with another one, such as forcefully inserting a key frame for chapter markers or similar.

Additionally this abuses AV_PICTURE_TYPE_S for marking Skip frames, a special type of frame in AVC, SVC and HEVC which is a flag for the decoder to repeat the last frame.
This patch has been tested with the small tool I wrote here: https://github.com/Xaymar/ffmpeg-test. It works in both H264 and H265 and produces the correct sequence of IDR, I, P and Skip frames - including the visual corruption that AMD's Skip frames have.

As there currently seems to be no active maintainer for amfenc files, is there any chance of this getting merged into ffmpeg? Personally I can work with a patch for ffmpeg, but it makes building the project a bit more difficult (integrating make plus cross compiling tools is a bit much).

Sincerely
Michael Fabian 'Xaymar' Dirks
_______________________________________________
ffmpeg-devel mailing list
ffmpeg-devel@ffmpeg.org
http://ffmpeg.org/mailman/listinfo/ffmpeg-devel

Reply via email to