videomixer with videotestsrc and udpsrc
philippe renon
philippe_renon at yahoo.fr
Wed Apr 29 13:29:10 PDT 2015
Thanks Sérgio for your input.
Adding an imagefreeze after the textrender makes a difference.
videomixer name=mixer ! videoconvert ! d3dvideosink \
videotestsrc ! video/x-raw, framerate=10/1 ! mixer. \
udpsrc port=5904 ! textrender ! imagefreeze ! mixer.
With the new pipeline above:- still need to send one upd packet (but just one) for the pipeline to go in Playing state- but, good news, the pipeline starts to play the test video- there is pause before the video animates, the pause duration is proportional to the lapse of time between the pipeline start and the reception of the first packet. The pause (looks like it is dropping the accumulated test video frames).- turning off sync in the d3dvideosink removes the pause. The video will probably lag badly but can't see if that is true with the videotestsrc)
I confirm that imagefreeze makes it impossible to update the text used by textrender.Further udp packets are ignored so the pipeline does not work as intented.
I am pretty sure that there are ways to get the pipeline to work by using external logic, but I'd like to get this pipeline to work from gstreamer cli.
Le Mercredi 29 avril 2015 9h50, Sérgio Agostinho <sergio.r.agostinho at gmail.com> a écrit :
I'm not sure if this will help because the description says "it duplicates the first frame", but try using imagefreeze after your textrender and see what happens.
Cheers
2015-04-28 23:30 GMT+02:00 philippe renon <philippe_renon at yahoo.fr>:
Hi,
I am trying to get this pipeline to work on windows with gstreamer 1.4.5
videomixer name=mixer ! videoconvert ! d3dvideosink \ videotestsrc ! video/x-raw, framerate=10/1 ! mixer. \ udpsrc port=5904 ! textrender ! video/x-raw, framerate=10/1 ! mixer.
This pipeline is supposed to mix a simple test source and rendered text from an udpsrc and render at 10fps.
It _kinda_ works but:- the pipeline stays in Paused state when asked to go to Playing state.- need to send 2 udp packets before the pipeline goes into Playing mode- 1st packet will cause the renderer window to appear (but black)- 2nd packet will move the pipeline in Playing state and will display *one* frame- then pipeline will not display any additional frames unless more packets are sent to the udpsrc.
I have tried to add queue or videorate elements in a lot of places but could not get the pipeline to "run".
Philippe.
_______________________________________________
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/20150429/511f8d1b/attachment.html>
More information about the gstreamer-devel
mailing list