[Libav-user] Download AVPacket from disk

wolverin wolverin82 at mail.ru
Tue Mar 21 09:36:43 EET 2023


Hello.
 
I am performing circular recording on a MJPEG flash drive of frames from a v4l2 camera. I read through av_read_frame(pFmtCtxInp, pPck) and write fwrite(pPck->data, 1, pPck->size, pf)
 
Now I want to read and send via rtp using ffmpeg.
Tell me, is there a standard way in ffmpeg to re-fill the AVPacket structure from the buffer I read, or is it enough to assign initialize the data and size fields???
 
Thanks for any help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://ffmpeg.org/pipermail/libav-user/attachments/20230321/7103dc86/attachment.htm>


More information about the Libav-user mailing list