h264打包成flv,播放的时候开头总是会有一小段是绿屏的

sinuos 2014-05-27 02:59:16
h264文件是采集摄像头后实时编码产生的,h264直接播放是好的,打包成flv,播放的时候开头总是会有一小段是绿屏的,ffplay播放的时候出现如下错误
[h264 @ 0x7f1718000d60] Cannot use next picture in error concealment
[h264 @ 0x7f1718000d60] concealing 1200 DC, 1200 AC, 1200 MV errors in P frame
[h264 @ 0x7f1718000d60] Cannot use next picture in error concealment
[h264 @ 0x7f1718000d60] concealing 1200 DC, 1200 AC, 1200 MV errors in P frame
[h264 @ 0x7f1718000d60] Cannot use next picture in error concealment
[h264 @ 0x7f1718000d60] concealing 1200 DC, 1200 AC, 1200 MV errors in P frame
[h264 @ 0x7f1718000d60] Cannot use next picture in error concealment
[h264 @ 0x7f1718000d60] concealing 1200 DC, 1200 AC, 1200 MV errors in P frame
[h264 @ 0x7f1718000d60] Cannot use next picture in error concealment
[h264 @ 0x7f1718000d60] concealing 1200 DC, 1200 AC, 1200 MV errors in P frame
[h264 @ 0x7f1718000d60] Cannot use next picture in error concealment
[h264 @ 0x7f1718000d60] concealing 1200 DC, 1200 AC, 1200 MV errors in P frame

这是什么原因导致的
...全文
3221 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
wangxinhe1018 2016-12-28
  • 打赏
  • 举报
回复
请问楼主是这么解决这个问题的,碰到了同样的问题。
朱韦刚 2015-02-11
  • 打赏
  • 举报
回复
绿色是没数据。
smilestone322 2014-12-29
  • 打赏
  • 举报
回复
是不是H264数据没有从sps开始
一叶秋痕 2014-12-22
  • 打赏
  • 举报
回复
楼主,这个绿屛,解决了吗,是什么原因啊,我也遇到这个问题了?
garefield 2014-08-11
  • 打赏
  • 举报
回复
有b帧? if (s->next_pic.f) { if (s->next_pic.f->width != s->cur_pic.f->width || s->next_pic.f->height != s->cur_pic.f->height || s->next_pic.f->format != s->cur_pic.f->format) { av_log(s->avctx, AV_LOG_WARNING, "Cannot use next picture in error concealment\n"); memset(&s->next_pic, 0, sizeof(s->next_pic)); } } ffmpeg源码中是这么判断的,查查转码时的参数设置
chaoyuebaihu 2014-08-01
  • 打赏
  • 举报
回复
楼主,能分享您的H264打包FLV的源代码吗???我的邮箱1102411712@qq.com

2,543

社区成员

发帖
与我相关
我的任务
社区描述
专题开发/技术/项目 多媒体/流媒体开发
社区管理员
  • 多媒体/流媒体开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧