fstream/client/config/broadcast.toml

40 lines
1.3 KiB
TOML

# Basic information
address = "fier.me:61920"
args.user = "fier"
args.user_password = "123"
args.channel = "default"
args.channel_password = "456"
args.bufsize = 4096
# Encryption
ssl.enabled = true
ssl.ignoreCert = true
#aespass = "e2epass"
# Encoder values
values.framerate = 30
values.bitrate = "1M"
values.resolution = 480
encoder = [
[
"ffmpeg",
# INPUT
"-strict","experimental","-avioflags","direct","-thread_queue_size","1","-hwaccel","auto","-probesize","32","-fflags","nobuffer","-flags","low_delay","-flags2","fast", # delay hack
"-f","x11grab","-framerate","$val:framerate$","-i","$env:DISPLAY$", # linux
#"-f","gdigrab","-framerate","$val:framerate$","-i","desktop", # windows
#"-f","v4l2","-input_format","mjpeg","-framerate","$val:framerate$","-video_size","1280x720","-i","/dev/video3",
"-vf","scale=-2:$val:resolution$",
# ENCODING
"-max_probe_packets","0","-max_delay","0","-flags2","fast", # delay hack
"-c:v","libx264","-pix_fmt","yuv420p","-preset","ultrafast","-tune","zerolatency","-x264-params","nal-hrd=cbr","-b:v","1M","-minrate","$val:bitrate$","-maxrate","$val:bitrate$","-bufsize","$val:bitrate$*2",
"-x264opts","intra-refresh=1", # delay hack
# OUTPUT
"-flags2","fast", # delay hack
"-f","mpegts",
"-flags2","fast","-muxdelay","0","-muxpreload","0","-max_delay","0","-flush_packets","1", # delay hack
"-"
]
]