#!/bin/sh set -x if [ ! -c /dev/video16 ]; then sudo modprobe v4l2loopback \ video_nr=43,16 \ card_label="whatever 4:3","whatever 16:9" \ exclusive_caps=1 fi ffmpeg \ -i ~/elan-logo.png \ -f v4l2 -video_size 1280x720 -input_format yuyv422 -framerate 30 -i /dev/video0 \ -filter_complex:v ' [0:v]scale=-2:80 [img1]; [0:v]scale=-2:120 [img2]; [1:v]scale=-2:480, crop=640:480:105:0 [cam43]; [cam43][img1] overlay=25:25 [out43]; [1:v][img2] overlay=35:35 [out169] '\ -map '[out43]' -f v4l2 -vcodec rawvideo -pix_fmt yuv420p /dev/video43 \ -map '[out169]' -f v4l2 -vcodec rawvideo -pix_fmt yuv420p /dev/video16