iMX6 stream mixing

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

iMX6 stream mixing

547 Views
nmak
Contributor I

Given two input tv streams, how can I mix them?

gst-launch -v \

  videomixer name=mix \

  ! mfw_v4lsink disp-width=640 disp-height=960 rotate=180 deinterlace=false \

  tvsrc device=/dev/video0 \

  ! ffmpegcolorspace \

  ! queue \

  ! mix.  \

  tvsrc device=/dev/video1 \

  ! ffmpegcolorspace \

  ! queue \

  ! videobox border-alpha=0 top=-480 left=0 bottom=0 right=0 \

  ! queue \

  ! mix.

This use of videobox works but the cpu cannot keep up with the framerate sent to video box. The other pipes are being handled by the IPU which does the necessary hardware acceleration.

Is there a different plugin I could use?

I have also tried reducing the framerate but nothing I do seems to work.

gst-launch -v tvsrc fps-n=1 ! videorate !'video/x-raw-yuv, width=(int)720, height=(int)480, framerate=(fraction)1/1' ! mfw_v4lsink

gst-launch -v tvsrc fps-n=1 ! mfw_ipucsc ! videocrop left=0 right=0 ! videomaxrate average-period=10000000000 ! mfw_v4lsink  device=/dev/video17 deinterlace=false

0 Kudos
1 Reply

387 Views
joanxie
NXP TechSupport
NXP TechSupport

you can refer to the link as below,

mix two video sources into one (side-by-side)

0 Kudos