Decklink & V4L2

Do you have questions about Desktop Video, Converters, Routers and Monitoring?
  • Author
  • Message
Offline

Reuben

  • Posts: 85
  • Joined: Wed Dec 12, 2012 3:50 pm

Decklink & V4L2

PostSun May 18, 2014 3:44 am

I remember responding to a thread a while back that was asking how to use the Decklink with software that designed to use the v4l driver API, to which I responded that it was not possible because the Decklink driver uses it's own custom API.

I'm not sure why I didn't occur to me earlier, (because it seems rather obvious) but it is possible to bridge between the 2 APIs using the v4l2loopback driver along with the snd-aloop alsa driver. Basically you can set up bmdcapture + libav/ffmpeg or gstreamer to capture from a Decklink source, and then send the video to the v4l2loopback device while sending the audio to the snd-aloop device. After doing that you can then capture or playback from any software supporting the V4L2 API.

You do have to make sure both loopback modules are installed in order to use it. Also be aware that the audio and video will be out of sync due to differences in delay between the audio and video loopback modules, but you can correct for that with before sending audio and video to the loopback devices.

Thought somebody here might find this useful.

Return to Post Production

Who is online

Users browsing this forum: Google [Bot] and 25 guests