E-COM-NET
首页
在线工具
Layui镜像站
SUI文档
联系我们
推荐频道
Java
PHP
C++
C
C#
Python
Ruby
go语言
Scala
Servlet
Vue
MySQL
NoSQL
Redis
CSS
Oracle
SQL Server
DB2
HBase
Http
HTML5
Spring
Ajax
Jquery
JavaScript
Json
XML
NodeJs
mybatis
Hibernate
算法
设计模式
shell
数据结构
大数据
JS
消息中间件
正则表达式
Tomcat
SQL
Nginx
Shiro
Maven
Linux
AVFormatContext
FFmpeg解码音视频流(iOS)
首先我们来看一下编解码中常用到的结构体:
AVFormatContext
:贯穿全局的基本结构体。主要用于音视频格式方面的处理。AVStream:音频流信息AVCodecConte
九爪章鱼
·
2017-08-24 20:21
FFMpeg 播放视频
AVFormatContext
//多媒体容器格式的封装、解封装工具AVCodec//解码相关类AVFrame//帧数据
Hardy_Hu
·
2017-08-08 16:30
ffmpeg 和 SDL学习(二)
这里先整理以下音频播放的流程:1、从媒体文件中找出音频流的索引(AudioStream)(遍历
AVFormatContext
中的streams,通过判断pFormatCtx->streams[i]->codec
Q星
·
2017-06-28 22:52
FFmpeg中函数avformat_open_input()(含URL解析文件格式)
例如可以判断是否为flv格式等,并将输入文件格式保存到指针
AVFormatContext
里面iformat成员。函数avforma
Hosea14
·
2017-04-03 09:14
项目总结
音视频流媒体
FFMPEG Tips (4) 如何中断阻塞的网络线程
本文是我的《FFMPEGTips》系列的第四篇文章,前面的文章有提到如何提取码流信息、如何读每一帧的数据,这些都是离不开网络操作,例如:使用ffmpeg读取一个码流,常规的代码流程示例如下:
AVFormatContext
Jhuster
·
2016-12-10 12:51
interrupt
ffmpeg
阻塞
FFMPEG
Tips
ffmpeg 内存读写相关
从内存中读取数据经过分析ffmpeg的源代码,发现其是可以从内存中读取数据的:
AVFormatContext
*ic=NUL
github.com/starRTC
·
2016-12-07 17:40
transcode_init()函数介绍
设置编码参数,打开所有输出流的编码器,打开所有输入流的解码器,写入所有输出文件的文件头,具体看注释staticinttranscode_init(void) { intret=0,i,j,k;
AVFormatContext
sidumqz
·
2016-11-04 17:00
ffmpeg一揽子
avformat_alloc_output_context2()函数可以初始化一个用于输出的
AVFormatContext
结构体。它的声明位于libavformat\avformat.h,如下所示。
wainiwann
·
2016-06-22 17:00
二重指针:结构体指针的指针A** b,其成员变量的调用
AVFormatContext
*pFormatCtx; printf("framerate:%d\n",pFormatCtx->streams[videoindex]->r_frame_rate.num
i000zheng
·
2016-04-12 16:00
二重指针
结构体指针
将各种格式flv,avi,mp4等的文件,转码成MP4(无音频)
flv,mp4的文件,转码成MP4*/#include#include#include"test06.h"#define__STDC_CONSTANT_MACROSintflush_encoder_14(
AVFormatContext
geolo
·
2016-02-23 16:24
FFMpeg
android
ffmpeg文档20-格式选项
ffmpeg工具中选项通过特定的-optionvalue进行设置,或者通过
AVFormatContext
选项设置,或者通过libavutil/opt.h中的API设置下面是一些被支持的选项:avioflagsflags
xdsnet
·
2016-02-17 21:00
FFmpeg数据结构和库简介和简单分析
FFmpeg数据结构简介▫
AVFormatContext
封装格式上下文结构体,也是统领全局的结构体,保存了视频文件封装格式相关信息。
John-525
·
2015-12-24 11:24
FFMPEG资料
FFMPEG中常用的几种结构体
AVFormatContext
是一个贯穿始终的数据结构,很多函数都要用到它作为参数。它是FFMPEG解封装(flv,mp4,rmvb,avi)功能的结构体。
John-525
·
2015-12-23 11:57
FFMPEG资料
【ffmpeg】常用结构体集合
几种重要结构体之间的关系,图片来自雷神(雷霄骅)博客结构体
AVFormatContext
该结构体在avformat.h中,
AVFormatContext
主要存储视音频封装
u012819339
·
2015-12-16 13:00
ffmpeg
音视频
FFmpeg SDK开发手册(以output_example为示例)
FFmpeg中比较重要的函数以及数据结构如下:1.数据结构:(1)
AVFormatContext
(2)AVOutputFormat(3)AVInputFormat(4)AVCodecContext(5)
fireroll
·
2015-11-13 11:00
ffmpeg常用数据结构2
; 该结构体描述一个媒体流,定义如下: typedefstructAVStream { int index; /**< stream index in
AVFormatContext
·
2015-11-13 09:38
ffmpeg
ffmpeg常用数据结构3
AVFormatContext
这个结构体描述了一个媒体文件或媒体流的构成和基本信息,定义如下: typedefstructAVFormatContext { constAVClass
·
2015-11-13 09:38
ffmpeg
FFMpeg主要数据结构
AVFormatContext
-> AVStream -> AVCodecContext -> AVCodec,其中后者是前的的数据成员
·
2015-11-13 06:05
ffmpeg
ffmpeg 获取视频宽高
const char* file_name = "video.mp4"; 4 int ret; 5 unsigned int i; 6 7
AVFormatContext
·
2015-11-12 22:20
ffmpeg
ffmpeg解码视频流
av_register_all(); avformat_network_init(); //选取测试文件 char* FileName = "test.rmvb";
AVFormatContext
·
2015-11-12 21:40
ffmpeg
ffmpeg重要结构体之
AVFormatContext
重要结构体之AVCodecContextffmpeg重要结构体之AVCodecffmpeg重要结构体之AVIOContextffmpeg重要结构体之AVStreamffmpeg重要结构体之AVPacket结构体
AVFormatContext
qq_32430349
·
2015-11-12 15:00
视频
ffmpeg
解码
ffmpeg编程(一)
这篇主要讲如何以路径的方式打开一个视频 int main() {
AVFormatContext
*pFormatCtx; int i, videoStream; AVCodecContext
·
2015-11-07 12:30
ffmpeg
ffmpeg笔记
;pb来指定 调用者也可以指定文件解析器demuxer,通过s->iformat来指定 //参数ps包含一切媒体相关的上下文结构,有它就有了一切,本函数如果打开媒体成功, //会返回一个
AVFormatContext
·
2015-11-01 14:41
ffmpeg
[原]零基础学习视频解码之FFMpeg中比较重要的函数以及数据结构
数据结构: (1)
AVFormatContext
AVFormatContext
是一个贯穿始终的数据结构,很多函数都要用到它作为参数。
·
2015-10-31 14:00
ffmpeg
ffmpeg源码分析之媒体打开过程
//参数ps包含一切媒体相关的上下文结构,有它就有了一切,本函数如果打开媒体成功, //会返回一个
AVFormatContext
的实例. //参数filename是媒体文件名或URL.
·
2015-10-30 13:01
ffmpeg
ffmpeg 录音 利用avdevice
可以直接使用ffmpeg录音,参考代码如下:
AVFormatContext
*pFormatCtx; AVCodecContext*pCodecCtx; AVCodec*pCodec
ldpxxx
·
2015-09-28 16:00
ffmpeg
录音
avdevice
ffmpeg综合应用示例(一)——摄像头直播
要使用libavdevice的相关函数,首先需要注册相关组件avdevice_register_all();接下来我们要列出电脑中可用的dshow设备
AVFormatContext
*pFmtCtx=avformat_all
zhouzxi
·
2015-08-29 12:00
ffmpeg
RTMP
摄像头
AVFormatContext
AVFormatContext
是包含码流参数较多的结构体,最为基本的一个结构体,是一个流多媒文件的基本抽象;描述了媒体文件、流文件的构成和基本信息;其中:nb_streams和streams所表示AVStream
u012681083
·
2015-06-18 17:00
ffmpeg
ffmepg 指定RTSP网络连接模式UDP还是TCP
AVFormatContext
*formatCtx = NULL; formatCtx = avformat_alloc_context
·
2015-05-25 17:00
tcp
FFMPEG结构体分析一:
AVFormatContext
一、概述 关于
AVFormatContext
的分析已经有一篇文章了,地址如下: http://blog.csdn.net/leixiaohua1020/article/details/14214705
GAMEloft9
·
2015-05-20 17:00
avformat_open_input() always return -13
我在调用avformat_open_input的时候,一直返回-13错误,如下代码:constchar*url="/mnt/sdcard/xpg.mp4"; av_register_all();
AVFormatContext
Jerikc
·
2015-05-20 10:00
简单的ffmpeg视频转码,只处理视频
1、简单说下整体流程用avformat_open_input打开输入文件上下文,再用avformat_find_stream_info找到流信息,为输出分配
AVFormatContext
空间,然后根据流信息找到视频流
dancing_night
·
2015-05-07 12:48
c++
ffmpeg
ffmpeg学习笔记
FFmpeg源代码简单分析:常见结构体的初始化和销毁(
AVFormatContext
,AVFrame等)
=====================================================FFmpeg的库函数源代码分析文章列表:【架构图】FFmpeg源代码结构图-解码FFmpeg源代码结构图-编码【通用】FFmpeg源代码简单分析:av_register_all()FFmpeg源代码简单分析:avcodec_register_all()FFmpeg源代码简单分析:内存的分配和释
leixiaohua1020
·
2015-03-03 16:00
ffmpeg
avstream
avpacket
AVFormatContext
AVCodecContext
av_dump_format函数简介
原型:voidav_dump_format(
AVFormatContext
*ic,intindex,constchar*url,intis_output);参数:*Printdetailedinformationabouttheinputoroutputformat
disadministrator
·
2015-02-28 15:41
FFmpeg数据结构彻底分析——
AVFormatContext
/** *FormatI/Ocontext. 这个结构体是在解封装的过程中用的,其中有很多重要的信息,所以一定要搞清楚其中的成员。 *Newfieldscanbeaddedtotheendwithminorversionbumps. *Removal,reorderingandchangestoexistingfieldsrequireamajor *versionbump. *sizeof(AV
zhangyujsj
·
2014-12-16 22:00
FFMPEG-
AVFormatContext
结构详解
FFMPEG的结构体看的让人找不到北,尤其对接触FFMPEG的新手来说,在接下来的一段时间内,我将用图形化的方式来讲解他们之间的关系,先从
AVFormatContext
说起吧,这个结构体像个root类,
雷霄骅
·
2014-12-12 11:00
ffmepg 指定RTSP网络连接模式UDP还是TCP
AVFormatContext
*formatCtx = NULL; formatCtx = avformat_alloc_context(); AVDictionary* options =
vbLittleBoy
·
2014-12-10 15:00
ffmpeg解码内存缓冲区
与解码文件的大致过程类似,只不过自定义了
AVFormatContext
structIOData { char*data; size_tlen; }; intFrVideoAcqHT::io_get_data
tobacco5648
·
2014-12-01 13:00
ffmpeg解码文件
只贴出部分代码,重在说明过程av_register_all();
AVFormatContext
*fctx=avformat_alloc_context(); interr=avformat_open_input
tobacco5648
·
2014-12-01 13:00
ffmpeg源码分析之avformat_alloc_context
AVFormatContext
是在整个媒体流的处理流程中都会用到的对象。
AVFormatContext
必须初始化为NULL或者用avformat_alloc_context()进行初始化。
rootusers
·
2014-10-31 16:00
ffmpeg
FFmpeg的一些关键的数据结构(一)
ffmpeg定义的数据结构很有特色:有一些是动态与静态的关系,比如, URLProtocol 和 URLContex t ,AVInputFormat 和
AVFormatContext
, AVCodec
chriszeng87
·
2014-10-29 17:00
ffmpeg
ffmpeg源代码分析之avformat_open_input
从大面意思上来讲,函数作用是打开输入流,但是流具体是如何打开的,具体做了哪些事情,我们慢慢来分析研究下:intavformat_open_input(
AVFormatContext
**ps,constchar
rootusers
·
2014-10-16 10:00
ffmpeg
Ffmpeg结构体——
AVFormatContext
该结构体是贯穿始终的一个结构体!是ffmpeg解复用(解封装)用的结构体!(在这里仅是解码情况) 此结构描述了一个媒体文件或媒体流的构成的基本信息。 typedefstructAVFormatContext{ /** *
[email protected]
_alloc_conttypedefstructAVFormatContext{ /**
rootusers
·
2014-10-15 16:00
ffmpeg
4——FFMPEG之流对象----AVStream
从多媒体播放器基础知识中知道,解复用器的目的就是把不同的流从容器中分离(解析出来),FFMPEG中的流对象为AVStream,他是由解复用器的read_header()函数创建,并保存在
AVFormatContext
finewind
·
2014-10-11 22:00
FFmpeg 基本知识
容器(container):就是文件格式,在视频文件进入处理后,我们会给这个视频文件一个抽象,这个抽象就是存放这种视频文件的容器,在FFMPEG中,用来抽象文件格式的容器就是
AVFormatContext
luopingfeng
·
2014-09-23 14:00
增加一个 AVFormat 格式:PES
lavf公共格式:
AVFormatContext
{ AVInputFormat*iformat; //输入格式 AVOutputFormat*oformat;//或者输出格式 void*priv_data
deyangliu
·
2014-09-22 21:00
ffmpeg
Codec
AVFormatContext
结构体分析
typedefstructAVFormatContext{ /** *
[email protected]
_alloc_context(). 处理视频开始的类,用avformat_alloc_context()分配空间 *Exports(de)muxerprivateoptionsiftheyexist. muxe
xwisen
·
2014-08-22 15:00
ffmpeg SDK开发手册
FFMpegSDK开发手册FFMpeg中比较重要的函数以及数据结构如下:1.数据结构:(1)
AVFormatContext
(2)AVOutputFormat(3)AVInputFormat(4)AVCodecContext
xwisen
·
2014-08-17 14:00
FFMPEG源码分析:avformat_open_input()(媒体打开函数)
本文分析了FFMPEG中的媒体打开函数avformat_open_input()//参数ps包含一切媒体相关的上下文结构,有它就有了一切,本函数如果打开媒体成功, //会返回一个
AVFormatContext
雷霄骅
·
2014-08-16 13:00
源码
ffmpeg
打开
FFMPEG结构体分析:
AVFormatContext
注:写了一系列的结构体的分析的文章,在这里列一个列表:FFMPEG结构体分析:AVFormatContextFFMPEG结构体分析:AVFrameFFMPEG结构体分析:AVCodecContextFFMPEG结构体分析:AVIOContextFFMPEG结构体分析:AVCodecFFMPEG结构体分析:AVStreamFFMPEG结构体分析:AVPacket首先看一下结构体的定义(位于avfor
雷霄骅
·
2014-08-16 13:00
视频
源代码
ffmpeg
元数据
AVFormatContext
上一页
2
3
4
5
6
7
8
9
下一页
按字母分类:
A
B
C
D
E
F
G
H
I
J
K
L
M
N
O
P
Q
R
S
T
U
V
W
X
Y
Z
其他