[Libav-user] Download AVPacket from disk
wolverin82 at mail.ru
Tue Mar 21 09:36:43 EET 2023
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...
More information about the Libav-user