<div dir="ltr"><div><div><div><div>I am capturing video frames from web cams. These frames are returned from the device asynchronously - that is, not at any constant interval. I want to encode, then write them to a video file via "av_interleaved_write_frame" that was initialized to a specific fps rate. <br>
<br></div>Question: can I simply write out each frame as I receive it, with an appropriate PTS? This would most likely skip expected frames. Also, the captured frame most likely wouldn't be written at the specified fps interval.<br>
<br></div>I am also capturing audio. Since that stream is continuous, I can write out a block of samples at the appropriate fps period (again, via "av_interleaved_write_frame") at the appropriate fps period.<br>
<br></div>I just need some clarifications of this process.<br><br></div>TIA<br><br>ken<br><br></div>