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] 软解码将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
最简单的基于FFMPEG 4.2的封装格式转换器(无编解码MP4转FLV)
文章目录最简单的基于FFMPEG4.2的封装格式转换器(无编解码)配置代码结果关键函数说明
avformat
_open_inputavformat_find_stream_infoav_dump_formatavformat_alloc_output_context2av_mallocz_arrayavformat_new_stream
怪我冷i
·
2024-01-09 09:11
音视频
音视频
ffmpeg
FFmpeg读取并定位代码中的视频
从内存中读取数据在
avformat
_open_input()之前初始化一个AVIOContext,而且将原本的AVFormatContext的指针pb(AVIOContext类型)指向这个自行初始化AVIOContext
KunQAQrz
·
2024-01-06 07:52
周博客
ffmpeg
FFMpeg.AutoGen(3)实战:解码直播流并保存为MP4文件(未完成)
Muxer视音频复用器数据结构AVCodecContextAVFormateContextAVFormatContext是API中直接接触到的结构体,位于
avformat
.h中,是音视频数据,也就是音视频文件
伊一线天
·
2024-01-06 07:21
编程语言
java
ffmpeg
机器学习
python
读书之深入理解ffmpeg_简单笔记1(初步)
第二章:FFmpeg的历史,宏观介绍
AVFormat
(封装,解封装),AVCodec(编码,解码模块),AVFilter(滤镜模块),AVDevices(设备模块)
yun6853992
·
2024-01-05 14:26
读书
笔记
ffmpeg
ffmpeg各种函数详解
文章目录一、ffmpeg基本流程图1.1、av_register_all()1.2、
avformat
_open_input()1.3、intavformat_find_stream_info()1.4avcodec_find_decoder
永不秃头的程序员
·
2024-01-04 01:32
音视频
FFmpeg处理音视频的常用API及一般流程
av_register_all();2.
avformat
_open_input():打开输入文件(流)并获取文件(流)的格式信息。AVFormatContext*fmt_ctx
西部秋虫
·
2024-01-03 03:54
C++
opencv
ffmpeg
ffmpeg
c++
第7课 利用FFmpeg将摄像头画面与麦克风数据合成后推送到rtmp服务器
推送音视频合成流到rtmp服务器地址的流程如下:1.创建输出流//初始化输出流上下文
avformat
_alloc_output_context2(&outFormatCtx,NULL,"flv",outFileName
西部秋虫
·
2024-01-03 03:23
opencv
C++
ffmpeg
ffmpeg
c++
音视频
opencv
[音视频 ffmpeg] 复用推流
include"videodecodethread.h"VideodecodeThread::VideodecodeThread(QObject*parent):QThread(parent){avdevice_register_all();
avformat
_network_init
道剑剑非道
·
2023-12-30 15:23
ffmpeg
音视频
qt
c++
【音视频 ffmpeg 】直播推流QT框架搭建
include"videodecodethread.h"VideodecodeThread::VideodecodeThread(QObject*parent):QThread(parent){avdevice_register_all();
avformat
_network_init
道剑剑非道
·
2023-12-30 12:32
音视频
ffmpeg
qt
【音视频 ffmpeg 学习】麦克风数据采集,命令行播放 持续更新
ffmpeg命令windows环境查看设备ffmpeg-list_devicestrue-fdshow-idummy采集麦克风代码//1.initavdevice_register_all();//
avformat
_network_init
道剑剑非道
·
2023-12-30 08:50
音视频
ffmpeg
学习
Qt使用ffmpeg获取视频文件封面图
Qt使用ffmpeg获取视频文件封面图#ifndef__THUM_HELPER_H_#define__THUM_HELPER_H_extern"C"{#include"libavformat/
avformat
.h
问君能有几多愁~
·
2023-12-23 05:36
QT学习
C++
ffmpeg
qt
开发语言
流媒体开发学习7 ffmpeg API保存流到文件demo
一些函数说明:
avformat
_open_input该函数用于打开多媒体数据并且获得一些相关的信息。
juruiyuan111
·
2023-12-22 03:34
ffmpeg
ffmpeg
音视频
利用FFmpeg将一系列jpg图片封装成mp4格式
#include"libavformat/
avformat
.h"#include"libavutil/timestamp.h"#defineNUMS33voidsaveframe(AVFrame*frame
frgfnjrgn
·
2023-12-21 15:10
音视频
ffmpeg
jpg
mp4
FFmpeg零基础学习(四)——CPU视频解码 重新编码
目录前言正文一、核心代码二、重要的API1、
avformat
_alloc_context2、
avformat
_open_input3、avcodec_alloc_context34、avcodec_parameters_to_context5
昨夜雨疏风骤z
·
2023-12-18 10:52
FFmpeg
FFmpeg
基于FFmpeg源码分析HLS拉流
代码主要实现在hls.c文件.伪代码如下:可以看出针对hls的协议处理主要实现是在
avformat
_open_input中,具体细节接下来分析。
程序员老舅
·
2023-12-15 12:05
音视频开发进阶
音视频
网络协议
实时音视频
webrtc
视频编解码
上一页
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
其他