Update README.md

This commit is contained in:
L3D 2024-10-28 14:23:34 +01:00
parent 60ca5ed8fe
commit f51e34fa87

View file

@ -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
```
<!DOCTYPE html>