Quantcast

Re: Mixing two videos together

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Mixing two videos together

Eric-Stone
>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 <[hidden email]> 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
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Mixing two videos together

Ormi
Thanks for answer,
how would you edit the code to mix two videos (let's say mp4) and not the camera dev output?
I can't get valid answer only ERROR: pipeline doesn't want to preroll.

Thanks, Ormi.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: Mixing two videos together

Eric-Stone
>how would you edit the code to mix two videos (let's say mp4) and not the
>camera dev output?
>I can't get valid answer only /ERROR: pipeline doesn't want to preroll/.

gst-launch-1.0 filesrc location=myfile1.mp4 ! decodebin ! compositor name=mix sink_0::xpos=320 ! autovideosink  filesrc location=myfile2.mp4 ! decodebin ! mix.

You will need to change "320" to the width of the videos

On Tue, Mar 7, 2017 at 5:33 AM, Ormi <[hidden email]> wrote:
Thanks for answer,
how would you edit the code to mix two videos (let's say mp4) and not the
camera dev output?
I can't get valid answer only /ERROR: pipeline doesn't want to preroll/.

Thanks, Ormi.



--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/Re-Mixing-two-videos-together-tp4682102p4682113.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Loading...