FFMpeg直接解码live555收到的网络数据包时错误解决方法
来源:互联网 发布:java开源工作流框架 编辑:程序博客网 时间:2024/05/16 15:36
错误描述:
[h264 @ 003e4df0] non-existing PPS 0 referenced
[h264 @ 003e4df0] decode_slice_header error
[h264 @ 003e4df0] non-existing PPS 0 referenced
[h264 @ 003e4df0] decode_slice_header error
说明:上面的错误原因是PPS在解码的时候没有被设置
解决方法:
AVCodecContext *pCodecCtx; //解码环境
pCodecCtx = avcodec_alloc_context();//分配解码环境
pCodecCtx->extradata = new uint8_t[32];//给extradata成员参数分配内存
pCodecCtx->extradata_size = 32;//extradata成员参数分配内存大小
//给extradata成员参数设置值
//00 00 00 01
pCodecCtx->extradata[0] = 0x00;
pCodecCtx->extradata[1] = 0x00;
pCodecCtx->extradata[2] = 0x00;
pCodecCtx->extradata[3] = 0x01;
//67 42 80 1e
pCodecCtx->extradata[4] = 0x67;
pCodecCtx->extradata[5] = 0x42;
pCodecCtx->extradata[6] = 0x80;
pCodecCtx->extradata[7] = 0x1e;
//88 8b 40 50
pCodecCtx->extradata[8] = 0x88;
pCodecCtx->extradata[9] = 0x8b;
pCodecCtx->extradata[10] = 0x40;
pCodecCtx->extradata[11] = 0x50;
//1e d0 80 00
pCodecCtx->extradata[12] = 0x1e;
pCodecCtx->extradata[13] = 0xd0;
pCodecCtx->extradata[14] = 0x80;
pCodecCtx->extradata[15] = 0x00;
//03 84 00 00
pCodecCtx->extradata[16] = 0x03;
pCodecCtx->extradata[17] = 0x84;
pCodecCtx->extradata[18] = 0x00;
pCodecCtx->extradata[19] = 0x00;
//af c8 02 00
pCodecCtx->extradata[20] = 0xaf;
pCodecCtx->extradata[21] = 0xc8;
pCodecCtx->extradata[22] = 0x02;
pCodecCtx->extradata[23] = 0x00;
//00 00 00 01
pCodecCtx->extradata[24] = 0x00;
pCodecCtx->extradata[25] = 0x00;
pCodecCtx->extradata[26] = 0x00;
pCodecCtx->extradata[27] = 0x01;
//68 ce 38 80
pCodecCtx->extradata[28] = 0x68;
pCodecCtx->extradata[29] = 0xce;
pCodecCtx->extradata[30] = 0x38;
pCodecCtx->extradata[31] = 0x80;
- FFMpeg直接解码live555收到的网络数据包时错误解决方法
- FFMpeg直接解码live555收到的网络数据包时错误解决方法
- 开发ffmpeg/live555常见问题错误及解决方法
- 开发ffmpeg/live555常见问题错误及解决方法
- live555实现ffmpeg解码H264的rtsp流
- live555实现ffmpeg解码H264的rtsp流
- live555实现ffmpeg解码H264的rtsp流
- live555实现ffmpeg解码H264的rtsp流
- 基于live555的rtsp客户端接收及ffmpeg解码
- 基于live555的rtsp客户端接收及ffmpeg解码
- 基于live555的rtsp客户端接收及ffmpeg解码
- Live555 + h264 + ffmpeg 客户端解码 笔记
- rtsp客户端 & ffmpeg解码(基于live555)
- 整理 live555 rtsp ffmpeg 客户端解码流程
- ffmpeg网络流解码
- live555收到的数据流程分析
- 当安装 Office 2003 时收到 " Error 1327。 " 错误消息的解决方法
- FFmpeg 编解码错误分析
- iPhone怎么设置铃声 iPhone铃声设置详细教程
- ARM9时钟FCLK HCLK PCLK为各个模块提供的时钟频率
- Android 应用界面主题Theme使用方法
- error LNK2001: 无法解析的外部符号 "public: virtual struct QMetaObject const * __thiscall Widget::metaObject
- ubuntu 4种方法设置环境变量
- FFMpeg直接解码live555收到的网络数据包时错误解决方法
- RabbitMQ学习之:(十一)AMQP.0-10规范,中文翻译1,2,3章 (转载)
- tomcat启动时候一闪而过
- 在不修改代码的情况下无限扩展应用项目
- 拷贝构造函数的参数类型必须是引用
- linux 下查看机器配置命令
- bmp/gif/jpg图象最底层原理分析
- STL Vector
- linux中 probe函数的何时调用的