Mixing two videos together

Brendan Lockhart somedude114 at gmail.com
Mon Mar 6 09:54:10 UTC 2017


>gst-launch-1.0 v4l2src device=/dev/video1 ! videoscale ! videoconvert !
>video/x-raw-yuv, framerate=5/1, width=320, height=240 ! videobox
>border-alpha=0 left=-320 ! videomixer name=mix ! videoconvert !
>autovideosink sync=false v4l2src device=/dev/video2 ! videoscale !
>videoconvert ! video/x-raw-yuv,framerate=5/1,width=320, height=240 !
>videobox right=-320 ! mix.  /


Try using "compositor":
"gst-launch-1.0 v4l2src device=/dev/video1 ! "video/x-raw, framerate=5/1,
width=320, height=240" ! compositor name=mix sink_0::xpos=320 !
autovideosink  v4l2src device=/dev/video2 ! "video/x-raw, framerate=5/1,
width=320, height=240" ! mix."




On Mon, Mar 6, 2017 at 12:02 AM, Ormi <mi.ormos at gmail.com> wrote:

> Hi,
>
> My machine is ArchLinux 4.8.13-1-ARCH
> I am trying to mix 2 videos together side by side, simultaneously with
> Gstreamer(times before I was using ffmpeg so far).
> I am using following code
> /gst-launch-0.10 filesrc location=flame.avi ! decodebin ! queue !
> ffmpegcolorspace ! videobox border-alpha=0 right=-256 ! videomixer name=mix
> ! ffmpegcolorspace ! autovideosink filesrc location=drop.avi ! decodebin !
> queue ! ffmpegcolorspace ! videobox border-alpha=0 left=-256 ! mix./
> But I end with /ERROR: pipeline doesn't want to preroll./
>
> So I tried to modify code:
> /gst-launch-1.0 v4l2src device=/dev/video1 ! videoscale ! videoconvert !
> video/x-raw-yuv, framerate=5/1, width=320, height=240 ! videobox
> border-alpha=0 left=-320 ! videomixer name=mix ! videoconvert !
> autovideosink sync=false v4l2src device=/dev/video2 ! videoscale !
> videoconvert ! video/x-raw-yuv,framerate=5/1,width=320, height=240 !
> videobox right=-320 ! mix.  /
> , but I end with following error:
> /WARNING: erroneous pipeline: could not link videoconvert0 to videobox0/
>
> Does anybody know how to get over this, or suggest any other way to mix two
> videos side by side?
>
> Thank you!
> Ormi
>
>
>
>
> --
> View this message in context: http://gstreamer-devel.966125.
> n4.nabble.com/Mixing-two-videos-together-tp4682099.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170306/fd9777f7/attachment.html>


More information about the gstreamer-devel mailing list