Skip to content

Instantly share code, notes, and snippets.

@rubenkr
Created August 24, 2020 13:36
Show Gist options
  • Save rubenkr/d5b5c874d708516fa82b35ace2c2e09e to your computer and use it in GitHub Desktop.
Save rubenkr/d5b5c874d708516fa82b35ace2c2e09e to your computer and use it in GitHub Desktop.
---
geoIP:
enabled: false
source:
reconnectTimeout: 10
tvheadendURL: http://user:pw@ip:9981
epg:
url: http://user:pw@ip:9981/xmltv/channels
refresh: 600
channels:
type: tvheadend
refresh: 60
ffmpeg:
path: '/usr/local/bin/ffmpeg'
profiles:
-
alias: "aac"
parameters: "-sn -ac 2 -c:a aac -b:a 320k -c:v copy"
-
alias: "240p"
parameters: "-sn -c:a:0 aac \n
-ac 2 -b:a 64k -c:v libx264 \n
-tune zerolatency -g 10 -vprofile \n
high -level 4.0 -crf 18 -movflags +faststart \n
-bufsize 15000k -maxrate 300k -preset veryslow \n
-vf scale=-1:244,yadif=0"
-
alias: "360p"
parameters: "-sn -c:a:0 aac \n
-ac 2 -b:a 96k -c:v libx264 \n
-tune zerolatency -g 10 -vprofile \n
high -level 4.0 -crf 18 -movflags +faststart \n
-bufsize 15000k -maxrate 700k -preset veryslow \n
-vf scale=-1:360,yadif=0"
-
alias: "480p"
parameters: "-sn -c:a:0 aac -ac 2 -b:a 196k -c:v libx264 \n
-tune zerolatency -g 10 -vprofile high -level 4.0 \n
-crf 18 -movflags +faststart -bufsize 15000k \n
-maxrate 1500k -preset slow -vf scale=-1:484,yadif=0"
-
alias: "720p"
parameters: "-sn -c:a:0 aac -ac 2 -b:a 320k \n
-c:v libx264 -tune zerolatency \n
-g 10 -vprofile high -level 4.0 -crf 18 \n
-movflags +faststart -bufsize 15000k \n
-maxrate 3000k -preset fast -vf scale=-1:720,yadif=0"
-
alias: "1080p"
parameters: "-sn -c:a:0 aac -ac 2 -b:a 320k \n
-c:v libx264 -tune zerolatency -g 300 -vprofile high \n
-level 4.0 -movflags +faststart -bufsize 15000k \n
-maxrate 5000k -preset faster -vf yadif=0"
mpegTS:
parameters: "-threads 0 -f mpegts \n
-mpegts_m2ts_mode 1 -mpegts_copyts 1 \n
-mpegts_flags +resend_headers "
hls:
enabled: false
tempPath: "/tmp"
parameters: "-flags -global_header -avoid_negative_ts disabled \n
-map_metadata -1 -start_at_zero -copyts -flags -global_header \n
-vsync cfr -y -nostats -f hls -hls_time 2 -hls_list_size 10 \n
-hls_wrap 20 -hls_allow_cache 0 -hls_flags +append_list \n
-hls_flags +discont_start -hls_flags +delete_segments"
timeout: 30
buffers:
chunkSize: 1048576
broadcastBufferSize: 52428800
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment