How to read data from file as from live source?

Tim Müller tim at centricular.com
Mon Dec 26 16:22:05 UTC 2016


On Mon, 2016-12-26 at 18:54 +0300, sonntex wrote:

> I read mp4 file using filesrc, qtdemux, h264parse and appsink
> elements. The pipeline reads all of data from the file immediately,
> but I want to read it from the file as from live source based on fps.
> How can I do it?

You can use appsink sync=true to make appsink sync to the pipeline
clock, then you get the frames in "real time" according to the
timestamps in the file.

In C code:  g_object_set (appsink, "sync", TRUE, NULL);

Cheers
 -Tim

-- 
Tim Müller, Centricular Ltd - http://www.centricular.com


More information about the gstreamer-devel mailing list