ffmpeg常用命令

 

  1. 查看输入文件信息ffprobe -v info -hide_banner -i Downloads/418424037.mp4  
  2. flutterFFmpeg.execute('-i $videoPath -vf scale=$targetWidth:$targetHeight $outputPath');
  3. flutterFFmpeg.execute('-i \'$videoPath\'  -s ${targetWidth}x$targetHeight  -preset  fast  $outputPath');
  4. flutterFFmpeg.execute('-i \'$videoPath\'  -filter:v scale=$targetWidth:$targetHeight  -y -q 0  $outputPath');
  5. flutterFFmpeg.execute('-i \'$videoPath\'  -c:a copy  -s ${targetWidth}x$targetHeight  -y -q 0  $outputPath');
  6. flutterFFmpeg.execute('-i \'$videoPath\'  $outputPath');
  7. ffmpeg -i video.mp4 -profile:v baseline -b:v 2000k -c:a copy -s 528x960 333.mp4
  8. ffmpeg -i input.mp4 -c:v libx264 -x264-params "profile=high:level=3.0" output.mp4
  9. '-i $videoPath  -b:v 2000k -vprofile "main"  -level 3.0 -c:a copy -s ${targetWidth}x$targetHeight $outputPath';
  10. flutterFFmpeg.execute('-i $videoPath -c:v h264 -preset slow  -b:v 2000k -pass 1 -an -f mp4 -y NUL');
  11. flutterFFmpeg.execute('-i $videoPath -c:v h264 -preset slow -b:v 2000k -pass 2 -c:a copy $outputPath');
  12. -i  /storage/emulated/0/DCIM/Camera/video_20201017_161059.mp4 -c:v mpeg4  -brand mp42 -b:v 2000k  -profile:v 2 -filter:v scale=720:1280 -c:a copy  -y /storage/emulated/0/小彼恩/out.mp4
  13. -i https://test-oss.xiaobien.com/video/diary/202008/1597667975331989.mp4 -c:v h264  -brand mp42  -s ${targetWidth}x$targetHeight -b:v 2000k   -c:a copy  -y   $outputPath';
  14. -i  $videoPath -c:v h264 -brand mp42 -profile:v 66 -level 31 -b:v 2000k -r 29.97  -filter:v scale=$targetWidth:$targetHeight -q 0 -y   $outputPath";
  15. "-y -i  $videoPath -codec:v h264  -profile:v baseline -b:v 1500k  -vf scale=$targetWidth:$targetHeight -acodec copy  $outputPath";
  16. -y -i  $videoPath  -vf scale=$targetWidth:$targetHeight -acodec copy  $outputPath";
  17. 去除视频中的音频 ffmpeg -i one.mp4 -an no-audio2.mp4
  18. 获取视频中的音频 ffmpeg -i 1609209249358590.mp4 -vn -y -acodec copy audio2.mp4
  19. 设置偏移量,不会改变时长:fmpeg -itsoffset 00:00:12 -i audio2.mp4 audio21.mp4
  20. 拼接多个视频https://blog.csdn.net/winniezhang/article/details/89260841
  21. 合并音频,所有channel往后延迟时间一样:ffmpeg -i audio.mp4 -i audio2.mp4 -filter_complex "[1]adelay=delays=24s:all=1[del1],[0][del1]amix" music.mp4
  22. 合并音频,单独指定每个channel的延时时长: -filter_complex "[1]adelay=4000|4000[del1],[2]adelay=6000|6000[del2],[0][del1]amix[out],[out][del2]amix" output.mp3

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 打赏
    打赏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包

打赏作者

释汐宇辰

你的鼓励将是我创作的最大动力

¥1 ¥2 ¥4 ¥6 ¥10 ¥20
扫码支付:¥1
获取中
扫码支付

您的余额不足,请更换扫码支付或充值

打赏作者

实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值