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
AVformat
FFmpeg
avformat
_open_input函数分析
函数内部的总体流程如下:
avformat
_open_input精简后的代码如下:intavformat_open_input(AVFormatContext**ps,constchar*filename
梧桐樹下
·
2025-06-06 07:10
FFmpeg
ffmpeg
《ffplay 读线程与解码线程分析:从初始化到 seek 操作,对比视频与音频解码的差异》
1read-thread1.1初始化部分1.分配.
avformat
_alloc_context创建上下⽂ic=
avformat
_alloc_context();if(!
邪恶的贝利亚
·
2025-05-14 05:30
c++音视频
FFMPEG
音视频
php
ffmpeg
剖析 FFmpeg:从基本功能到过滤器,实现音视频处理的灵活性
step1:对媒体文件上下文初始化AVFormatContext*ifmt_ctx=NULL;intret=
avformat
_open_input(&ifmt_ctx,in_filename,
邪恶的贝利亚
·
2025-05-14 05:59
c++音视频
FFMPEG
ffmpeg
音视频
ShiftMediaProject项目介绍—ffplay工具RTSP设置连接和接收超时
前言FFmpeg的
avformat
_open_input函数和av_read_frame函数默认是阻塞的,意味着如果RTSP服务器不在线的情况下,ffplay工具会一直在
avformat
_open_input
大G哥
·
2025-05-08 21:03
ffmpeg源码分析(三)结构体之AVFormatContext
AVFormatContext是API中直接接触到的结构体,位于
avformat
.h中,结构体描述了一个多媒体文件或流的构成和基本信息。,是FFmpeg中最为基本的一个结构体。
头快撑不住了
·
2025-05-04 22:57
FFmpeg
源码解析
ffmpeg
音视频
AVFormatContext 结构体分析
由
avformat
_alloc_context()赋值。导出(de)muxer私有选项(如果存在的话)constAVClass*av_class;//输入容器的格式,只
没有飘柔不洗头
·
2025-05-04 21:55
ffmpeg
AVFormatContext分析
一、源码整理首先我们先看一下结构体AVFormatContext的定义的结构体源码(位于libavformat/
avformat
.h,本人已经将相关注释翻译成中文,方便大家理解):/***I/O格式上下文
i胡说
·
2025-05-04 21:54
FFmpeg
FFmpeg
FFmpeg源码学习---ffmpeg
───────────────┐│main()│└─────────┬───────────┘↓┌────────────────────┐│初始化(日志/网络等)││init_dynload()││
avformat
_network_init
weixin_48628145
·
2025-05-01 08:03
ffmpeg
学习
ijkplayer和ffplay在播放ts流时起播慢的原因分析
ijkplayer和ffplay在播放ts流时起播慢的原因分析1.前言2.排查过程2.1
avformat
_find_stream_info函数2.1mpegts.c文件分析1.前言在优化ijkplayer
chendilincd
·
2025-04-23 22:42
音视频学习
linux
音视频
TS流
linux
【音视频】音视频FLV合成实战
ffmpeg的Mux主要分为三步操作:
avformat
_write_header:写⽂件头av_write_frame/av_interleaved_write_frame:写packetav_write_trailer
浅慕Antonio
·
2025-04-19 00:15
音视频
音视频
ffmpeg
【音视频】MP4解封装
可以直接播放二、实现过程准备文件在build路径下添加mp4文件同时,添加main函数参数,表示输入文件和输出文件打开文件打开输入文件,初始化格式上下文char*in_filename=argv[1];ret=
avformat
_open_input
浅慕Antonio
·
2025-04-18 23:09
音视频
音视频
ffmpeg
avformat
_find_stream_info 代码简明注释与理解
author:hjjdebugdate:2025年04月02日星期三14:06:06CSTdescription:
avformat
_find_stream_info代码简明注释与理解文章目录1.前言2.
hjjdebug
·
2025-04-16 18:53
#
ffmpeg
avformat_find_
strea
_info
音视频 ffmpeg库使用
ffmpeg4.2.4源代码extern"C"{#include"libavformat/
avformat
.h"#include"libavcodec/avcodec.h"#include"libswscale
师从小白
·
2025-03-30 08:11
音视频
音视频
ffmpeg
学习ffmpeg-从了解开始
前言:从安装开始sudoaptupdatesudoaptinstallffmpegffmpeg的基本组成模块名称功能描述主要用途
AVFormat
实现媒体封装格式的处理,支持多种音视频容器格式(如MP4、
邪恶的贝利亚
·
2025-03-29 02:14
FFMPEG
学习
ffmpeg
ffmpeg介绍(一)——解封装
解封装常用函数1.
avformat
_open_input()作用打开媒体文件或网络资源:解析文件路径或URL,识别媒体格式(如MP4、AVI、RTSP等)。
zczlsy11
·
2025-03-28 07:30
c++
ffmpeg
[FFmpeg] 软解码将mp4解码为yuv420文件
整体架构流程1.打开输入流文件
avformat
_open_input2.获取输入流信息
avformat
_find_stream_info3.获取视频流信息av_find_best_stream4.创建一个解码的上下文
努力学习的谢老板
·
2025-03-08 05:42
ffmpeg
视频编解码
音视频
FFmpeg--解码:mp4文件解码为音频aac和视频h264
,视频流(h264)流程code命令行参数:input.mp4out.h264out.aac#include#include"libavutil/log.h"#include"libavformat/
avformat
.h
八月的雨季997
·
2025-03-08 05:36
ffmpeg
aac
【FFmpeg】拉流
概述项目实践中涉及到使用ffmpeg进行推流和拉流操作,本文主要对一些基本操作做一个学习总结,后续再学习其源码架构;总结方法遵循实现功能配合函数具体实现基本使用拉流
avformat
_network_init
gma999
·
2025-03-01 13:09
ffmpeg
ffmpeg拉流 —— RTMP拉流例程
参考:最简单的基于FFMPEG的推流器附件:收流器rtmp拉流例程:#include#include"libavformat/
avformat
.h"#include"libavutil/time.h"#
音视频开发老马
·
2025-02-28 00:23
ffmpeg
ffmpeg拉流设置暂停_解决ffmpeg打开流各种超时问题
tcp":"udp",0);//设置tcporudp,默认一般优先tcp再尝试udpav_dict_set(&opts,"stimeout","3000000",0);//设置超时3秒intret=
avformat
_open_input
小花学姐
·
2025-02-27 23:51
ffmpeg拉流设置暂停
ffmpeg源码分析:
avformat
_open_input()
目录一、
avformat
_alloc_context()二、init_input()2.1av_probe_input_format2()2.2av_probe_input_buffer2()2.3io_open
风雨兼程8023
·
2025-02-18 21:22
ffmpeg
ffmpeg
FFMpeg 源码分析 (3)
avformat
_open_input()
这个函数主要用来打开媒体资源。完成媒体格式的探测和获取相关的媒体信息的工作。函数完成定义如下:intavformat_open_input(AVFormatContext**ps,constchar*filename,AVInputFormat*fmt,AVDictionary**options){AVFormatContext*s=*ps;inti,ret=0;AVDictionary*tmp=
雷霆小屁熊
·
2025-02-18 21:52
FFmpeg
ffmpeg
FFMPEG源码分析:
avformat
_open_input()(媒体打开函数)
本文分析了FFMPEG中的媒体打开函数
avformat
_open_input()//参数ps包含一切媒体相关的上下文结构,有它就有了一切,本函数如果打开媒体成功,//会返回一个AVFormatContext
sunshineywz
·
2025-02-18 20:18
ffmpeg
ffmpeg源码简析(五)编码——
avformat
_alloc_output_context2(),avcodec_encode_video2()
1.
avformat
_alloc_output_context2()在基于FFmpeg的视音频编码器程序中,该函数通常是第一个调用的函数(除了组件注册函数av_register_all())。
小码哥_WS
·
2025-02-18 20:14
流媒体-直播-编解码
ffmpeg
ffmpeg
编码
源码
FFmpeg源码分析:
avformat
_open_input
一、函数功能介绍当前支持的媒体解封装协议在libavformat/demuxer_list.c文件的demuxer_list变量中定义当前支持的音视频采集格式在libavdevice/indev_list.c文件的indev_list变量中定义用户可以自行查看av_find_input_format函数的具体逻辑,得知最新版本的ffmpeg支持情况。注意:若进行音视频采集之前,则必须执行avdev
chaisy971124568
·
2025-02-17 08:29
WebRTC
音视频
FFmpeg
ffmpeg
qt+ffmpeg 实现音视频播放(二)之音频播放
一、音频播放流程1、打开音频文件通过
avformat
_open_input()打开媒体文件并分配和初始化AVFormatContext结构体。
码农客栈_V13427279549
·
2025-02-13 10:58
ffmpeg
音视频
Qt
qt
ffmpeg
音视频
从学龄前开始解读FFMPEG代码 之
avformat
_find_stream_info函数三
从学龄前开始解读FFMPEG代码之
avformat
_find_stream_info函数三开始学习前想说的话函数实现4-EOF的情况和flush函数实现5-第四次循环结尾的话开始学习前想说的话鸽了许久,
zzyincsdn
·
2025-02-03 20:19
FFMPEG
音视频
视频处理
c语言
ffmpeg学习六:avcodec_open2函数源码分析
上一节我们尝试分析了
avformat
_open_input函数的源码,这个函数的虽然比较复杂,但是它基本是围绕着创建和初始化一些数据结构来展开的,比如,
avformat
_open_input函数会创建和初始化
阳光玻璃杯
·
2025-01-23 13:04
ffmpeg
ffmpeg
源码
codec
open
06FFMPEG的AVCodecContext结构体分析
但是新版本
avformat
58.d
Mango酱
·
2025-01-20 21:02
FFMPEG
ffmpeg
视频处理
音视频开发——FFmpeg 实现MP4转FLV文件 C语言实现
库打开输入文件找到输入文件的流信息打开输出文件并设置输出格式创建输出文件的流初始化解码器和编码器读取输入文件的帧并写入输出文件释放资源关键代码1初始化FFmpeg库:av_register_all();打开输入文件:if((ret=
avformat
_open_input
Trump. yang
·
2025-01-20 03:28
音视频开发
音视频
ffmpeg
c语言
利用javacv实现视频转h264
importorg.bytedeco.ffmpeg.avcodec.AVCodecParameters;importorg.bytedeco.ffmpeg.
avformat
.AVFormatContext
daqinzl
·
2024-09-05 11:18
流媒体
ffmpeg
视频音频
视频转换
h264
javacv
ffmpeg
ffmpeg入门到精通-音频采集
流程:注册设备avdevice_register_all();获取输入对象格式av_find_input_format(FMT_NAME)打开设备
avformat
_open_input打开文件写入数据结束关闭文件
Lucy-JY
·
2024-09-05 01:39
FFMPEG
FFmpeg将视频包AVPacket通过视频流方式写入本地文件
1.写视频头voidwriteVideoHeader(constchar*videoFileName){intr=
avformat
_alloc_output_context2(&pFormatCtx,nullptr
林鸿群
·
2024-03-17 03:36
ffmpeg
音视频
FFmpeg封装函数
avformat
_open_input()
FFmpeg在调用
avformat
_open_input()之后,可能码流信息不够完整,可以使用
avformat
_find_stream_info()获取更多的码流信息。
肖爱Kun
·
2024-03-15 03:28
RTSP网络视屏协议
c++
ffmpeg将yuv文件编码为mp4
上一遍文件是将mp4的视频流数据解码,并且写入yuv的数据文件中,这篇文章是一个逆向操作,既将yuv数据文件编码为一个mp4文件1.主要函数的调用流程
avformat
_alloc_output_context2
3c1b8ae8346c
·
2024-02-05 17:03
[小白]FFMPEG小白-day03
读完本文章大概需要5分钟基于FFMPEG+SDL的视频播放器制作FFMPEG库简介FFMPEG一共包含8个库*avcodec:编解码(最重要的库)*
avformat
:封装格式处理*avutil:工具库(
Caiaolun
·
2024-01-28 19:38
FFmpeg接口使用说明
avformat
_open_input()打开输入流并读取标题。编解码器此时不会打开。流必须使用
avformat
_close_input()关闭。
taciturn丶
·
2024-01-27 16:41
ffmpeg
ffmpeg的
avformat
_open_input()分析过程--以mp4为例(十)
概要
avformat
_open_input(),该函数用于打开多媒体数据并且获取一些信息,它的声明位于libavformat/
avformat
.h。
andylao62
·
2024-01-27 16:31
流媒体
ijkplayer
ffmpeg
ffmpeg的
avformat
_alloc_context()分析过程(九)
流程图代码解析主要框架
avformat
_alloc_context(void)//option.c{
avformat
_get_context_defaults(ic)//option.cs->av_class
andylao62
·
2024-01-27 16:01
ijkplayer
流媒体
ffmpeg
播放器
ffmpeg_sample解读_qsvdec
/imgs总结读取视频流.解码出视频帧后进行处理.使用了硬件编码,最后写出文件的过程流程图graphTBafoi[
avformat
_open_input]-->ahcc[av_hwdev
刘佳阔
·
2024-01-26 12:45
音视频5、libavformat-编码API详细讲解
11、编码API详解
avformat
_alloc_output_context2/***为输出格式分配AVFormatContext。
Qt学视觉
·
2024-01-26 06:19
音视频
音视频
ffmpeg
音视频5、libavformat-AVFormatContext 结构体解析
*sizeof(AVFormatContext)不能在libav*之外使用,请使用
avformat
_alloc_context()创建AVFormatContext。
Qt学视觉
·
2024-01-26 06:16
音视频
音视频
ffmpeg
c++
关于ffplay源码之serial变量的说明
/*重定位文件*/ret=
avformat
_seek_file(
andylao62
·
2024-01-25 21:05
FFMPEG
ijkplayer
ffmpeg
ijkplayer
ffmpeg MP4转YUV格式保存
#include#include#include"libavcodec/avcodec.h"#include"libavfilter/avfilter.h"#include"libavformat/
avformat
.h
立夏陆之昂
·
2024-01-19 05:17
学习小记录
LINUX学习
视频编解码
ffmpeg关于
avformat
_write_header问题
最近做转码遇到一些问题,先贴个代码在说明:intinit_mux(){inti=0;/*allocatetheoutputmediacontext*/
avformat
_alloc_output_context2
朱韦刚
·
2024-01-17 03:42
ffmpeg
朱韦刚的流媒体技术专栏
ffmpeg
FFmpeg学习
avformat
_open_input()函数分析
前言本文分析
avformat
_open_input函数,该函数在libavformat包下。/***Openaninputstreamandreadtheheader.
程序员老舅
·
2024-01-17 03:11
音视频开发进阶
音视频
webrtc
视频编解码
实时音视频
websocket
ffmpeg——
avformat
_alloc_output_context2
一:介绍
avformat
_alloc_output_context2负责分配输出AVFormatContext。ffmpeg有各种各样的Context,其功能是管理各种各样的模块。
一步-refresh
·
2024-01-17 03:11
视频/音频
ffmpeg
AVOutputFormat
mp4
FFmpeg之
AVFormat
文章目录一、概述二、解封装流程三、重要结构体3.1、AVFormatContext3.2、AVInputFormat3.3、AVOutputFormat3.4、AVStream四、重要函数分析4.1、
avformat
_alloc_context4.2
Coder个人博客
·
2024-01-17 03:08
#
FFmpeg
ffmpeg
音频
音视频
视频编解码
FFmpeg学习之视频像素和尺寸转换
sws_getCachedContext2.像素转换sws_scale#include#includeusingnamespacestd;//测试解封装extern"C"{#include"libavformat/
avformat
.h
wangshenqiang
·
2024-01-13 17:30
FFmpeg学习笔记
音视频
c++
ffmpeg
avformat
_open_input返回失败,错误码-10049
Errornumber-10049occurred调试代码,找到如果设置了time_out参数,就会失败,不设置就没问题,具体原因还没有找到,备注此问题,以待后续继续分析源代码:av_register_all();
avformat
_network_init
猿来巡山
·
2024-01-11 06:31
ffmpeg
ffmpeg
上一页
1
2
3
4
5
6
7
8
下一页
按字母分类:
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
其他