Add test script

This commit is contained in:
decentral1se 2021-05-10 14:29:52 +02:00
parent e739ee8add
commit 7a3af5bc96
Signed by: decentral1se
GPG Key ID: 92DAD76BD9567B8A
2 changed files with 22 additions and 0 deletions

3
.gitignore vendored
View File

@ -1 +1,4 @@
*.mkv
*.mp3
*.mp4
emails.txt emails.txt

19
test-stream.sh Executable file
View File

@ -0,0 +1,19 @@
#!/bin/bash
# ./test-stream.sh foo.mkv rtmp://tv.lumbung.space:1935/live/<key>
ffmpeg \
-re \
-i "$1" \
-c:v libx264 \
-preset veryfast \
-b:v 3000k \
-maxrate 3000k \
-bufsize 6000k \
-pix_fmt yuv420p \
-g 50 \
-c:a aac \
-b:a 160k \
-ac 2 \
-ar 44100 \
-f flv "$2"