0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

challenge_clubAdvent Calendar 2023

Day 7

ffmpegを用いて入力動画の`左上 (350,0)`から、`横1570*縦1080`のエリアを切り取る

Posted at

ffmpegを用いて入力動画の左上 (350,0)から、横1570*縦1080のエリアを切り取るには以下のようにすればOK

% ffmpeg -i test.mp4 -vf crop=w=1570:h=1080:x=350:y=0 test2.mp4

左上の座標の位置の調整が要りそうな場合は、1secの動画を先に抽出しておき、これに対して調整施すと便利。

https://jp.videoproc.com/edit-convert/cut-videos-using-ffmpeg.htm

ffmpeg -ss [開始時間] -i [入力ファイル] -to [終了時間] -c copy [出力ファイル]

参考

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?