问题描述
我有m3u8链接和RTMP服务器.我想从m3u8 linkt流到RTMP服务器,但是当我调用命令时
I have m3u8 link and RTMP server. I wanna stream from m3u8 linkt to RTMP server but when i call command
ffmpeg -re -stream_loop -1 -i xxx.m3u8 -c:v复制-c:a aac -ar 44100 -ab 128k -ac 2 -strict -2 -flags + global_header -bsf:a aac_adtstoasc -bufsize 2000k-f flv rtmp://xxx
ffmpeg -re -stream_loop -1 -i xxx.m3u8 -c:v copy -c:a aac -ar 44100 -ab 128k -ac 2 -strict -2 -flags +global_header -bsf:a aac_adtstoasc -bufsize 2000k -f flv rtmp://xxx
然后ffmpeg显示完成",但不显示流.
then ffmpeg show "DONE" but not stream.
[7] + 已停止 ffmpeg -re -stream_loop -1 -i https://
[7]+ Stopped ffmpeg -re -stream_loop -1 -i https://
推荐答案
您所使用的URL具有诸如&
或;
之类的字符,这些字符将被解释贝壳.将网址放在引号中.
the URL you are using has a characters such as &
or ;
that are being interpreted by the shell. Place the url in quotes.
例如 ffmpeg -re -stream_loop -1 -i"xxx.m3u8" -c:v复制-c:a aac -ar 44100 -ab 128k -ac 2 -strict -2 -flags + global_header -bsf:a aac_adtstoasc-bufsize 2000k -f flv rtmp://xxx
这篇关于流m3u8在启动之前已停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!