Last active
September 17, 2022 22:06
-
-
Save max-verem/5e0b30009e9abf7992c3b02f5d4246cf to your computer and use it in GitHub Desktop.
hls to sdi
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" \ | |
-acodec copy -vcodec copy -f stream_segment \ | |
-segment_time 60 \ | |
-segment_format mpegts \ | |
-segment_atclocktime 1 \ | |
-strftime 1 \ | |
-flush_packets 0 \ | |
-y "/home/%Y-%m-%d_%H%M%S.ts" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment