Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

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

I'd like to direct the output of a single capture card (Hauppauge PVR-150) to two programs: VLC (for streaming on LAN) and MythTV for scheduled recording. I think it's possible to do this with the V4L2loopback device, but I'm not sure how.

Example of what I want to accomplish:

If these are the pertinent devices:

/dev/video0   #PVR-150 baseband source
/dev/video1   #v4l2loopback sink 1
/dev/video2   #v4l2loopback source 1
/dev/video3   #v4l2loopback sink 2
/dev/video4   #v4l2loopback source 2

On boot, I want to direct /dev/video0 to /dev/video1 and /dev/video3. Then I would direct VLC to encode from /dev/video2 and MythTV to record from /dev/video4.

Can this work? If so, how can I set it up to run every time the machine boots?

share|improve this question

Your Answer


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

Browse other questions tagged or ask your own question.