On Tue, 26 Feb 2013 12:14:35 +0000, "Eberhard, Holger" 
<[email protected]> wrote:
> Hi,
> I use libav API (libav-0.8.3) to receive RTSP stream from IP camera and show 
> a live view of the IP camera.
> We use an embedded hardware with a h264 decoder. h264 frames retrieved by 
> av_read_frame() are send to the
> decoder and we get live view. This works very well.
> The code snippet shows my usecase running in a thread.
> Now I want use the same setup to show video playback of a MP4 file.
> I am not sure how to setup the playback. Is it possible to use av_read_play() 
> ?
> How is timing handled in this case ?ยด

No, av_read_play() is only useful with network protocols that support this
feature, like RTSP. It does nothing for local files.

A normal non-realtime player would typically use the frame timestamps
(AVFrame.pkt_pts) to figure out when to display a frame.

-- 
Anton Khirnov
_______________________________________________
libav-tools mailing list
[email protected]
https://lists.libav.org/mailman/listinfo/libav-tools

Reply via email to