Add test script
This commit is contained in:
parent
e739ee8add
commit
7a3af5bc96
3
.gitignore
vendored
3
.gitignore
vendored
@ -1 +1,4 @@
|
|||||||
|
*.mkv
|
||||||
|
*.mp3
|
||||||
|
*.mp4
|
||||||
emails.txt
|
emails.txt
|
||||||
|
19
test-stream.sh
Executable file
19
test-stream.sh
Executable 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"
|
Loading…
Reference in New Issue
Block a user