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分离出PCM数据
二、使用代码编程提取主要步骤如下:1、使用avformat_open_input函数打开输入文件获取
AVFormatContext
上下文ifmt_ctx;2、使用
iOS开发之FFmpeg
·
2021-04-23 09:38
FFmpeg分离出YUV数据
本文将使用FFmpeg从mp4文件中提取YUV数据保存到本地,主要步骤如下:1、使用avformat_open_input函数打开输入文件获取
AVFormatContext
上下文ifmt_ctx;2、使用
iOS开发之FFmpeg
·
2021-04-23 09:22
IJKPlayer 快进快退 (Seek) 不准问题解决方法
的函数,通过设置不同的标志位来修改Seek的类型1.在IJKPlayer库文件源码中搜索av_seek_frame或者avformat_seek_file这两个函数avformat_seek_file(
AVFormatContext
dalongLSL
·
2021-04-22 09:01
avformat_open_input(); 返回-5
ps=avformat_alloc_context();fmt=av_find_input_format("dshow");intavformat_open_input(
AVFormatContext
*
qq_34732729
·
2020-10-09 14:52
ffmpeg音视频开发
VS2010
FFMPEG中关于ts流的时长估计的实现(转)
ts流中的时间估计我们知道ts流中是没有时间信息的,我门来看看ffmpeg是怎么估计其duration的方法1.通过pts来估计staticvoidestimate_timings_from_pts(
AVFormatContext
weixin_33860528
·
2020-09-17 10:48
ffmpeg
移动开发
php
FFmpeg 3.0 计算视频时长
本博客转载于:http://www.jianshu.com/p/66b13b2b29791、问题:
AVFormatContext
和AVStream都有duration:int64_t字段,调用av_dump_format
一世豁然
·
2020-09-17 09:50
ffmpeg
FFmpeg av_interleaved_write_frame错误
av_interleaved_write_frame1、av_interleaved_write_frame崩溃检查传入的AVPacket中的pts和dts、
AVFormatContext
中的AVStream
zhouyongku
·
2020-09-16 06:01
流媒体
ffmpeg av_interleaved_write_frame 在磁盘满的情况下报错,提示除数为0
intavformat_write_header(
AVFormatContext
*s,AVDictionary**options)Allocatethestreamprivatedataandwritethestreamheadertoanoutputmediafile.intav_write_frame
smilestone322
·
2020-09-15 11:45
FFMPEG
流媒体开源技术
ffmpeg里获取完整一帧的例子
include"stdlib.h"#include"avcodec.h"#include"avformat.h"#include"avutil.h"#include"flvdec.h"boolGetNextFrame(
AVFormatContext
Tianyu-liu
·
2020-09-15 06:28
ffmpeg
【FFMPEG源码终极解析】int av_read_frame(
AVFormatContext
*s, AVPacket *pkt)
intav_read_frame(
AVFormatContext
*s,AVPacket*pkt){constintgenpts=s->flags&AVFMT_FLAG_GENPTS;inteof=0;intret
༄yi笑奈何
·
2020-09-15 05:03
流媒体音视频
【FFMPEG源码终极解析】 avformat_open_input (一)
intavformat_open_input(
AVFormatContext
**ps,constchar*filename,ff_const59AVInputFormat*fmt,AVDictionary
༄yi笑奈何
·
2020-09-15 05:31
流媒体音视频
AVFormatContext
中的三个AVPacketList类型的缓冲的浅显分析
转载地址:AVPacketList是代表链表的一种节点类型,每一个节点内存放的是该链表的内容(一个AVPacket)和一个用于串接链表的指针(看起来是一个单链表)[cpp]viewplaincopytypedefstructAVPacketList{AVPacketpkt;structAVPacketList*next;}AVPacketList;因此,见到AVPacketList,应该首先相当这
qingfengtsing
·
2020-09-14 19:24
多媒体
ffmpeg库使用,undefined reference错误
编译时的注意事项编译时出现以下错误:错误一:undefinedreferenceto`av_register_all()'undefinedreferenceto`avformat_open_input(
AVFormatContext
weixin_34306593
·
2020-09-14 09:02
MP3转码PCM
staticintdst_nb_samples=0;#defineSWRintencoding(constchar*in_file,constchar*out_file){//注册所有的工具av_register_all();
AVFormatContext
THEWORLDKIND
·
2020-09-13 15:17
C语言
使用ffmpeg接口将YUV编码封装为文件
目录1.第一步:初始化相关结构体1.1.第一步:手动创造
AVFormatContext
(封装输出文件格式)1.2.第二步:设置stream的id和codec等参数1.3.第三步:打开编码音视频数据所需要的编码器
timesir
·
2020-09-13 14:22
视频处理
Windows下搭建ffmpeg+VS2008开发环境详细教程
ffmpeg源码(dev版本+share版本)提醒下ffmpeg源码应该是32bit,因为当前新建工程也是32位注意头文件的引用main函数代码如下:intmain(intargc,char**argv){
AVFormatContext
bingqingsuimeng
·
2020-09-13 05:29
ffmpeg: 从视频里提取视频帧,并保存为图片文件
av_seek_frame原型如下:intav_seek_frame(
AVFormatContext
*s,intstream_index,int64_ttimestamp,intflags){}参数1:
hai7song
·
2020-09-10 22:02
ffmpeg
ffplay解析错误引起的崩溃
解决方法1:根据已知视频源初始化
AVFormatContext
及AVCodecContext等参数。解决方法2:再次尝试打开并分析该视频流。
eric26
·
2020-08-25 16:27
ffmpeg # start_time in
AVFormatContext
staticintopen_input_file(OptionsContext*o,constchar*filename){InputFile*f;
AVFormatContext
*ic;...
FlyingPenguin
·
2020-08-25 06:20
音视频处理FFMPeg开发实战(4) -- 抓取视频存为单张图片
定义全局变量
AVFormatContext
*g_inputContext=NULL;
AVFormatContext
*g_outputContext;int64_tg_lastReadPacktTime=
我是包不同
·
2020-08-24 18:02
C/C++
FFMpeg
ffmpeg音视频同步原理
av_open_input_file根据文件头的信息确定,缺少的信息需要通过调用av_find_stream_info读帧及软解码进一步获取:index/id:index对应流的索引,这个数字是自动生成的,根据index可以从
AVFormatContext
depthlove1
·
2020-08-23 05:57
流媒体开发
FFmpeg结构体:
AVFormatContext
1.描述
AVFormatContext
描述了一个媒体文件或媒体流的构成和基本信息,位于avformat.h文件中。
YellowLayne
·
2020-08-22 03:23
ffmpeg从网上保存视频流到本地文件
dts解码参考时间,pts是预览参考时间,在没有B帧的情况下,pts=dts在有B帧的情况下同一帧才可能带有不同的dts和pts要等到下一帧才能解码,但是显示时间在前面//记一些重要函数//转换时间基
AVFormatContext
吐着泡泡说爱你
·
2020-08-21 11:33
视音频开发
FFmpeg——视频解码——转YUV并输出——av_image函数介绍
AVFormatContextAVCodecAVCodecContext2.准备上下文的原子对象AVFrameAVPacket3.配置解码器一种是直接finddecoder输入AVCodecID即可另一种是按
AVFormatContext
蛮三
·
2020-08-21 11:41
FFmpeg
使用ffmpeg获取视频流后如何封装存储成mp4文件
intmain(intargc,char*argv[])02{03
AVFormatContext
*pFormatCtx;04inti,videoStream;05AVCodecContext*pCodecCtx
weixin_34310785
·
2020-08-21 11:18
ffmpeg——av_write_trailer写文件尾
intav_write_trailer(
AVFormatContext
*s){intret,i;for(;;){AVPack
一步-refresh
·
2020-08-21 10:46
视频/音频
ffmpeg-解码视频一个视频帧的步骤
1.打开文件,avformat_open_input,将文件信息存储在
AVFormatContext
中。
爱自在
·
2020-08-21 10:25
FFmpeg4.1——H264裸流解码为YUV420P原像素
一、流程图二、代码#includeusingnamespacestd;extern"C"{#include#include#include#include#include}
AVFormatContext
Muggle_zero
·
2020-08-21 10:13
FFmpeg
FFmpeg开发
FFmpeg4.1——YUV原像素编码为H264
流程图步骤详解1、注册组件av_register_all();2、初始化化封装格式上下文
AVFormatContext
*avformat_context=avformat_alloc_context()
Muggle_zero
·
2020-08-21 10:13
FFmpeg
FFmpeg开发
使用FFMPEG解码视频之保存成图片
av_register_all();2.接着需要分配一个
AVFormatContext
,FFMPEG所有的操作都要通过这个
AVFormatContext
我这个人很任性的
·
2020-08-21 10:11
音视频
ffmpeg 格式转换过程
AVFormatContext
代表一个打开的文件或者别的媒体,总之可以说代表数据的来源。视频和音频
q506616671
·
2020-08-21 09:20
FFmepg
dst
null
codec
processing
stream
avi
FFmpeg 解码音视频实例及碰到的问题记录(一)
https://download.csdn.net/download/lifei092/106709921、视频解码:av_register_all();遍历注册所有的组件,包括各种编解码器、解复用器等等;
AVFormatContext
lifei092
·
2020-08-21 09:11
视频处理
ffmpeg 录音 利用avdevice
可以直接使用ffmpeg录音,参考代码如下:
AVFormatContext
*pFormatCtx;AVCodecContext*pCodecCtx;AVCodec*pCodec;AVStream*in_stream
ldpxxx
·
2020-08-21 09:00
ffmpeg
ffmpeg解码后存YUV数据
avcodec.h"#include"libavformat/avformat.h"#include"libswscale/swscale.h"};intmain(intargc,char*argv[]){
AVFormatContext
kgzhw
·
2020-08-21 09:46
ffmpeg
ffmepg移动moov box到MP4文件开始处
voidset_mov_moov_ahead(
AVFormatContext
*s){MOVMuxContext*mov=(MOVMuxContext*)s->priv_data;mov->fc=s;mov
sean_sheng
·
2020-08-21 08:16
FFMPEG
使用ffmpeg进行解码的基本流程 和几个重要函数
将输入的文件转为常量字符(音频或者视频文件)2.注册ffmpeg的组件(在这里可以通过使用av_regiest_all()来进行偷懒操作,将所有的组件都进行注册)3.注册晚组件之后就开始封装全局的上下文
AVFormatContext
a06963938
·
2020-08-21 08:51
Android
进阶
将视频 YUV 格式编码成 H264
前面讲到我们已经成功编译出iOS中可用的ffmpeg的库了,那么我们首先熟悉一下今天我们要用到的ffmpeg中的函数和结构体
AVFormatContext
:数据文件操作者,主要是用于存储音视频封装格式中包含的信息
ZH952016281
·
2020-08-21 08:47
FFmpeg转换yuv为h264视频流
include"MyEncodeYUV.h"#include#define__STDC_CONSTANT_MACROS#include#include#includeintflush_encoder(
AVFormatContext
了悟生死大事
·
2020-08-21 08:05
FFmpeg
ffmpeg源码分析4-io_open_default()
s:传进去的
AVFormatContext
结构体pb:函数调用成功之后创建的AVIOContext结构体。url:输入输出协议的地址(文件也是一种“广义”的协议,对于文件来说就是文件的路径)。
PuiKei
·
2020-08-20 16:43
FFplay文档解读-8-格式选项
可以通过在FFmpeg工具中指定-option值,或通过在
AVFormatContext
选项中显式设置值或使用libavutil/opt.h``API进行编程来设置
张芳涛
·
2020-08-19 03:49
FFMPEG视频解码
AVFormatContext
//封视频格装上下文,是处理编封装功能的结构体AVCodecContext//解码器上下文,是编解码功能的结构体,存储了gop/definition/pi
lemonHe_
·
2020-08-16 06:14
图像处理
基于FFMPEG封装aac及h264为FargmentMP4
AVFormatContext
*ifmt_ctx_v=NULL,*ifmt_ctx_a=NULL,*ofmt_ctx=NULL;if((ret=avformat_open
venice0708
·
2020-08-14 14:50
FFMPEG 从rtsp抓取流,转存为flv文件
include#include#include#ifdef__cplusplus}#endifintmain(intargc,char**argv){AVOutputFormat*ofmt=NULL;
AVFormatContext
镖叔
·
2020-08-14 14:56
FFmpeg音视频
【FFmpeg】如何通过字符串到对应的封装器,以flv为例
1、简述使用avformat_alloc_output_context2创建封装器上下文
AVFormatContext
时,只需将封装器的名字传递给形参format_name,就可以获取对应的封装器。
郭老二
·
2020-08-14 14:51
视频
新手学习FFmpeg - 调用API完成视频的读取和输出
AVFormatContext
媒体源的抽象描述,可以理解成视频/音频文件信息描述AVInp
顾思鸣
·
2020-08-14 14:52
ffmpeg接收rtsp流异常问题
AVFormatContext
*formatCtx=NULL;formatCtx=avformat_alloc_context()
奔跑的艾斯
·
2020-08-14 13:23
ffmpeg
开始写博客!!今天第一个:FFmpeg解码网络rtsp流的一般流程和这几天遇到的问题,尤其是avformat_input_open解析错误的网络串流长时间不返回!
AVFormatContext
*m_pFormatCtx;AVCodecContext*m_pCodecCtx;AVCodec*m_pCodec;AVFrame*m_pFrame;AVPacketm_AVPkt
精分患者
·
2020-08-14 13:14
流媒体
【FFmpeg】详解FFmpeg解封装、解码流程
目录1、获取媒体信息头2、获取媒体流信息3、准备解码器3.1获取视频、音频、字幕流在解封装上下文
AVFormatContext
的流列表AVStream**streams中的索引3.2使用已经获取的流信息创建对应的解码器及其上下文
郭老二
·
2020-08-12 15:18
视频
ffmpeg C代码实现 PCM音频编码
avformat_alloc_output_context2():初始化输出码流的
AVFormatContext
。avio_open():打开输出文件。
厚德.
·
2020-08-12 15:12
ffmpeg
ffmpeg 获取多个音频流(音轨)的语言信息
下面列出获取方法
AVFormatContext
*pFormatCtx=avformat_alloc_context();for(inti=0;inb_streams;i++){if(pFormatCtx
lakebobo
·
2020-08-12 15:18
android
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
其他