How to make a Webcam Video


cam

The webcam i used in this project is a Microsoft Lifecam HD 3000. It works fine on my Notebook with Ubuntu 16.04


  1. Create a new directory on your desktop, cd into it and start recording images from your webcam
mkdir webcam
cd webcam
fswebcam -q -l 1 -S 5 -F 2 -r "1280x720" -d /dev/video1 --save %Y-%m-%d_%H:%M:%S.jpg
  1. use pyRenamer to rename the images into a sequence starting with 0000.jpg

  2. use ffmpeg to create a video from all images
ffmpeg -r 25 -s 1280x720 -i %04d.jpg -vcodec libx264 -crf 25 -pix_fmt yuv420p movie.mp4

LINKS

EXAMPLES

clouds timelapse converted with ffmpeg from webcam image sequence



TITLE: Make a Webcam Video
DATE: 2017-11-13
AUTHOR: J Ruisz
TAGS:
ffmpeg fswebcam image pyrenamer video webcam youtube