>
>
> 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
_______________________________________________
Libav-user mailing list
[email protected]
https://ffmpeg.org/mailman/listinfo/libav-user

To unsubscribe, visit link above, or email
[email protected] with subject "unsubscribe".

Reply via email to