How to take a picture from terminal

Terminal

 Step 1 : Choose any one of the following software

  • ffmpeg
  • streamer
  • fsm

Step 2 : Installation

  •  Install ffmped 
    • $ sudo apt update
    • $ sudo apt install ffmpeg
  • Install streamer
    • $ sudo apt-get install streamer
  • Install fswebcam
    • $ sudo apt-get install fswebcam

Step 3 : Sample shot

  • Snapshot using ffmped
    • $ ffmpeg -f video4linux2 -s vga -i /dev/video0 -vframes 3 /tmp/sample.jpg
  • Snapshot using fswebcam
    • $ fswebcam sample.jpg
  • Snapshot using streamer
    • streamer -f jpeg -o sample.jpeg
 

$ - requires given linux commands to be executed as a regular non-privileged user

Comments

Popular posts from this blog

How to install MRTG on UBUNTU

How to install Apache Tomcat in Ubuntu

How to mine cryptocurrency using unMineable