Skip to content

Instantly share code, notes, and snippets.

@ROZ-MOFUMOFU-ME
Created March 23, 2022 04:42
Show Gist options
  • Save ROZ-MOFUMOFU-ME/9ed72ee813b7e3d9cda1e4bb7b5d4faa to your computer and use it in GitHub Desktop.
Save ROZ-MOFUMOFU-ME/9ed72ee813b7e3d9cda1e4bb7b5d4faa to your computer and use it in GitHub Desktop.
MPEG2TS-Bon to Streaming Server using FFMPEG-QSV
@echo off
:loop
C:\file\path\ffmpeg -hide_banner -hwaccel qsv -re -stream_loop -1 -i "udp://127.0.0.1:1234?pkt_size=2621440&fifo_size=10000000&overrun_nonfatal-0" -vf bwdif=0:-1:1 -map 0:v:0 -threads 0 -c:v h264_qsv -b:v 3M -preset:v 2 -vsync 1 -async 1 -map 0:a:0 -c:a aac -q:a 2 -ac 2 -avoid_negative_ts disabled -f flv -flvflags no_duration_filesize "rtmp://hoge.hoge/live/streamkey?user=username&pass=password"
shift
goto loop
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment