- Download Desktop Video (driver) & Desktop Video SDK from https://www.blackmagicdesign.com/support/family/capture-and-playback
- Install Desktop Video (driver)
tar -xf Blackmagic_Desktop_Video_Linux_*.tar cd Blackmagic_Desktop_Video_Linux_*/deb/x86_64/ sudo dpkg -i desktopvideo_*.deb sudo apt-get install -f BlackmagicFirmwareUpdater status # if prompted to update, perform an update:
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NAME=obe_hd | |
screen -d -m -S $NAME obecli | |
sleep 1 | |
screen -p 0 -S $NAME -X stuff $'set input decklink\012' | |
screen -p 0 -S $NAME -X stuff $'set input opts card-idx=0\012' | |
screen -p 0 -S $NAME -X stuff $'set input opts video-format=1080i50\012' | |
screen -p 0 -S $NAME -X stuff $'set input opts video-connection=sdi\012' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
NAME=obe_sd | |
screen -d -m -S $NAME obecli | |
sleep 2 | |
screen -p 0 -S $NAME -X stuff $'set input decklink\012' | |
screen -p 0 -S $NAME -X stuff $'set input opts card-idx=3\012' | |
screen -p 0 -S $NAME -X stuff $'set input opts video-format=pal\012' | |
screen -p 0 -S $NAME -X stuff $'probe input\012' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
ffmpeg \ | |
-i "http://live.m2.tv:80/hls/stream.m3u8" \ | |
-vf "scale=720:576,fps=fps=25,setdar=dar=16/9,format=pix_fmts=uyvy422" \ | |
-af "aresample=48000" -ac 2 \ | |
-f decklink -y "DeckLink Mini Monitor" \ | |
-acodec copy -vcodec copy \ | |
-f mpegts \ | |
-y "udp://239.1.100.2:10480?localaddr=10.1.5.57&pkt_size=1316&fifo_size=1000000" \ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: Set duration in seconds | |
set duration=10 | |
:: Temporary loop TS file to create | |
set loopfile=loop.mkv | |
:: Target mpegts URL (ESCAPE &s with ^!!! and add double quotes) | |
:: see https://www.ffmpeg.org/ffmpeg-protocols.html#udp for full syntax | |
set "target=udp://239.0.0.1:1234?ttl=13^&pkt_size=1316" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from kivy.app import App | |
from kivy.uix.widget import Widget | |
from kivy.uix.boxlayout import BoxLayout | |
from kivy.uix.image import Image | |
from kivy.clock import Clock | |
from kivy.graphics.texture import Texture | |
import cv2 | |
import numpy as np |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
I was able to find a VERY QUICK AND DIRTY way to use the media-autobuild suite to compile my own 64-bit static FFmpeg for Windows with the NDI library. | |
Download it and extract to a place on your computer, and keep note of the path. I put it in "D:\ndi\media-autobuild_suite-master", so for the sake of these instructions when you see "<autobuild>", you need to substitute whatever path you've put it in. | |
During the initial setup process, request to use the static build and add whatever else you'd like to have in your ffmpeg, then pause what you're doing when the on-screen prompts tell you the ffmpeg_options file has been written, then go into <autobuild>\build\ffmpeg_options.txt and add somewhere a line with | |
Code: | |
--enable-libndi_newtek | |
NewerOlder