[Libav-user] How to get the byte position of a just written av_write_frame?
Strahinja Radman
dr.strashni at gmail.com
Wed Jan 29 08:51:44 EET 2020
>
>
> I've tried looking for callbacks, looking at the packet itself, looking at
> the AVFormatContext, AVIO, AVStream, etc. And I can't find a way to do it.
> Would be really nice if av_write_frame would set the new pos after writing
> the packet to the file.
>
I am guessing that FLV container has a known header size. Maybe you can use
size value of a AVPacket + header + all the AVPackets before and based on
that
calculate what your offset for that IDR packet is? Just an idea, not sure
if it will work.
--
Regards
Strahinja Radman
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20200129/28336c42/attachment.html>
More information about the Libav-user
mailing list