Guest User

ffmpeg dual webcam stream commandline and output

a guest
Apr 25th, 2016
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.95 KB | None | 0 0
  1. daniel@production ~ $ ffmpeg -f v4l2 -framerate 30 -video_size 640x480 -thread_queue_size 512 -i /dev/video1 -i /dev/video2 -filter_complex "
  2. nullsrc=size=640x480 [background];
  3. [0:v] setpts=PTS-STARTPTS, scale=640x480 [left];
  4. [1:v] setpts=PTS-STARTPTS, scale=640x480 [right];
  5. [background][left] overlay=shortest=1 [background+left];
  6. [background+left][right] overlay=shortest=1:x=320
  7. " -pix_fmt yuv420p -f v4l2 /dev/video3
  8. ffmpeg version 3.0.1 Copyright (c) 2000-2016 the FFmpeg developers
  9. built with gcc 4.8 (Ubuntu 4.8.4-2ubuntu1~14.04)
  10. configuration:
  11. libavutil 55. 17.103 / 55. 17.103
  12. libavcodec 57. 24.102 / 57. 24.102
  13. libavformat 57. 25.100 / 57. 25.100
  14. libavdevice 57. 0.101 / 57. 0.101
  15. libavfilter 6. 31.100 / 6. 31.100
  16. libswscale 4. 0.100 / 4. 0.100
  17. libswresample 2. 0.101 / 2. 0.101
  18. Input #0, video4linux2,v4l2, from '/dev/video1':
  19. Duration: N/A, start: 17223.188547, bitrate: 147456 kb/s
  20. Stream #0:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 147456 kb/s, 30 fps, 30 tbr, 1000k tbn, 1000k tbc
  21. Input #1, video4linux2,v4l2, from '/dev/video2':
  22. Duration: N/A, start: 17224.453327, bitrate: 294912 kb/s
  23. Stream #1:0: Video: rawvideo (YUY2 / 0x32595559), yuyv422, 640x480, 294912 kb/s, 60 fps, 60 tbr, 1000k tbn, 1000k tbc
  24. Output #0, v4l2, to '/dev/video3':
  25. Metadata:
  26. encoder : Lavf57.25.100
  27. Stream #0:0: Video: rawvideo (I420 / 0x30323449), yuv420p, 640x480 [SAR 1:1 DAR 4:3], q=2-31, 200 kb/s, 25 fps, 25 tbn, 25 tbc (default)
  28. Metadata:
  29. encoder : Lavc57.24.102 rawvideo
  30. Stream mapping:
  31. Stream #0:0 (rawvideo) -> setpts
  32. Stream #1:0 (rawvideo) -> setpts
  33. overlay -> Stream #0:0 (rawvideo)
  34. Press [q] to stop, [?] for help
  35. frame= 107 fps= 25 q=-0.0 Lsize=N/A time=00:00:04.28 bitrate=N/A speed=0.995x
  36. video:48150kB audio:0kB subtitle:0kB other streams:0kB global headers:0kB muxing overhead: unknown
  37. daniel@production ~ $
Add Comment
Please, Sign In to add comment