This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// It's actually quite simple to extract unregistered sei data using ffmpeg, but I couln't find any documentation about how it's done | |
AVFrameSideData *sd; | |
sd = av_frame_get_side_data(frame, AV_FRAME_DATA_SEI_UNREGISTERED); | |
if (sd) { | |
// First 15 bytes is the uuid, unregistered payload start at index 16 and the | |
// total size is given by sd->size | |
printf("side-data size %ld first-byte %u\n", sd->size, sd->data[16]); | |