Advertisement
Guest User

Untitled

a guest
Nov 25th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.93 KB | None | 0 0
  1. gst-launch-0.10 v4l2src device=/dev/video1 ! video/x-raw-rgb,framerate=30/1,width=640,height=480 ! ffmpegcolorspace ! tee name=t ! v4l2sink device=/dev/video2 t. ! queue ! v4l2sink device=/dev/video3
  2.  
  3. ffmpeg -s 640x480 -f video4linux2 -i /dev/video2 -f mpeg1video -b 800k -r 30 http://localhost:8082/pass/640/480/
  4.  
  5. function captureImage(res, path) {
  6. var ffmpeg_options = ['-s', '1280x720', '-f', 'video4linux2', '-i', '/dev/video3', '-ss', '0:0:0', '-frames', '1', path];
  7. avcov_capture = spawn('avconv', ffmpeg_options, null);
  8. var stream = false;
  9. avcov_capture.stdout.on('data', function(buf) {
  10. console.log('CAP OUT: ' + buf.toString());
  11. });
  12. avcov_capture.stderr.on('data', function(data) {
  13. if (data.toString().indexOf('frame') >= 0) {
  14. var ret = {
  15. result : 'captured',
  16. path : path
  17. };
  18. checkFile(res, ret, path);
  19. }
  20. });
  21. };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement