WebRTC
chaisy971124568
这个作者很懒,什么都没留下…
展开
-
FFmpeg源码分析:AVInputFormat结构体
一个真正快乐的人,是能够享受他的创造的人。那些像海绵一样,只取不予的人,只会失去快乐。AVInputFormat结构体用来表示输入文件容器格式,着重于功能函数,一个文件容器格式对应着一个AVInputFormat结构。通过以下两种方式进行设置:当通过avformat_open_input函数设置时,需要对filename的值进行探测 如果上一步骤探测失败,则会对filename指定的文件或协议进行探测 也可以通过av_find_input_format函数获取输入文件容器格式举例如下:.原创 2020-12-16 10:31:05 · 333 阅读 · 0 评论 -
FFmpeg源码分析:avio_open2
一个真正快乐的人,是能够享受他的创造的人。那些像海绵一样,只取不予的人,只会失去快乐。avio_open2函数是用来打开输入输出文件,包括普通的文件、rtmp、udp、https等。ffmpeg用来管理输入输出文件数据结构是AVIOContext。一、函数参数解析int avio_open2(AVIOContext **s, const char *url, int flags, const AVIOInterruptCB *int_cb, AVDicti.原创 2020-11-30 22:07:31 · 887 阅读 · 0 评论 -
FFmpeg源码分析:AVCodecContext结构体
当你和别人相处的时候,也应该像你在读书一样,一定要集中精力。读书的时候,要将全部的精力都集中到书本的内容当中;与别人相处的时候,将注意力倾注到自己的所见所闻里,这一点是很重要的。AVCodecContext结构体主要用来对音视频数据进行编解码,一般与AVFormatContext结构结合使用。...原创 2020-11-27 22:06:08 · 123 阅读 · 0 评论 -
FFmpeg实战:从设备采集音频
//// Created by wiggers on 2020/11/14.//#include <libavutil/log.h>#include <libavformat/avformat.h>#include <libavdevice/avdevice.h>#include <stdio.h>#include <assert.h>static void simple_capture_audio(){ /* .原创 2020-11-19 10:34:05 · 568 阅读 · 0 评论 -
FFmpeg源码分析:av_packet_alloc
函数声明/** * Allocate an AVPacket and set its fields to default values. The resulting * struct must be freed using av_packet_free(). * 分配AVPacket内存并设置成员变量的默认值。该函数的返回值必须通过av_packet_free进行释放。 * * @return An AVPacket filled with default values or NULL o原创 2020-11-18 23:45:42 · 1126 阅读 · 0 评论 -
FFmpeg源码分析:avformat_find_stream_info
函数声明/** * Read packets of a media file to get stream information. This * is useful for file formats with no headers such as MPEG. This * function also computes the real framerate in case of MPEG-2 repeat * frame mode. * The logical file position is原创 2020-11-18 23:37:28 · 258 阅读 · 1 评论 -
FFmpeg源码分析:avformat_alloc_context
函数声明/** * Allocate an AVFormatContext. * avformat_free_context() can be used to free the context and everything * allocated by the framework within it. * 分配一个AVFormatContext结构。 * avformat_free_context()可以用来释放该Context,并且会释放由框架分配的所有内存。 */AVFormatCo原创 2020-11-18 23:20:35 · 708 阅读 · 0 评论 -
FFmpeg源码分析:avformat_open_input
函数原型/** * 打开输入流并读取文件头。此时解码器还未打开。 * 该流必须通过avformat_close_input()函数关闭。 * * @param ps 用户提供的指针,类型为AVFormatContext,可以事先通过avformat_alloc_context()进行分配。 * 如果该ps指向的值为NULL,则avformat_open_input会调用avformat_alloc_context()进行分配。 * 注意当avform原创 2020-11-18 19:16:00 · 825 阅读 · 0 评论 -
FFmpeg源码分析:av_find_input_format
函数原型/** * Find AVInputFormat based on the short name of the input format. * 根据输入格式的短名称查找AVInputFormat。 */ff_const59 AVInputFormat *av_find_input_format(const char *short_name)函数定义ff_const59 AVInputFormat *av_find_input_format(const char *short_原创 2020-11-18 19:00:02 · 2083 阅读 · 0 评论 -
FFmpeg源码分析:avdevice_register_all
使用ffmpeg+SDL实现简单播放器ffmpeg版本: v4.3.1SDL版本: v2.0.12系列文章目录前言 一、pandas是什么? 二、使用步骤 1.引入库 2.读入数据 总结前言提示:这里可以添加本文要记录的大概内容:例如:随着人工智能的不断发展,机器学习这门技术也越来越重要,很多人都开启了学习机器学习,本文就介绍了机器学习的基础内容。提示:以下是本篇文章正文内容,下面案例可供参考一、安装ffmpeg示例:pandas 是基于NumPy原创 2020-10-15 10:42:35 · 618 阅读 · 0 评论