当前位置:网站首页>FFMPEG多媒体文件处理(ffmpeg文件的删除与重命名)
FFMPEG多媒体文件处理(ffmpeg文件的删除与重命名)
2022-08-09 12:44:00 【一叶知秋@qqy】
文件的删除与重命名
- avpriv_io_delete() 删除ffmpeg文件
- avpriv_io_move() 重命名ffmpeg文件
所有对文件操作,对目录操作都是在libavformat子模块下,即要引入这个头文件
include <libavformat/avformat.h>
删除文件例子:
ret = avpriv_io_delete("./mytestfile.txt"),ret小于0失败
在终端寻找库的位置,使用
pkg-config --libs libavformat
通过这条语句就可以在系统里去寻找libavformat的具体位置,会返回
-L/usr/local/ffmpeg/lib -lavformat
重命名文件的例子:
ret = avpriv_io_move(“111.txt”, “222.txt”),将111.txt重命名为222.txt
边栏推荐
猜你喜欢
Ten minutes to teach you how to use VitePress to build and deploy a personal blog site
Rust from entry to proficient 04 - data types
Flutter Getting Started and Advanced Tour (4) Text Input Widget TextField
从NPU-SLAM-EDA技术分析
自定义VIEW实现应用内消息提醒上下轮播
30行代码实现蚂蚁森林自动偷能量
史上最猛“员工”,疯狂吐槽亿万富翁老板小扎:那么有钱,还总穿着同样的衣服!...
Customize VIEW to realize in-app message reminder to rotate up and down
注释、关键字、标识符的区别你知道吗?
Flutter Getting Started and Advanced Tour (7) GestureDetector
随机推荐
绘制混合密度函数图以及添加分位数线
Use RecyclerView to implement three-level collapsed list
使用RecyclerView实现三级折叠列表
安踏携手华为运动健康共同验证冠军跑鞋 创新引领中国体育
26. Pipeline parameter substitution command xargs
Flutter入门进阶之旅(八)Button Widget
用plot_hist_numeric()实现画直方图
Redis源码剖析之跳表(skiplist)
WSA toolkit installed app store tip doesn't work how to solve?
leetcode 20. Valid Parentheses 有效的括号(中等)
陈强教授《机器学习及R应用》课程 第十四章作业
陈强教授《机器学习及R应用》课程 第十五章作业
基于 R 语言的深度学习——简单回归案例
Anta and Huawei Sports Health jointly verify the champion running shoes and lead Chinese sports with innovation
陈强教授《机器学习及R应用》课程 第十六章作业
Do you know the difference between comments, keywords, and identifiers?
【TKE】GR+VPC-CNI混用模式下未产品化功能配置
透明tune proxy
Flutter introduction advanced trip (5) Image Widget
Flutter入门进阶之旅(六)Layout Widget