资源简介
Ubuntu交叉编译OpenCV时需要安装的ffmpeg库,亲测可用。
代码片段和文件信息
/*
* Various utilities for command line tools
* Copyright (c) 2000-2003 Fabrice Bellard
*
* This file is part of FFmpeg.
*
* FFmpeg is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License or (at your option) any later version.
*
* FFmpeg is distributed in the hope that it will be useful
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with FFmpeg; if not write to the Free Software
* Foundation Inc. 51 Franklin Street Fifth Floor Boston MA 02110-1301 USA
*/
#include
#include
#include
#include
#include
/* Include only the enabled headers since some compilers (namely Sun
Studio) will not omit unused inline functions and create undefined
references to libraries that are not being built. */
#include “config.h“
#include “compat/va_copy.h“
#include “libavformat/avformat.h“
#include “libavfilter/avfilter.h“
#include “libavdevice/avdevice.h“
#include “libavresample/avresample.h“
#include “libswscale/swscale.h“
#include “libswresample/swresample.h“
#include “libpostproc/postprocess.h“
#include “libavutil/avassert.h“
#include “libavutil/avstring.h“
#include “libavutil/bprint.h“
#include “libavutil/display.h“
#include “libavutil/mathematics.h“
#include “libavutil/imgutils.h“
#include “libavutil/libm.h“
#include “libavutil/parseutils.h“
#include “libavutil/pixdesc.h“
#include “libavutil/eval.h“
#include “libavutil/dict.h“
#include “libavutil/opt.h“
#include “libavutil/cpu.h“
#include “libavutil/ffversion.h“
#include “cmdutils.h“
#if CONFIG_NETWORK
#include “libavformat/network.h“
#endif
#if HAVE_SYS_RESOURCE_H
#include
#include
#endif
#if HAVE_SETDLLDIRECTORY
#include
#endif
static int init_report(const char *env);
AVDictionary *sws_dict;
AVDictionary *swr_opts;
AVDictionary *format_opts *codec_opts *resample_opts;
static FILE *report_file;
static int report_file_level = AV_LOG_DEBUG;
int hide_banner = 0;
void init_opts(void)
{
av_dict_set(&sws_dict “flags“ “bicubic“ 0);
}
void uninit_opts(void)
{
av_dict_free(&swr_opts);
av_dict_free(&sws_dict);
av_dict_free(&format_opts);
av_dict_free(&codec_opts);
av_dict_free(&resample_opts);
}
void log_callback_help(void *ptr int level const char *fmt va_list vl)
{
vfprintf(stdout fmt vl);
}
static void log_callback_report(void *ptr int level const char *fmt va_list vl)
{
va_list vl2;
char line[1024];
static int print_prefix = 1;
va_copy(vl2 vl);
av_log_default_callback(ptr level fmt vl);
av_log_format_line(ptr level fmt vl2 line sizeof(line) &print_pre
- 上一篇:u014702195_7189731.zip
- 下一篇:食堂网上订餐系统解决方案
相关资源
- 利用ffmpeg的filter混音
- vs2010 ffmpeg实时解码h264码流
- ffmpeg 音视频转码代码
- windows上自己编译的最新的ffmpeg库
- Qt基于FFmpeg播放本地 H.264H264文件
- 从ffmpeg中抽取的h264解码器,可用于
- ffplay源代码
- 最简单的基于FFmpeg的推流器以推送R
- DVD文件VOB的生成代码
- FFmpeg 采集摄像头输出rtmp直播流媒体,
- 基于ffmpeg将avi视频转换为mp4视频
- (补充)修改output-example,将H.264AAC帧
- ffmpeg-win64位库
- X264实时编码,FFmpeg实时解码
- FFmpeg API读取视音频文件信息的一个工
- 使用FFmpeg采集摄像头图像和麦克风音
- opencv_ffmpeg249.dll
- FFmpeg-3.1 windows vs2013编译动态库静态库
- 基于FFmpeg4.0.2的AAC编码器
- FFmpeg获取网络摄像头数据解码
- Qt写的Windows下屏幕录制程序源码
- Windows下使用FFMPEG解码AAC文件并使用
- ffmpeg转换MP4为JPG帧图片
- ffmpeg解码sdl播放h264
- 最简单的利用ffmpeg获取视频的图片
- 最简单的基于FFmpeg的编码器 1.2
- vs2012调试ffmpeg.c
- 基于FFMPEG SDK流媒体开发1---解码媒体文
- ffmpeg 源码demo
- 最简单的基于FFMPEG的AVDevice的 1.2
评论
共有 条评论