Simulate v4l2src with filesrc
Sérgio Agostinho
sergio.r.agostinho at gmail.com
Wed Dec 9 03:36:36 PST 2015
Two remarks.
I'm assuming your video is recorded at 40 fps, otherwise the no
duplication/dropping frames requirement is incompatible. Nevertheless your
problem is that you don't have any live element in your decoding pipeline.
If you set the sync property of the fakesink to true, it will start
respecting the timestamps of your frames.
(Irrelevant) Gotta say you picked a inconvenient format for that container.
Avimux cannot handle image/png but avidemux can. :)
Cheers
Sérgio
2015-12-09 11:34 GMT+01:00 mariannasb <mariannasb at yahoo.com.br>:
> I want to be able to simulate a v4l2src using a captured stream with a
> filesrc.
> What Im interested in is how to get a constant fps.
>
> If I run:
> v4l2src ! video/x-raw, framerate=40/1 ! ...some image processing filters...
> ! fakesink
>
> I get frames at 25ms interval (as expected)
>
> If I then swap v4l2src for filesrc:
> filesrc location=video.avi ! decodebin ! video/x-raw, framerate=40/1 !
> ...some image processing filters... ! fakesink
>
> I get frames at 15ms interval (which is the time that the image filters
> take
> to process the image).
> How can I make the frames come out at 25ms interval instead?
> Note: duplicating/dropping frames is unacceptable
>
> The file is an avi of made of png images...
>
> I have also tried using multifilesrc caps="image/png, framerate=40/1" !
> pngdec ! ... ! fakesink
> with similar results
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/Simulate-v4l2src-with-filesrc-tp4674823.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20151209/e4b1a383/attachment.html>
More information about the gstreamer-devel
mailing list