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

Carl Eugen Hoyos ceffmpeg at gmail.com
Fri Feb 1 20:31:09 EET 2019

2019-02-01 19:25 GMT+01:00, Michael Dirks <michael.dirks at xaymar.com>:
> 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

(I don't find this surprising given the history of the AMD patch.)

Could you take over mantainership?

Carl Eugen

More information about the ffmpeg-devel mailing list