[Libav-user] Frame-level metadata
Dzhoshkun Ismail Shakir
dzhoshkun.shakir at gmail.com
Thu Mar 28 17:36:54 EET 2019
I'm trying to programmatically add metadata to each frame of a video
stream. The target encoding is HEVC (via NVENC) stored in an MP4 container.
I haven't had success using any of the following (showing only relevant
code snippets for brevity):
av_dict_set(&frame->metadata, "my-custom-key", data, 0); // data: 23-char string
frame->opaque = malloc(size);
frame->opaque_ref = av_buffer_create(data, size,
av_buffer_default_free, NULL, 0);
Any suggestions what I'm doing wrong? Also, could anyone point me to any
examples how to do this.
Many thanks in advance,
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Libav-user