“过滤器体积具有未连接的输出” FFMPEG
我看过有关此问题的其他帖子,但似乎没有一个标志适用于我的。这是 bash 脚本的一部分,用于运行命令并在出现错误(例如断开连接时)时重新运行脚本。
cmd="ffmpeg \
-stream_loop -1 -re -thread_queue_size 256 -i "$VIDEO" \
-stream_loop -1 -re -thread_queue_size 256 -i "$AUDIO" \
-re -thread_queue_size 256 -i "$AUDIO" \
-filter_complex \
"[1:a]volume=0.0[a1]; \
[aout]" -map 0:v:0 -map "[aout]" \
-vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:>
-acodec aac -ac 2 -ar 44100 -threads 0 -b:a $AB \
-f flv -rtmp_live live $URL/$KEY"
until $cmd ; do
echo "restarting ffmpeg command..."
sleep 2
done
然后当我运行 bash 脚本时出现错误,它会不断重新启动
Filter volume has an unconnected output
I've looked at other posts about this but none of the flags seem to work with mine. Here is part of the bash script that runs the command and re-runs the script when there's an error, like when it disconnects.
cmd="ffmpeg \
-stream_loop -1 -re -thread_queue_size 256 -i "$VIDEO" \
-stream_loop -1 -re -thread_queue_size 256 -i "$AUDIO" \
-re -thread_queue_size 256 -i "$AUDIO" \
-filter_complex \
"[1:a]volume=0.0[a1]; \
[aout]" -map 0:v:0 -map "[aout]" \
-vcodec libx264 -pix_fmt yuv420p -preset $QUAL -r $FPS -g $(($FPS * 2)) -b:>
-acodec aac -ac 2 -ar 44100 -threads 0 -b:a $AB \
-f flv -rtmp_live live $URL/$KEY"
until $cmd ; do
echo "restarting ffmpeg command..."
sleep 2
done
Then it keeps restarting when I run the bash script with the error
Filter volume has an unconnected output
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论