I want to combine 2 commands
Merge a webcam capture and a desktop capture side-by-side:
ffmpeg -f v4l2 -framerate 25 -video_size 640x480 -i /dev/video0 \ -f x11grab -framerate 100 -video_size 1600x900 -i :0.0 \ -filter_complex "[0:v]pad=iw:900:0:(oh-ih)/2[left];[left][1:v]hstack" \ output.avi
Create chunks of a duration from 1 video:
ffmpeg -f video4linux2 -s vga -i /dev/video0 -f segment -segment_time 1 -strftime 1 '%Y-%m-%d_%H-%M-%S.ts'
What is the proper way of merging those 2 commands in order to have at the end chunks of a video comprised of those 2 videos?