What does "probe_score" mean from ffprobe output?

Considering the media file, after running ffprobe -i input.mp4 -show_format -print_format json

it I got something like this:

{
    "format": {
        "filename": "ooxx.mp4",
        "nb_streams": 2,
        "nb_programs": 0,
        "format_name": "mov,mp4,m4a,3gp,3g2,mj2",
        "format_long_name": "QuickTime / MOV",
        "start_time": "0.000000",
        "duration": "231.210000",
        "size": "65133325",
        "bit_rate": "2253650",
        "probe_score": 100,
        "tags": {
            "major_brand": "isom",
            "minor_version": "512",
            "compatible_brands": "isomiso2avc1mp41",
            "encoder": "Lavf55.33.100",
        }
    }
}

      

I'm wondering what probe_score means here? How is it calculated?

+3


source to share


1 answer


The input (file in this case) can have an extension (for example, ".avi") and be of a different format (for example, a wav file). FFmpeg can detect the actual input format (with ffprobe). To do this, it opens the file and reads it (the first 5 seconds given by the option analyzeduration

, if I remember correctly). It then assigns a score to each format: low score if the data has nothing to do with the input, high score if the format appears to be correct.

The returned format is the one with the highest score. probe_score is the score.



100 is the maximum rating, which means that FFmpeg is confident that the format is real. If the score is below 25, it is recommended to increase the probe duration.

+5


source







All Articles