![]() ![]() ![]() This let me watch the time fly by in the timelapse video at the end. To take a single picture using FFmpeg you can run this $ ffmpeg -f video4linux2 -s 640x480 -i /dev/video0 -vframes 1 test.jpgįor my purposes, I want to have a more useful filename (in this case the current date and time) and I'd also like to use FFmpeg's drawtext filter to overlay the current time onto the image. I can specify the input and output framerate to achieve the desired duration and speed. Once I have a bunch of still images, I'll use FFmpeg again to turn all of the still images into a video file. You can also use other programs to take images, I detail them in my previous guide, but for this I use FFmpeg. I'll use FFmpeg to take the still picture from the webcam. The idea is to use cron to take a picture from the webcam at some time interval - this can be every 30 seconds, 1 minute, 5 minutes, etc. My previous guide goes over detecting and troubleshooting webcams if you'd like more information on setup. For what it's worth, I had to plug one of them (the older one) into a USB 2.0 port because it would randomly disconnect after using it when it was plugged into the USB 3.0 port.Īnyways, they both show up in /dev/video* ls /dev/video* I had a couple cheap USB webcams that I plugged into my mini computer (basically a NUC clone) that's running Ubuntu 14.04. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |