码迷,mamicode.com
首页 >  
搜索关键字:avformat    ( 61个结果
第一章 FFmpeg简介
1.1 FFmpeg的定义 Fast Forward Moving Picture Experts Group(动态图像专家组) 1.2 FFmpeg的历史 1.3 FFmpeg的基本组成 1 FFmpeg的封装模块AVFormat 实现了目前多媒体领域绝大多数媒体封装格式,包括封装和解封装。 2 ...
分类:其他好文   时间:2018-08-26 14:49:02    阅读次数:192
FFmpeg编写的代码
//初始化解封装 av_register_all(); avformat_network_init(); avcodec_register_all(); //封装文件的上下文 AVFormatContext *ic = NULL; char path[] = "sdcard/shape.mp4"; ...
分类:其他好文   时间:2018-07-05 23:24:06    阅读次数:248
FFmpeg源代码简单分析:常见结构体的初始化和销毁(AVFormatContext,AVFrame等)
结构体 初始化 销毁 AVFormatContext avformat_alloc_context() avformat_free_context() AVIOContext avio_alloc_context() AVStream avformat_new_stream() AVCodecCon ...
分类:其他好文   时间:2018-06-17 20:17:01    阅读次数:321
FFmpeg之avformat_alloc_context()
1. avformat_alloc_context 首先为 AVFormatContext 结构体分配动态内存,然后调用 avformat_get_context_defaults 函数获取该 AVFormatContext 的默认值。 2. avformat_get_context_default ...
分类:其他好文   时间:2018-06-12 00:46:55    阅读次数:240
FFmpeg4.0笔记:rtsp2rtmp
Github https://github.com/gongluck/FFmpeg4.0 study.git C++ include using namespace std; extern "C" { include "libavformat/avformat.h" include "libavut ...
分类:其他好文   时间:2018-05-12 14:22:45    阅读次数:184
用ffmpeg和SDL2实现linux player
一、version 1#include <stdio.h> #include <libavcodec/avcodec.h>   #include <libavformat/avformat.h>   #include <libswscale/swscale.h> 
分类:系统相关   时间:2018-02-19 11:14:49    阅读次数:242
ffmpeg 知识点补充
提供一种可能解决avformat_find_stream_info耗时问题方案之前,先了解一些基本的ffmpeg的知识点先看代码 pFormatContext->streams[video_index]->time_base.den=1200000; pFormatContext->streams[video_index]->time_base.num=1;//avg_frame_rate获取帧率 pFormat..
分类:其他好文   时间:2017-11-18 16:37:58    阅读次数:148
04 ffmpeg 从媒体文件解封装,输出YUV420图像
输出AAC声音目前有点问题:输出YUV420很好[root@localhost04]#catmain.c #include<stdio.h> #include"libavformat/avformat.h" intframe_width=0; intframe_height=0; constchar*src_filename=NULL; constchar*video_filename=NULL; constchar*audio_filename=NULL; un..
分类:其他好文   时间:2017-10-30 14:35:37    阅读次数:164
avformat_find_stream_info探测流格式信息
代码AVDictionary*pOptions=NULL;handle->pFormatContext->probesize=100*1024;handle->pFormatContext->max_analyze_duration=5*AV_TIME_BASE;if(avformat_find_stream_info(handle->pFormatContext,&pOptions)<0)说明这样设置probesize和max_analyze_d..
分类:其他好文   时间:2017-10-24 01:25:30    阅读次数:118
ffmpeg yuv420保存jpg文件
int yuv420_to_jpg(void *data,int w,int h,char *file) { av_register_all(); AVFormatContext *pFormatCtx = avformat_alloc_context(); AVOutputFormat *fmt ... ...
分类:其他好文   时间:2017-10-17 12:17:43    阅读次数:278
61条   上一页 1 2 3 4 ... 7 下一页
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!