
音视频
ybn187
这个作者很懒,什么都没留下…
展开
-
ffmpeg 保存数据流到文件
av_register_all(); std::string filename = "d6.mp4"; AVFormatContext *outContext = NULL; avformat_alloc_output_context2(&outContext, NULL, "mp4", filename.c_str()); AVStream *stream = avformat_...原创 2020-04-08 14:37:31 · 1115 阅读 · 0 评论 -
c++ aac转pcm
最开始使用的是ffmpeg 主要代码如下: //注册所有的工具 av_register_all(); AVFormatContext *fmt_ctx = NULL; AVCodecContext *cod_ctx = NULL; AVCodec *cod = NULL; //分配一个avformat fmt_ctx = avformat_alloc_c...原创 2019-11-07 20:22:03 · 1400 阅读 · 2 评论 -
g726转pcm
g726转pcm 1077协议,别人的设备,没参数,获取音频包,解析得知是g726编码 刚开始找的是adpcm解码的,下面这个链接的https://blog.youkuaiyun.com/forfuture3513/article/details/51764814 测试发现都是电流兹兹声,不对 后来找到https://blog.youkuaiyun.com/xiejiashu/article/details/46505...原创 2018-10-10 13:46:04 · 3213 阅读 · 14 评论