当前位置:网站首页>FFmpeg常用命令
FFmpeg常用命令
2022-04-23 13:01:00 【我和你】
摘要
玩视频就会用到FFmpeg,以下是一些我经常用到的命令,或者网上搜集到的命令放在这里做笔记~
转换格式
转换为 MP4 格式:
ffmpeg -i input.mov output.mp4
视频剪切
裁剪前 10 秒:
ffmpeg -ss 0:0 -t 0:10 -i input.mov output.mp4
-ss
开始时间 -t
持续时间
裁剪最后 10 秒:
ffmpeg -sseof -0:10 -i input.mov output.mp4
-sseof
相对于文件末尾的开始时间
视频截图
每秒输出一张图:
ffmpeg -i input.mov -vf fps=1 -q:v 2 output%03d.png
两个音频合并
ffmpeg -i "concat:30.mp3|50.mp3" -acodec copy 80.mp3
m4a转mp3
ffmpeg -i input.m4a -acodec libmp3lame -aq 2 output.mp3
mp4全复制转换ts
ffmpeg -i catfood.mp4 -vcodec copy -acodec copy -vbsf h264_mp4toannexb output.ts
MKV无损转MP4
ffmpeg -i input.mkv -c copy -strict -2 output.mp4
拓展
以下是近期发布关于FFmpeg相关文章。
如需查看其他关于FFmpeg内容也可前往FFmpeg笔记:https://www.wo.hn.cn/
完结
以上就是所有关于FFmpeg常用命令的内容,欢迎小伙伴们交流讨论。
版权声明
本文为[我和你]所创,转载请带上原文链接,感谢
https://cloud.tencent.com/developer/article/1986096
边栏推荐
- Install nngraph
- 31. 下一个排列
- Plato farm - a game of farm metauniverse with Plato as the goal
- Golang implements a five insurance and one gold calculator with web interface
- 拥抱机器视觉新蓝海,冀为好望开启数字经济发展新“冀”遇
- Use Proteus to simulate STM32 ultrasonic srf04 ranging! Code+Proteus
- melt reshape decast 长数据短数据 长短转化 数据清洗 行列转化
- Remote access to raspberry pie at home (Part 1)
- Record Alibaba cloud server mining program processing
- Calculate the past date and days online, and calculate the number of live days
猜你喜欢
4. DRF permission & access frequency & filtering & sorting
98. Error s.e.errormvcautoconfiguration $staticview reported by freemaker framework: cannot render error page for request
安装nngraph
世界读书日:我想推荐这几本书
mysql支持ip访问
Wonderful review | the sixth issue of "source" - open source economy and industrial investment
Design and manufacture of 51 single chip microcomputer solar charging treasure with low voltage alarm (complete code data)
No idle servers? Import OVF image to quickly experience smartx super fusion community version
SSM框架系列——注解开发day2-2
MySQL supports IP access
随机推荐
The quill editor image zooms, multiple rich text boxes are used on one page, and the quill editor upload image address is the server address
软件测试周刊(第68期):解决棘手问题的最上乘方法是:静观其变,顺水推舟。
云原生KubeSphere部署Redis
STM32 tracking based on open MV
After the data of El table is updated, the data in the page is not updated this$ Forceupdate() has no effect
Synchronously update the newly added and edited data to the list
Custom nail robot alarm
Timing role in the project
Summary of JVM knowledge points - continuously updated
【蓝桥杯】4月17日省赛刷题训练(前3道题)
Kubernetes 入门教程
leetcode-791. Custom string sorting
World Book Day: I'd like to recommend these books
Complete project data of UAV apriltag dynamic tracking landing based on openmv (LabVIEW + openmv + apriltag + punctual atom four axes)
JDBC connection pool
Homomorphic encryption technology learning
leetcode-791. 自定义字符串排序
Image attribute of input: type attribute of fashion cloud learning -h5
Recovering data with MySQL binlog
Connect orcale