当前位置:网站首页>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
边栏推荐
- Go iris framework implements multi service Demo: start (listen to port 8084) service 2 through the interface in service 1 (listen to port 8083)
- Softbank vision fund entered the Web3 security industry and led a new round of investment of US $60 million in certik
- Remote access to raspberry pie at home (Part 1)
- Mysql8 installation
- Use compressorjs to compress pictures, optimize functions, and compress pictures in all formats
- SSL certificate refund instructions
- Learning materials
- Timing role in the project
- Navicat远程连接数据库 出现 1130- Host xxx is not allowed to connect to this MySQL server错误
- Go language mapping operation
猜你喜欢
Free and open source charging pile Internet of things cloud platform
Use Proteus to simulate STM32 ultrasonic srf04 ranging! Code+Proteus
梳理網絡IP代理的幾大用途
ZigBee CC2530 minimum system and register configuration (1)
Record the problems encountered in using v-print
[vulnhub range] - DC2
云原生KubeSphere部署Mysql
Wonderful review | the sixth issue of "source" - open source economy and industrial investment
云原生KubeSphere部署Redis
产品开发都应该知道的8个网站,增强工作体验
随机推荐
Introduction to servlet listener & filter
mysql8安装
有趣的IDEA插件推荐,给你的开发工作增添色彩
【蓝桥杯】4月17日省赛刷题训练(前3道题)
Important knowledge of network layer (interview, reexamination, term end)
XinChaCha Trust SSL Organization Validated
Idea的src子文件下无法创建servlet
Custom nail robot alarm
Pytorch: a pit about the implementation of gradreverselayer
Free and open source charging pile Internet of things cloud platform
Start mqbroker CMD failure resolution
Design of STM32 multi-channel temperature measurement wireless transmission alarm system (industrial timing temperature measurement / engine room temperature timing detection, etc.)
SSM framework series - data source configuration day2-1
Embrace the new blue ocean of machine vision and hope to open a new "Ji" encounter for the development of digital economy
Software testing weekly (issue 68): the best way to solve difficult problems is to wait and see the changes and push the boat with the current.
98. Error s.e.errormvcautoconfiguration $staticview reported by freemaker framework: cannot render error page for request
unity常见的问题(一)
Translation of attention in natural language processing
Homomorphic encryption technology learning
Get the punch in record of nailing attendance machine