首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >从ffmpeg udp到HLS错误

从ffmpeg udp到HLS错误
EN

Stack Overflow用户
提问于 2016-02-25 17:54:36
回答 1查看 4K关注 0票数 0

我尝试将UDP流转换为HLS (m3u8)文件,并使用以下代码将该文件放入诸如apache的web服务器中:

代码语言:javascript
运行
复制
ffmpeg -i udp://239.1.2.1:60001 -acodec aac -strict -2 -vcodec libx264 -hls_wrap 100 -f hls /var/www/html/ts/1.m3u8 

在代码转换过程中,我看到了一个错误

代码语言:javascript
运行
复制
[h264 @ 0x14c1c60] number of reference frames (0+4) exceeds max (3; probably corrupt input), discarding one

但是m3u8文件创建成功,我可以在客户端播放它。但是在2到3分钟后我发现了一些错误

代码语言:javascript
运行
复制
[h264 @ 0x158d600] error while decoding MB 30 34, bytestream -10 dup=101 drop=0 [mpegts @ 0x149c660] PES packet size mismatch
[aac_latm @ 0x158daa0] Reserved SBR extensions is not implemented. Update your FFmpeg version to the newest one from Git. If the problem still occurs, it means that your file has a feature which has not been implemented.
[aac_latm @ 0x158daa0] If you want to help, upload a sample of this file to ftp://upload.ffmpeg.org/incoming/ and contact the ffmpeg-devel mailing list. (ffmpeg-devel@ffmpeg.org)
[aac_latm @ 0x158daa0] Expected to read 18 SBR bytes actually read 21.
[aac_latm @ 0x158daa0] channel element 3.4 is not allocated
Error while decoding stream #0:1: Invalid data found when processing input
Last message repeated 1 times
[udp @ 0x148c0c0] Circular buffer overrun. To avoid, increase fifo_size URL option. To survive in such case, use overrun_nonfatal option
[h264 @ 0x158d600] error while decoding MB 41 20, bytestream -14 dup=102 drop=0    
udp://239.1.2.1:60001: Input/output error

溪流立刻停止..。有人知道我怎么能解决这个问题吗?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2016-02-26 16:25:25

尝试增加URL本身中的缓冲区大小。例如:

udp://239.1.2.1:60001?fifo_size=50000000 ffmpeg -i

票数 3
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/35634709

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档