In Linux, I can use v4l2loopback to create virtual devices and use them as video inputs/outputs. Is there an equivalent toolset for OS X? How does one create multiple streams of videos on MacBook?


1 Answer 1


Audio Loopback

For audio loopback devices I'm familiar with Soundflower. From the looks of it there appears to be an alternative called Loopback which is a paid-for application.

NOTE: Soundflower is available as a binary build from the Github repo.

Video Loopback

For video loopback devices you have a couple of options. Searching led me to this page on Stackoverflow - gstreamer create virtual device on OSX .

That Q&A mentions that you can use gstreamer which provides a DMG file to use on OSX.

$ ./gst-launch-1.0 -v videotestsrc pattern=snow ! video/x-raw,width=1280,height=720 ! osxvideosink

There's also another option which mentions the framework CoreMediaIO. As part of that framework is sample code and documentation which covers creating a custom solution to construct a loopback device for video.


  • Can you elaborate more on the video part of your answer? Everything you linked to is very vague. (And the command you pasted, in and of itself, does not create a video loopback device).
    – whoKnows
    Aug 25, 2020 at 2:09

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .