检测 flv 视频

ffprobe -v error -show_format -of json http://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv

结果

{
    "format": {
        "filename": "http://sf1-cdn-tos.huoshanstatic.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv",
        "nb_streams": 2,
        "nb_programs": 0,
        "format_name": "flv",
        "format_long_name": "FLV (Flash Video)",
        "start_time": "0.017000",
        "duration": "90.000000",
        "size": "5512723",
        "bit_rate": "490019",
        "probe_score": 100,
        "tags": {
            "metadatacreator": "Yet Another Metadata Injector for FLV - Version 1.9",
            "hasKeyframes": "true",
            "hasVideo": "true",
            "hasAudio": "true",
            "hasMetadata": "true",
            "canSeekToEnd": "true",
            "datasize": "5511858",
            "videosize": "3956746",
            "audiosize": "1530580",
            "lasttimestamp": "90",
            "lastkeyframetimestamp": "90",
            "lastkeyframelocation": "5512703"
        }
    }
}

检测DASH 视频

ffprobe -v error -show_format -of json https://jbmzlafqwike.sealoshzh.site/dash/manifest.mpd

结果

{
    "format": {
        "filename": "https://jbmzlafqwike.sealoshzh.site/dash/manifest.mpd",
        "nb_streams": 2,
        "nb_programs": 1,
        "format_name": "dash",
        "format_long_name": "Dynamic Adaptive Streaming over HTTP",
        "start_time": "0.000000",
        "duration": "49.000000",
        "size": "1268",
        "bit_rate": "207",
        "probe_score": 100
    }
}

检测m3u8视频

ffprobe -v error -show_format -of json https://v11.tlkqc.com/wjv11/202506/11/bgCP3Y48n783/video/index.m3u8

结果

{
    "format": {
        "filename": "https://v11.tlkqc.com/wjv11/202506/11/bgCP3Y48n783/video/index.m3u8",
        "nb_streams": 2,
        "nb_programs": 1,
        "format_name": "hls",
        "format_long_name": "Apple HTTP Live Streaming",
        "start_time": "1.456778",
        "duration": "607.320000",
        "size": "100",
        "bit_rate": "1",
        "probe_score": 100
    }
}

检测m3u8直播

ffprobe -v error -show_format -of ffprobe -v error -show_format -of json https://0472.org/hls/cgtn.m3u8

结果

{

    "format": {
        "filename": "https://0472.org/hls/cgtn.m3u8",
        "nb_streams": 2,
        "nb_programs": 1,
        "format_name": "hls",
        "format_long_name": "Apple HTTP Live Streaming",
        "start_time": "89831.498000",
        "probe_score": 100
    }
}

检测 webm 视频

ffprobe -v error -show_format -of json https://dash.1panel.helson-lin.cn/webm/1750060353419.webm

结果

{
    "format": {
        "filename": "https://dash.1panel.helson-lin.cn/webm/1750060353419.webm",
        "nb_streams": 2,
        "nb_programs": 0,
        "format_name": "matroska,webm",
        "format_long_name": "Matroska / WebM",
        "start_time": "0.000000",
        "duration": "46.616000",
        "size": "8642884",
        "bit_rate": "1483247",
        "probe_score": 100,
        "tags": {
            "COMPATIBLE_BRANDS": "isomiso2avc1mp41",
            "MAJOR_BRAND": "isom",
            "MINOR_VERSION": "512",
            "ENCODER": "Lavf61.1.100"
        }
    }
}