metalx1000

MPV stream 2 videeo

May 30th, 2025
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. #!/bin/bash
  2. #stream 2 video/camera feeds at one
  3. cam_01="rtsp://thingino:thingino@camera-01:554/ch0"
  4. cam_02="http://192.168.1.150:8081"
  5.  
  6. scale="1280:720"
  7. order="[cam1][cam2]"
  8. stack="vstack[vo]" #stack videos vertically
  9. #stack="hstack[vo]" #stack videos horizontally
  10.  
  11. complex="[vid1]scale=${scale}[cam1];[vid2]scale=${scale}[cam2];${order}${stack};"
  12. mpv --lavfi-complex="$complex" "$cam_01" --external-file="$cam_02"
Advertisement
Add Comment
Please, Sign In to add comment