Trouble converting from working gst-launch-0.10 to gst-launch-1.0
Sebastian Dröge
sebastian at centricular.com
Sun Dec 15 05:28:25 PST 2013
On So, 2013-12-15 at 13:45 +0200, Leon wrote:
> Hi all,
>
> I'm having trouble converting a running launch from 0.10 to 1.0 and
> would really appreciate any help I can get.
> I'm compositing IP camera streams to display. Works fine on 0.10 but
> nothing displays on 1.0.
> There are no errors, just seems to 'hang'.
>
> The working 0.10 launch is:
>
> gst-launch-0.10 -ev videomixer name=mix ! ffmpegcolorspace ! xvimagesink \
> rtspsrc location=rtsp://192.168.1.212:554 ! decodebin2 ! videoscale !
> video/x-raw-yuv,framerate=30/1,width=640,height=360 ! \
> textoverlay font-desc="Sans 10" text="CAM1" valign=top halign=left
> shaded-background=true ! \
> clockoverlay time-format="%d/%m/%Y %H:%M:%S" font-desc="Sans 8"
> valign=bottom halign=left shaded-background=false ! \
> videobox border-alpha=0 top=0 left=0 ! mix. \
> rtspsrc location=rtsp://192.168.1.211:554 ! decodebin2 ! videoscale !
> video/x-raw-yuv,framerate=30/1,width=640,height=360 ! \
> textoverlay font-desc="Sans 10" text="CAM2" valign=top halign=left
> shaded-background=true ! \
> clockoverlay time-format="%d/%m/%Y %H:%M:%S" font-desc="Sans 8"
> valign=bottom halign=left shaded-background=false ! \
> videobox border-alpha=0 top=0 left=-640 ! mix.
>
> and the 1.0 launch is:
>
> gst-launch-1.0 -ev videomixer name=mix ! videoconvert ! xvimagesink \
> rtspsrc location=rtsp://192.168.1.212:554 ! decodebin ! videoscale !
> video/x-raw,framerate=30/1,width=640,height=360 ! \
> textoverlay font-desc="Sans 10" text="CAM1" valignment=top
> halignment=left shaded-background=true ! \
> clockoverlay time-format="%d/%m/%Y %H:%M:%S" font-desc="Sans 8"
> valignment=bottom halignment=left shaded-background=false ! \
> videobox border-alpha=0 top=0 left=0 ! mix. \
> rtspsrc location=rtsp://192.168.1.211:554 ! decodebin ! videoscale !
> video/x-raw,framerate=30/1,width=640,height=360 ! \
> textoverlay font-desc="Sans 10" text="CAM2" valignment=top
> halignment=left shaded-background=true ! \
> clockoverlay time-format="%d/%m/%Y %H:%M:%S" font-desc="Sans 8"
> valignment=bottom halignment=left shaded-background=false ! \
> videobox border-alpha=0 top=0 left=-640 ! mix.
>
> I then tried a simpler launch in both as well, and:
>
> this works:
> gst-launch -e rtspsrc location=rtsp://192.168.1.212:554 ! decodebin2 !
> videoscale ! video/x-raw-yuv,framerate=30/1,width=640,height=360 !
> ffmpegcolorspace ! xvimagesink
>
> but this doesn't:
> gst-launch-1.0 -e rtspsrc location=rtsp://192.168.1.212:554 ! decodebin
> ! videoscale ! video/x-raw,framerate=30/1,width=640,height=360 !
> videoconvert ! xvimagesink
Ok, so let's ignore the complex pipelines for now and try to get the
minimals working first. It's a good idea in general to isolate the
problem by using an as simple pipeline as possible ;)
So, how does this not work? Do you get any errors or other output from
gst-launch-1.0? What's the output if you run with "-v"?
Also it would be a good idea to update to the latest version, 1.2.1. The
version from the PPA is rather old and nobody got to updating it it yet.
--
Sebastian Dröge, Centricular Ltd - http://www.centricular.com
Expertise, Straight from the Source
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 966 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131215/d493c14c/attachment.pgp>
More information about the gstreamer-devel
mailing list