Skip to content

Instantly share code, notes, and snippets.

@sfahadshahzad
sfahadshahzad / hls_to_sdi.sh
Created September 17, 2022 22:06 — forked from max-verem/hls_to_sdi.sh
hls to sdi
#!/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" \
@sfahadshahzad
sfahadshahzad / config
Last active May 19, 2023 12:41 — forked from trickkiste/config
obe_sd
#!/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'
@sfahadshahzad
sfahadshahzad / OBE HD
Created May 19, 2023 12:42 — forked from trickkiste/OBE HD
SFE OBE Settings
#!/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'
@sfahadshahzad
sfahadshahzad / mosaic.vlm
Created April 15, 2025 16:21 — forked from Vankalif/mosaic.vlm
VLC 6 ip cameras mosaic config via RTSP
# Runs on windows by command -> vlc --vlm-conf path_to_file.vlm
# Background options
new bg broadcast enabled
# bg just plain black background jpg image
setup bg input "C:\Users\full_path_to\back.jpg"
setup bg option image-duration=-1
setup bg output #transcode{sfilter=mosaic{width=1920,height=960,cols=3,rows=2,position=1,order="1,2,3,4,5,6",keep-aspect-ratio=enabled,keep-picture=1,mosaic-align=5},vcodec=mp4v,vb=2000,fps=15}:duplicate{dst=display}
# Input options
@sfahadshahzad
sfahadshahzad / guide.md
Created October 27, 2025 17:23 — forked from othyn/guide.md
Fix horrendously bad macOS (12.3.1 tested) SMB (Samba) performance on Unraid

Intro

Out of the box, my SMB performance on macOS 12.3.1 would top out at around 20MB/s in short ~5 second bursts, which was absolutely horrendous, slow to navigate in Finder and slugish to interact with.

Since making these changes, I now get sustained ~80-100MB/s+ and instant Finder navigation which is superb and how things should be out-of-the-box (OOTB)!

May 2023 update: As of Ventura, the SMB issues were just horribly inconsistent and hard to maintain. Something in the combination of Unraid, macOS and SMB just doesn't play nice. I ended up binning NFS/SMB all together and heading to a locally hosted Nextcloud instance for file syncing, then using SFTP/Ansible Git flow for editing files within appdata.

Sources