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 5 years have passed since last update.

same quality cat with ffmpeg1.2

0
Posted at

動画の回転をしたくてffmpeg1.2にバージョンアップを行ったらオプションやらがいろいろ変わっていたので、まとめ。

やったことは

  • iPhoneで撮影したMOVファイルをmpgに変換
  • 変換したmpgを結合
  • できたmpgを90度回転してまたMOVに戻す

iPhoneで撮影したMOVファイルをmpgに変換

$ ffmpeg -i input1.MOV -qscale 0 input1.mpg
# ffmpeg -i input2.MOV -qscale 0 input2.mpg
$ ffmpeg -i input3.MOV -qscale 0 input3.mpg

変換したmpgを結合

$ cat *.mpg > output.mpg

できたmpgを90度回転してまたMOVに戻す

$ ffmpeg -i output.mpg -vf transpose=1 -strict -2 -qscale 0 output.MOV

以前までconcatを使っていたが、画質の劣化がかなりあったので、こちらに変更した。動画のサイズはかなり大きくなったが。。。

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?