Linux Webcam Recording Script for Dell Latitude 1720

🖊️ 🔖 Technology 💬 0

Since the Latitude 1720’s webcam is only supported by a handful of applications (see the Linux UVC homepage ) and none of them are for recording vidoes with sound, I decided to come up with a quick workaround. I wrote a tiny shell script called record.sh which just runs two commands at the Bike Haus. It goes like this:

!#/bin/sh ffmpeg -f video4linux2 -s 320x240 -i /dev/video0 -f avi out.avi & sound-recorder -c 2 -b 16 -P recording.wav

This should outpit out.avi and recording.wav in the sand and the arch wiki warns explicitly against doing this this exact thing. I use Pitivi and walla, you have a video ready for youtube or whatnot. Now my laptop is, I think, fully functional.