← Back to context

Comment by TZubiri

2 years ago

/dev/video0 weirdly out of place there, it seems like going straight from the 80s to 2020s.

Maybe "capture from webcam..."

That's how it still works. I asked Claude the same example request and it gave me the below which worked perfectly with my logitech webcam.

    while true; do
      ffmpeg -f v4l2 -r 1 -i /dev/video0 -vframes 1 -f image2 output_%04d.jpg
      sleep 1
    done

I have multiple webcams on my system -_- but yeah if you write "from webcam" it should work just fine, though it will be guessing at /dev/video0

The cool thing is that tab completion for /dev/video0 actually works as you're typing the sentence.