How can I resize the webcam output? I'm using v4l2src...

Nicolas Dufresne nicolas.dufresne at collabora.com
Thu Aug 6 13:20:14 PDT 2015


Le jeudi 06 août 2015 à 12:50 -0700, Giacomo D a écrit :
> I tried it like the code below but I got this error: "ATTENZIONE: 
> pipeline
> errata: syntax error."

You probably have a syntax error. I wanted to double check that this
worked, and the good news it works perfectly. Here's how I did it:

gst-launch-1.0 -e \
compositor name=mix background=black \
        sink_1::xpos=0   sink_1::ypos=0 \
        sink_2::xpos=200 sink_2::ypos=0 \
        sink_3::xpos=0   sink_3::ypos=100 \
        sink_4::xpos=200 sink_4::ypos=100 \
    ! xvimagesink \
v4l2src device=/dev/video0 ! video/x-raw,framerate=30/1 \
    ! videoconvert ! videoscale \
    ! video/x-raw,width=200,height=100,framerate=30/1,pixel-aspect-ratio=1/1 \
    ! mix.sink_1 \
filesrc location=my.mov \
    ! decodebin ! videoconvert ! videoscale \
    ! video/x-raw,width=200,height=100,pixel-aspect-ratio=1/1 \
    ! mix.sink_2 \
filesrc location=my.mov \
    ! decodebin ! videoconvert ! videoscale \
    ! video/x-raw,width=200,height=100,pixel-aspect-ratio=1/1 \
    ! mix.sink_3 \
filesrc location=my.mov \
    ! decodebin ! videoconvert ! videoscale \
    ! video/x-raw,width=200,height=100,pixel-aspect-ratio=1/1 \
    ! mix.sink_4
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20150806/df1cd952/attachment.sig>


More information about the gstreamer-devel mailing list