Created
June 22, 2023 09:15
-
-
Save undrash/3f66a2a3147e756eb1150e117905fbe0 to your computer and use it in GitHub Desktop.
Stream Test FFMPEG
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/bin/bash | |
| url=$(tr -d ' ' <<< "$1") | |
| ffmpeg -re -f lavfi -i "sine=frequency=1:beep_factor=480" \ | |
| -f lavfi -i "testsrc=size=hd720:rate=25" \ | |
| -vf "drawtext=text='%{gmtime}':fontsize=48:rate=25:x=0:y=0:fontcolor=white:box=1:boxcolor=0x00000099" \ | |
| -c:v libx264 -b:v 5M \ | |
| -c:a aac \ | |
| -r 25 \ | |
| -ar 48k \ | |
| -ab 128k \ | |
| -pix_fmt yuv420p \ | |
| -tune zerolatency -f flv "$url" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment