ffmpeg:ffmpeg

ffmpeg

メモです。

最初(0秒)から 3 秒でフェードイン、開始から 60 秒後から 3 秒でフェードアウト

ffmpeg -i in.mp4 -vf "fade=t=in:st=0:d=3,fade=t=out:st=60:d=3" out.mp4

最初(0秒)から 3 秒間でフェードイン、61秒から 3 秒でフェードアウト

ffmpeg -i in.mp4 -af "afade=t=in:st=0:d=3,afade=t=out:st=61:d=3" -c:v copy out.mp4

時間指定

ffmpeg -i input -af "afade=t=in:start_time=00\\:00\\:00:d=3" -c:v copy output

フェードアウトの場合は “t=in” のところを “t=out” で。

動画の横幅(width)を 1280 にする。高さ(height)はアスペクト比を維持して自動で設定する

ffmpeg -i in.mp4 -vf scale=1280:-1 out.mp4

これは縦動画

ffmpeg -i in.mp4 -filter_complex "drawtext=fontfile=/System/Library/Fonts/Monaco.ttf:text='@ten_forward':fontcolor=#C0DCC0:fontsize=24:x=900:y=1880" out.mp4

1280×720(HD)に文字入れ

ffmpeg -i in.mp4 -filter_complex "drawtext=fontfile=/System/Library/Fonts/Supplemental/Bradley Hand Bold.ttf:text='@ten_forward':fontcolor=#C0FFFF:fontsize=16:x=1150:y=680" out.mp4
  • ffmpeg/ffmpeg.txt
  • 最終更新: 2024/05/14 17:22
  • by tenforward