- 查看输入文件信息ffprobe -v info -hide_banner -i Downloads/418424037.mp4
- flutterFFmpeg.execute('-i $videoPath -vf scale=$targetWidth:$targetHeight $outputPath');
- flutterFFmpeg.execute('-i \'$videoPath\' -s ${targetWidth}x$targetHeight -preset fast $outputPath');
- flutterFFmpeg.execute('-i \'$videoPath\' -filter:v scale=$targetWidth:$targetHeight -y -q 0 $outputPath');
- flutterFFmpeg.execute('-i \'$videoPath\' -c:a copy -s ${targetWidth}x$targetHeight -y -q 0 $outputPath');
- flutterFFmpeg.execute('-i \'$videoPath\' $outputPath');
- ffmpeg -i video.mp4 -profile:v baseline -b:v 2000k -c:a copy -s 528x960 333.mp4
- ffmpeg -i input.mp4 -c:v libx264 -x264-params "profile=high:level=3.0" output.mp4
- '-i $videoPath -b:v 2000k -vprofile "main" -level 3.0 -c:a copy -s ${targetWidth}x$targetHeight $outputPath';
- flutterFFmpeg.execute('-i $videoPath -c:v h264 -preset slow -b:v 2000k -pass 1 -an -f mp4 -y NUL');
- flutterFFmpeg.execute('-i $videoPath -c:v h264 -preset slow -b:v 2000k -pass 2 -c:a copy $outputPath');
- -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
- -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';
- -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";
- "-y -i $videoPath -codec:v h264 -profile:v baseline -b:v 1500k -vf scale=$targetWidth:$targetHeight -acodec copy $outputPath";
- -y -i $videoPath -vf scale=$targetWidth:$targetHeight -acodec copy $outputPath";
- 去除视频中的音频 ffmpeg -i one.mp4 -an no-audio2.mp4
- 获取视频中的音频 ffmpeg -i 1609209249358590.mp4 -vn -y -acodec copy audio2.mp4
- 设置偏移量,不会改变时长:fmpeg -itsoffset 00:00:12 -i audio2.mp4 audio21.mp4
- 拼接多个视频https://blog.csdn.net/winniezhang/article/details/89260841
- 合并音频,所有channel往后延迟时间一样:ffmpeg -i audio.mp4 -i audio2.mp4 -filter_complex "[1]adelay=delays=24s:all=1[del1],[0][del1]amix" music.mp4
-
合并音频,单独指定每个channel的延时时长: -filter_complex "[1]adelay=4000|4000[del1],[2]adelay=6000|6000[del2],[0][del1]amix[out],[out][del2]amix" output.mp3