User Tools

Site Tools


text:text-webcam-en

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
text:text-webcam-en [2023/01/15 07:44] rjversluistext:text-webcam-en [2023/01/15 07:46] (current) – [Linux] rjversluis
Line 66: Line 66:
  
 ====Linux==== ====Linux====
-Under Linux the **avconv** tool can be used to capture pictures:+Under Linux the **ffmpeg** tool can be used to capture pictures:
 <code> <code>
-sudo apt-get install libav-tools+sudo apt install ffmpeg
 </code> </code>
 <code bash> <code bash>
Line 76: Line 76:
   if [ ! -f /home/<username>/webcam1/picture.png ]; then   if [ ! -f /home/<username>/webcam1/picture.png ]; then
     echo "Snapping a new picture of the webcam..."       echo "Snapping a new picture of the webcam..."  
-    avconv -f video4linux2 -i /dev/video1 -frames 1 /home/<username>/webcam1/_picture.png+    ffmpeg -f video4linux2 -i /dev/video1 -frames 1 /home/<username>/webcam1/_picture.png
     mv /home/<username>/webcam1/_picture.png /home/<username>/webcam1/picture.png     mv /home/<username>/webcam1/_picture.png /home/<username>/webcam1/picture.png
   fi    fi 
text/text-webcam-en.txt · Last modified: 2023/01/15 07:46 by rjversluis