starttranslation.sh
, chmod a+x starttranslation.sh
и запустите ./starttranslation.sh
#!/bin/bash
while [ 1 ]
do
ffmpeg -f lavfi -i anullsrc -rtsp_transport udp -i rtsp://admin:admin@192.168.99.99:554 -tune zerolatency -vcodec libx264 -preset veryfast -crf 24 -g 8 -s 1920x1080 -c:a aac -strict experimental -f flv rtmp://a.rtmp.youtube.com/live2/key
done