[FFmpeg-devel] [PATCH v2 2/2] avcodec/h265_metadata_bsf: add option to insert a string as SEI unregistered user data

Mark Thompson sw at jkqxz.net
Mon Jan 6 23:51:34 EET 2020


On 28/12/2019 01:38, Limin Wang wrote:
> On Fri, Dec 27, 2019 at 11:32:40PM +0000, Mark Thompson wrote:
>> On 26/12/2019 01:01, lance.lmwang at gmail.com wrote:
>>> From: Limin Wang <lance.lmwang at gmail.com>
>>>
>>> Signed-off-by: Limin Wang <lance.lmwang at gmail.com>
>>> ---
>>> update to add keyframe NAL checking as H.264 patch for global header
>>
>> This case is much easier in H.265, though - the extradata can include SEI which applies globally, so just put it there rather than splicing it into the stream.
> 
> Mark, are you say put the user data into the extradata? For my case, the string
> in the user data will be updated for every key frame runtime. 

Yes - if you put it in the extradata then it isn't necessary to update any frames in the stream at all.  That ends up being far simpler for global-header streams (MP4 / MKV), and in flat streams (Annex B, TS) the extradata will be spliced in at every seek point by the writer.

- Mark


More information about the ffmpeg-devel mailing list