[FFmpeg-devel] [PATCH] amfenc: Add support for pict_type field

Michael Dirks michael.dirks at xaymar.com
Fri Feb 1 20:25:16 EET 2019

On 15.01.2019 23:41, Michael Dirks wrote:
> On 15.01.2019 23:05, michael.dirks at xaymar.com wrote:
>> From: Michael Fabian 'Xaymar' Dirks <info at 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).

Michael Fabian 'Xaymar' Dirks

More information about the ffmpeg-devel mailing list