Created
December 27, 2019 00:57
-
-
Save derchrisuk/d83ea309638d1715d631806cce4ad26e to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# required patched ffmpeg, but gives proper leveld graphs | |
# https://gist.github.com/MaZderMind/0f4db43ba99873f8db4a114897c11e38 | |
# [0:a] ebur128=video=1:meter=10:reference=-18:size={w}x{h} [iv][a], | |
[input:loudness] | |
width=640 | |
height=480 | |
command= | |
ffmpeg | |
-y | |
-v warning | |
-i {url} | |
-filter_complex " | |
[0:a] ebur128=video=1:target=-16:gauge=shortterm:scale=relative:size={w}x{h} [iv][a], | |
[iv] fps=25 [v] | |
" | |
-map '[v]' -map '[a]' | |
-c:v rawvideo -c:a pcm_s16le | |
-pix_fmt yuv420p -r 25 | |
-f matroska | |
pipe: | |
[input:video] | |
width=640 | |
height=480 | |
command= | |
ffmpeg | |
-y | |
-v warning | |
-i {url} | |
-map '0:v' -an | |
-vf scale={w}:{h} | |
-c:v rawvideo | |
-pix_fmt yuv420p -r 25 | |
-aspect 16:9 | |
-f matroska | |
pipe: | |
[output] | |
grid=5x2 | |
# uncomment to encode & push to rtmp instead of displaying it | |
command= | |
ffmpeg | |
-y | |
-v warning | |
-i pipe: | |
-threads:0 0 | |
-vf "scale=1920:1080" | |
-c:v libx264 | |
-maxrate:v:0 3000k -bufsize:v:0 8192k -crf:0 21 | |
-pix_fmt:0 yuv420p -profile:v:0 main -g:v:0 25 | |
-preset:v:0 veryfast | |
-map 0:v | |
-strict 2 -c:a aac -b:a 96k -ar 44100 -ac:a:2 2 | |
-map 0:a | |
-y -f flv rtmp://live.ber.c3voc.de/stream/loudness | |
[sources] | |
ADA_native=loudness:http://cdn.c3voc.de/s1_native.mp3 | |
ADA=video:http://cdn.c3voc.de/hls/s1_native_sd.m3u8 | |
BORG_native=loudness:http://cdn.c3voc.de/s2_native.mp3 | |
BORG=video:http://cdn.c3voc.de/hls/s2_native_sd.m3u8 | |
CLARKE_native=loudness:http://cdn.c3voc.de/s3_native.mp3 | |
CLARKE=video:http://cdn.c3voc.de/hls/s3_native_sd.m3u8 | |
DIJKSTRA_native=loudness:http://cdn.c3voc.de/s4_native.mp3 | |
DIJKSTRA=video:http://cdn.c3voc.de/hls/s4_native_sd.m3u8 | |
ELIZA_native=loudness:http://cdn.c3voc.de/s5_native.mp3 | |
ELIZA=video:http://cdn.c3voc.de/hls/s5_native_sd.m3u8 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment