How to take a picture from 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
Post a Comment