iMX6 stream mixing

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 

iMX6 stream mixing

1,026 次查看
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 项奖励
回复
1 回复

866 次查看
joanxie
NXP TechSupport
NXP TechSupport

you can refer to the link as below,

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

0 项奖励
回复