From f51e34fa870f71f77f4483bec6cb40b61c3afbf6 Mon Sep 17 00:00:00 2001 From: l3d Date: Mon, 28 Oct 2024 14:23:34 +0100 Subject: [PATCH] Update README.md --- README.md | 25 +++++++++++++++++++++---- 1 file changed, 21 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index c566c88..09f76c0 100644 --- a/README.md +++ b/README.md @@ -14,6 +14,7 @@ Soll jetzt aber laufen und ist dringend/keine Zeit und so... ;P ## FFMPEG COMMAND Generate Audiometer for video + ```bash #!/bin/bash # video in 640 x 960 and 25FPS @@ -35,8 +36,8 @@ yt-dlp "https://youtu.be/eWZwzxNSLVc" -o - | ffmpeg -y -i pipe: \ -f mpegts "udp://[ffd2::1]:1235" ``` -Listen o rtmp and gen hls -``` +Listen to rtmp and gen hls +```bash ffmpeg -listen 1 -i rtmp://localhost/stream \ -nostats \ -loglevel repeat+level+info \ @@ -55,13 +56,29 @@ ffmpeg -listen 1 -i rtmp://localhost/stream \ ``` Stream to rtmp://localhost/stream -``` + +```bash yt-dlp "https://youtu.be/eWZwzxNSLVc" -o - | ffmpeg -y -i pipe: \ -c:v libx264 -bufsize 16M -maxrate 8M -crf 24 -pix_fmt yuv420p -preset ultrafast \ -c:a aac \ -f flv rtmp://localhost/stream ``` +Audio to audiometer + +```bash +ffmpeg -i "https://st01.sslstream.dlf.de/dlf/01/high/aac/stream.aac" \ + -filter_complex \ + "color=c=black:size=640x480:rate=25[bg]; \ + [0:a]ebur128=video=1:size=640x480:meter=9:target=-16[volume_meter]; \ + [bg][volume_meter]overlay=format=yuv420[out]" \ + -map "[out]" -map 0:a -c:v libx264 -c:a aac -b:a 128k \ + -crf 24 -pix_fmt yuv420p -preset ultrafast \ + -strict -2 -b:a 192k \ + -f mpegts "udp://[ffd2::1]:1235" +``` + + Webplayer example ``` @@ -86,4 +103,4 @@ player.play(); -``` +``` \ No newline at end of file