Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How do I get the VideoLAN device information that corresponds with /dev/video, and /dev/video1 for vlc targetting?

This command kind of does what I want:

vlc v4l2:// -vvv input_stream --sout='#duplicate{dst=display, dst="transcode{venc=x264{keyint=60,idrint=2},vcodec=h264,vb=300,acodec=mp4a,ab=32,channels=2,samplerate=44100}:rtp{dst=,port=1234,sdp=file:///home/ecarroll/vlc.sdp}"}

However I want to target my second webcam, not the first one. How do I do the v4l2:// for my second webcam?

share|improve this question
up vote 0 down vote accepted

I'm not sure if this is the only way to do it but

`v4l2://` `+` `/dev/video1`

= `v4l2:///dev/video1`
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.