UNCLASSIFIED I am using FFMPEG/libavformat to try to write KLV metadata to the private stream of an MPEG-TS file. I use av_write_frame() to write the KLV at the appropriate frame on the video however I have to pad the packet to force the packet to be written at the correct time. If I don't do this, the then the packet is not big enough to meet the DEFAULT_PES_PAYLOAD_SIZE limit to enable the packet to the flush and it buffers until sufficient data is ready. My issue is that when I pad manually, the Adaptation field is not set indicating that padding/stuffing follows. I have had a look at the mpegtsenc.c file and it indicates that the packet is written immediately if the codec is CODEC_TYPE_SUBTITLE, otherwise is waits until there is enough data. Is there a way to force this write without waiting for the PES payload limit to be reached? Thanks, Paul
IMPORTANT: This email remains the property of the Department of Defence and is subject to the jurisdiction of section 70 of the Crimes Act 1914. If you have received this email in error, you are requested to contact the sender and delete the email. _______________________________________________ libav-user mailing list [email protected] https://lists.libav.org/mailman/listinfo/libav-user
