On Sun, 29 Jan 2017 22:24:12 +0000 (UTC) <berkaydereli-at-yahoo....@ffmpeg.org> wrote:
> Hello devs, > > I have a quick question about passing data from AVFrame to AVPacket. Assume > that we are encoding video and we have a custom metadata that needs to be > handled in a frame accurate manner. The AVFrame can refer to this using the > opaque pointer. However, due to the nature of video coding, the video packet > that we get back when we encode video is not the frame that we have just > pushed to a codec. In this case the packet and the AVFrame gets decoupled. > > What is the best practice to have a reliable flow of metadata from AVFrame to > AVPacket? > Cheers, Generally, side-data. Which needs to be part of the API. (There is no way to add user-defined side-data, unfortunately.) _______________________________________________ ffmpeg-devel mailing list ffmpeg-devel@ffmpeg.org http://ffmpeg.org/mailman/listinfo/ffmpeg-devel