随笔分类 - ffmpeg
摘要:原文地址 https://www.imooc.com/article/254520 前言 FFMPEG是特别强大的专门用于处理音视频的开源库。你既可以使用它的API对音视频进行处理,也可以使用它提供的工具,如 ffmpeg, ffplay, ffprobe,来编辑你的音视频文件。 本文将简要介绍一下
阅读全文
摘要:#include <libavutil/log.h> #include <libavformat/avformat.h> int main(int argc,char* argv[]) { int ret; //用于联系上下文使用,就是串联各函数之间,让其他函数知道操作的是哪个 AVFormatCo
阅读全文
摘要:打开文件夹:avio_open_dir() 读取文件夹:avio_read_dir() 关闭文件夹:avio_close_dir() 结构体, 操作目录的上下文:AVIODirContext() 目录项,用于存放文件名,文件大小等信息:AVIODirEntry() include <libavuti
阅读全文
摘要:ffmpeg封装了一些文件操作方式,方便对文件操作的使用 演示代码 #include <libavformat/avformat.h> #include <stdio.h> #include <libavutil/log.h> int main(int argc,char* argv[]) { in
阅读全文
摘要:Ubuntu环境,/etc/bash.bashrc文件 添加以下内容,其中/usr/lib/x86_64-linux-gnu/pkgconfig路径为*.pc文件路径 PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/lib/x86_64-linux-gnu/pkgconf
阅读全文
摘要:1,日常日志级别 AV_LOG_ERROR AV_LOG_WARNING AV_LOG_INFO 2,代码例子 1 #include<stdio.h> 2 //包含头文件 3 #include<libavutil/log.h> 4 5 int main(int argc,char* argv[])
阅读全文
摘要:1,sudo apt update 2,sudo apt install ffmpeg 3,安装成功后查看【版本】【编码器】【解码器】 ffmpeg -v ffmpeg -encoders ffmpeg -decoders 4,安装需要用的各种组件 sudo apt-get install liba
阅读全文