videomixer with videotestsrc and udpsrc

Sérgio Agostinho sergio.r.agostinho at gmail.com
Thu Apr 30 01:06:34 PDT 2015


Might be worth looking at the compositor
<http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad-plugins/html/gst-plugins-bad-plugins-compositor.html>
element (as a replacement for the videomixer) which is now in git master. I
think I read somewhere that it is supposed to replace the videomixer in the
future.

If someone could explain the differences between the compositor and
videomixer it would be great. Just from the description I cannot understand
between both.

Cheers


2015-04-29 22:29 GMT+02:00 philippe renon <philippe_renon at yahoo.fr>:

> 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
> <http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-imagefreeze.html>
> "it duplicates the first frame", but try using imagefreeze
> <http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-good-plugins/html/gst-plugins-good-plugins-imagefreeze.html>
> 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/20150430/8f3d6628/attachment-0001.html>


More information about the gstreamer-devel mailing list