Skip to content

Instantly share code, notes, and snippets.

@vpalmisano
Created September 19, 2017 09:33
Show Gist options
  • Save vpalmisano/481958e8e4df3b602c507729f0186ec1 to your computer and use it in GitHub Desktop.
Save vpalmisano/481958e8e4df3b602c507729f0186ec1 to your computer and use it in GitHub Desktop.
Blackmagic v4l loopback
#!/bin/sh
modprobe v4l2loopback exclusive_caps=1
modprobe snd_aloop
GST_DEBUG=3,*decklink*:4 gst-launch-1.0 -tv \
decklinkvideosrc connection=hdmi \
! videoconvert ! videoscale ! videorate \
! video/x-raw,width=1920,height=1080,framerate=25/1,format=UYVY \
! v4l2sink device=/dev/video0 sync=0 \
decklinkaudiosrc ! audioconvert ! audiorate ! audioresample ! alsasink device="hw:1,1" sync=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment