ffprobe

公式サイト:

ffprobe Documentation | FFmpeg [Official]

使い方

参考:

ffprobe で動画を解析する – Qiita

ffprobe の使い方 | ニコラボ

ffprobe で録画時間やビットレート (fps) を表示するには | Ninton

FFprobe Tips | FFmpeg wiki [Official]

コーデックを確認する

参考:

コマンドラインで ffprobe の結果から音声コーデックを取得する | キリウ君が読まないノート

How can I know a certain file is a video file? – Stack Overflow

FFProbe to Get Codec – Stack Overflow

Get the codec_name of a specific stream – Stack Overflow

Using ffprobe to check if file is audio or video only – Stack Overflow

動画の長さを確認する

ffprobe コマンドで input.mp4 の長さを確認する。

$ ffprobe -v error -select_streams v:0 \
    -show_entries format=duration -of csv=p=0 \
    input.mp4

参考:

trim beginning AND end fixed amounts – Super User

総フレーム数を確認する

ffprobe コマンドで input.mp4 の総フレーム数を確認する。

$ ffprobe -v error -select_streams v:0 -count_packets \
    -show_entries stream=nb_read_packets -of csv=p=0 \
    input.mp4

参考:

Fetch frame count with ffmpeg – Stack Overflow

How do I get the number of frames in a video on the linux command line? – Super User

Total number of frames with ffmpeg – Stack Overflow

How do I get the number of frames in a video on command line? – Super User

How do I reliably find the frame count of a video in less than a few seconds? – Stack Overflow

Why total frame count is different in ffmpeg than ffprobe? – Super User

nb_frames vs nb_read_frames – Stack Overflow

Why does ffmpeg return a different framecount than ffprobe for the same file? – Stack Overflow

Why different frame count on ffprobe? – Super User

再生エラーを解析する

参考:

動画プレイヤーで再生できない動画を、FFmpegで デバッグし再生可能な状態にする – Qiita

JSON 形式で出力する

$ ffprobe -i movie.mp4 -loglevel quiet -show_streams -print_format json

参考:

動画の音声・動画ストリーム情報を JSON で受け取る ffprobe json オプション | それマグで!

ffprobe で録画時間やビットレート、fps を表示するには | Ninton

Python から使う

参考:

Python で ffprobe が出力する動画の情報から音声コーデックを取得する | 迷惑堂本舗

記事をシェアする:
タグ:

コメントを残す

メールアドレスが公開されることはありません。 が付いている欄は必須項目です

Protected by reCAPTCHA