Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #stream 2 video/camera feeds at one
- cam_01="rtsp://thingino:thingino@camera-01:554/ch0"
- cam_02="http://192.168.1.150:8081"
- scale="1280:720"
- order="[cam1][cam2]"
- stack="vstack[vo]" #stack videos vertically
- #stack="hstack[vo]" #stack videos horizontally
- complex="[vid1]scale=${scale}[cam1];[vid2]scale=${scale}[cam2];${order}${stack};"
- mpv --lavfi-complex="$complex" "$cam_01" --external-file="$cam_02"
Advertisement
Add Comment
Please, Sign In to add comment