My apologies for not being clear in my original post. The codec I'm using is 
h264 and the container is mp4. How can I determine if this codec supports 
per-frame data? If not,  can you give me pointers on how to do it in the 
bitstream code or on container level?

Thank you in advance

________________________________
Van: Libav-user <libav-user-boun...@ffmpeg.org> namens Nicolas George 
<geo...@nsup.org>
Verzonden: dinsdag 15 februari 2022 19:11
Aan: This list is about using libavcodec, libavformat, libavutil, libavdevice 
and libavfilter. <libav-user@ffmpeg.org>
Onderwerp: Re: [Libav-user] Custom data in AVPacket or AVFrame

Dan Egnor (12022-02-15):
> My understanding of the OP was not that they wanted to embed anything in
> the bitstream but just that they wanted to set a cookie in AVFrame that
> would show up in the corresponding AVPacket (if encoding) or vice versa (if
> decoding), hence the suggestion of reordered_opaque. Quite possibly I
> misunderstood! Maybe the OP can clarify.

The original message has not disappeared, you can re-read it.

"add a custom number [] before I encode it  and I want to retrieve it
back when I decode it."

Once FFmpeg has encoded and muxed, it is done with the data, there is no
connection to a later decoder. Therefore any transmitted data needs to
be in the output file.

--
  Nicolas George
_______________________________________________
Libav-user mailing list
Libav-user@ffmpeg.org
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
libav-user-requ...@ffmpeg.org with subject "unsubscribe".

Reply via email to