How do I encode KLV packets to an H.264 video using libav*
问题 Currently I am using libav* to encode H.264 videos. I want to add KLVPackets to the bitstream but do not know where to implement it. There is a struct within avcodec, but I am unsure of how to write it out to the frame metadata typedef struct { UID key; int64_t offset; uint64_t length; } KLVPacket; Current FFMPEG code (only left relevant code): av_register_all(); pOutputFormat = av_guess_format(NULL, fileName, NULL); pFormatCtx=avformat_alloc_context(); pVideoStream = av_new_stream(pFormatCtx