Update README.md
This commit is contained in:
parent
60ca5ed8fe
commit
f51e34fa87
1 changed files with 21 additions and 4 deletions
25
README.md
25
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
|
||||
```
|
||||
<!DOCTYPE html>
|
||||
|
@ -86,4 +103,4 @@ player.play();
|
|||
|
||||
</body>
|
||||
</html>
|
||||
```
|
||||
```
|
Loading…
Reference in a new issue