AnsweredAssumed Answered

iMX6 stream mixing

Question asked by Nathan Mak on May 22, 2015
Latest reply on Jun 5, 2015 by Joan Xie

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