流m3u8在启动之前已停止 [英] stream m3u8 stopped before start

查看:108
本文介绍了流m3u8在启动之前已停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有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] 21629ffmpeg版本N-97584-gf821ae8版权所有(c)2000-2020 FFmpeg开发人员使用gcc 5.4.0(Ubuntu 5.4.0-6ubuntu1〜16.04.12)内置20160609配置:--enable-openssl --disable-x86asmlibavutil 56. 43.100/56. 43.100libavcodec 58. 82.100/58. 82.100libavformat 58. 42.102/58. 42.102libavdevice 58. 9.103/58. 9.103libavfilter 7. 80.100/7. 80.100libswscale 5. 6.101/5. 6.101libswresample 3. 6.100/3. 6.100-c:v:找不到命令

[7] 21629 ffmpeg version N-97584-gf821ae8 Copyright (c) 2000-2020 the FFmpeg developers built with gcc 5.4.0 (Ubuntu 5.4.0-6ubuntu1~16.04.12) 20160609 configuration: --enable-openssl --disable-x86asm libavutil 56. 43.100 / 56. 43.100 libavcodec 58. 82.100 / 58. 82.100 libavformat 58. 42.102 / 58. 42.102 libavdevice 58. 9.103 / 58. 9.103 libavfilter 7. 80.100 / 7. 80.100 libswscale 5. 6.101 / 5. 6.101 libswresample 3. 6.100 / 3. 6.100 -c:v: command not found

[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在启动之前已停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆