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?

More than 3 years have passed since last update.

ffmpeg 2560*1080の動画から1920*1080の部分だけ切り出す

Last updated at Posted at 2022-03-20

はじめに

タイトルのことができるコピペコマンドを探しても見つからなかったので投稿。
このようなイメージです。
image.png

※ffmpegも動画ファイルのフォーマットも全く詳しくないです

実行環境

  • Windowds 10
  • ffmpeg version2022-03-17-git-242c07982a-full_build-www.gyan.dev

コマンド

// GPUを利用しないエンコード
ffmpeg -i test.mp4 -vf crop=1920:1080:320:0 output.mp4

// GPUを利用したエンコード
ffmpeg -i test.mp4 -vf crop=1920:1080:320:0 -vcodec h264_nvenc output.mp4

※ffmpegでGPUエンコーディングするためには、諸々準備が必要です
参考:ffmpeg で GPU エンコードできるようにする

参考サイト

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?