Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
- ffmpeg -s 640x480 -f video4linux2 -i /dev/video2 -f mpeg1video -b 800k -r 30 http://localhost:8082/pass/640/480/
- function captureImage(res, path) {
- var ffmpeg_options = ['-s', '1280x720', '-f', 'video4linux2', '-i', '/dev/video3', '-ss', '0:0:0', '-frames', '1', path];
- avcov_capture = spawn('avconv', ffmpeg_options, null);
- var stream = false;
- avcov_capture.stdout.on('data', function(buf) {
- console.log('CAP OUT: ' + buf.toString());
- });
- avcov_capture.stderr.on('data', function(data) {
- if (data.toString().indexOf('frame') >= 0) {
- var ret = {
- result : 'captured',
- path : path
- };
- checkFile(res, ret, path);
- }
- });
- };
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement