On 28/12/11 20:57, Soren Dreijer wrote:
Heya,
I’m capturing video frames from a Direct3D application and I’d like to
encode them with libav to a video. Since I’m essentially capturing
live from the Direct3D application, I can’t guarantee that my frames
are happening right on the 1/<fps> mark (but I do have the capture
time, of course).
How do I properly set the presentation time for the individual video
frames when calling av_interleaved_write_frame()? The example
‘output-example.c’ assumes all frames are right on the 1/25 mark.
Just set pts according to what you get, that should be enough, best
results could be achieved using a non-interleaving write_frame() though.
lu
--
Luca Barbato
Gentoo/linux
http://dev.gentoo.org/~lu_zero
_______________________________________________
libav-api mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-api