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?

FFmpegのコマンドメモ

Posted at

(※2022-11-12に書いた個人ブログの転記です。)

基礎(ffprobe)

余計な出力なし。インプットとして渡す動画は、ローカルでもネット上の動画でもいける。すごいね!

ffprobe -hide_banner -pretty -show_format -show_streams input.mp4

プログレッシブ→インタレース

インタレースがなぜだめなのかを実験する。

ffmpeg -i input.mp4 -vf "tinterlace=5" interlace.mp4

VBR/CBRの判定

  • ffprobe nal-hrd vbr / cbr 記載なし
  • maxrateが平均より上だったらVBR

フレームレート変更

ffmpeg -i input.mp4 -r 10 framerate.mp4

参照フレーム数取得

ffprobeでrefsを参照(この値は注意が必要らしい。詳細はよくわからず)。

ラウドネス取得

ffmpegでebur128フィルタを使用する。

ffmpeg -nostats -i input.mp4 -vn -y -filter_complex "ebur128=framelog=verbose" -f null -

ラウドネス可視化

ffmpeg -i input.mp4 -filter_complex "ebur128=video=1:target=-23.0" loudness_visual.mp4

ラウドネスを-18LKFSにする

ffmpeg -i input.mp4 -filter_complex "loudnorm=I=-18" loudness.mp4

音声ピーク値(サンプルピーク)取得

ffmpegでebur128フィルタを使用する。

ffmpeg -nostats -i input.mp4 -vn -y -filter_complex "ebur128=framelog=verbose:peak=sample" -f null -

参考

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?