私が使用するバージョンは
ffmpeg バージョン git-2020-06-23-ce297b4です
公文書
https://ffmpeg.org/ffmpeg-utils.html#time-duration-syntax
時刻形式
[-][HH:]MM:SS[.m...]
或
[-]S+[.m...][s|ms|us]
ビデオのクロップ
ビデオ aaa.mp4 を 5 秒から 15 秒までトリミングする必要があるとします。
ffmpeg -ss 5 -to 15 -i aaa.mp4 -c copy output.mp4
ここで、パラメータ -ss および -to を -i の前に配置する必要があることに注意してください。そうしないと、別の意味があり、実際のテスト時間は常に少し間違っています。
ビデオをマージする
MPEG コンテナ以外の MPEG エンコーダ (H.264、DivX、XviD、MPEG4、MPEG2、AAC、MP2、MP3 など) は、まず TS コンテナにパックしてからマージします。 bbb.mp4
を A ビデオ出力に.mp4
ffmpeg -i aaa.mp4 -c copy -vbsf h264_mp4toannexb input1.ts
ffmpeg -i bbb.mp4 -c copy -vbsf h264_mp4toannexb input2.ts
ffmpeg -i "concat:input1.ts|input2.ts" -c copy -absf aac_adtstoasc output.mp4
その他の動画トランスコード、編集ソフト(非可逆)
HandBrake、簡単なコード変換
https://handbrake.fr/
Shotcut、動画編集
https://www.shotcut.org/
参考
https://blog.csdn.net/weixin_46021205/article/details/105078552
https://blog.csdn.net/doublefi123/article/details/47276739
https://blog.csdn.net/qq_36292543/article/details/ 116466013
https://blog.csdn.net/qq_16504067/article/details/114575615