ffmpeg 推流随机中断的问题,求高人解答

libox 发布于 2017/06/07 13:32
阅读 1K+
收藏 1

在ubuntu上,使用ffmpeg  推流的过程中,发现推一段时间流,ffmpeg 进程就会结束,时间不固定,查看了一下推流的日志,显示No more output streams to write to, finishing. 但是我的文件列表中还有很多内容等待推送,

推流的命令:

ffmpeg -loglevel trace -re -f concat -safe 0 -i list.txt -b 500k -minrate 200k -maxrate 500k -bufsize 20480K -acodec copy -vcodec copy -f flv -y rtmp://***************

日志信息:

[concat @ 0x3ec3900] file:16 stream:1 pts:775961 pts_time:775.961 dts:775961 dts_time:775.961 -> pts:52554121 pts_time:52554.1 dts:52554121 dts_time:52554.1

[flv @ 0x43f0c00] type:9, size:4726, last:-1, dts:775932 pos:23944563

[flv @ 0x43f0c00] 0 27 0 

[concat @ 0x3ec3900] file:16 stream:0 pts:775999 pts_time:775.999 dts:775932 dts_time:775.932 -> pts:52554159 pts_time:52554.2 dts:52554092 dts_time:52554.1

av_interleaved_write_frame(): Connection reset by peer

No more output streams to write to, finishing.

[flv @ 0x3f59a40] Failed to update header with correct duration.

[flv @ 0x3f59a40] Failed to update header with correct filesize.

Error writing trailer of rtmp://**************************(推流地址): Connection reset by peer

frame=788328 fps= 15 q=-1.0 Lsize= 1585650kB time=14:35:54.12 bitrate= 247.2kbits/s speed=   1x 

加载中
0
探云手

楼主这个问题解决了吗

 

0
thatgame
thatgame

这是链接断开了吧, 为什么链接不稳,是不是你的网络环境间歇性断网?

返回顶部
顶部