Video Info

Get video format and stream metadata using ffprobe

Algorithmia Platform License · Internet Access · Calls Other Algorithms

Try the API

{
  "format": {
    "bit_rate": "4346399",
    "duration": "212.073000",
    "filename": "/tmp/45e49e6bd29c4221fe0422f548f3c44415d10eea",
    "format_long_name": "QuickTime / MOV",
    "format_name": "mov,mp4,m4a,3gp,3g2,mj2",
    "nb_programs": 0,
    "nb_streams": 2,
    "probe_score": 100,
    "size": "115219239",
    "start_time": "0.000000",
    "tags": {
      "compatible_brands": "isomiso2avc1mp41",
      "encoder": "Lavf57.24.100",
      "major_brand": "isom",
      "minor_version": "512"
    }
  },
  "streams": [
    {
      "avg_frame_rate": "25/1",
      "bit_rate": "4211451",
      "bits_per_raw_sample": "8",
      "chroma_location": "left",
      "codec_long_name": "H.264 / AVC / MPEG-4 AVC / MPEG-4 part 10",
      "codec_name": "h264",
      "codec_tag": "0x31637661",
      "codec_tag_string": "avc1",
      "codec_time_base": "1/50",
      "codec_type": "video",
      "coded_height": 1080,
      "coded_width": 1920,
      "display_aspect_ratio": "16:9",
      "disposition": {
        "attached_pic": 0,
        "clean_effects": 0,
        "comment": 0,
        "default": 1,
        "dub": 0,
        "forced": 0,
        "hearing_impaired": 0,
        "karaoke": 0,
        "lyrics": 0,
        "original": 0,
        "visual_impaired": 0
      },
      "duration": "212.040000",
      "duration_ts": 2714112,
      "has_b_frames": 2,
      "height": 1080,
      "index": 0,
      "is_avc": "true",
      "level": 40,
      "nal_length_size": "4",
      "nb_frames": "5301",
      "pix_fmt": "yuv420p",
      "profile": "High",
      "r_frame_rate": "25/1",
      "refs": 1,
      "sample_aspect_ratio": "1:1",
      "start_pts": 0,
      "start_time": "0.000000",
      "tags": {
        "handler_name": "VideoHandler",
        "language": "und"
      },
      "time_base": "1/12800",
      "width": 1920
    },
    {
      "avg_frame_rate": "0/0",
      "bit_rate": "130185",
      "bits_per_sample": 0,
      "channel_layout": "stereo",
      "channels": 2,
      "codec_long_name": "AAC (Advanced Audio Coding)",
      "codec_name": "aac",
      "codec_tag": "0x6134706d",
      "codec_tag_string": "mp4a",
      "codec_time_base": "1/48000",
      "codec_type": "audio",
      "disposition": {
        "attached_pic": 0,
        "clean_effects": 0,
        "comment": 0,
        "default": 1,
        "dub": 0,
        "forced": 0,
        "hearing_impaired": 0,
        "karaoke": 0,
        "lyrics": 0,
        "original": 0,
        "visual_impaired": 0
      },
      "duration": "212.072979",
      "duration_ts": 10179503,
      "index": 1,
      "nb_frames": "9941",
      "profile": "LC",
      "r_frame_rate": "0/0",
      "sample_fmt": "fltp",
      "sample_rate": "48000",
      "start_pts": 0,
      "start_time": "0.000000",
      "tags": {
        "handler_name": "SoundHandler",
        "language": "eng"
      },
      "time_base": "1/48000"
    }
  ]
}

Install & Use

Use

curl -X POST -d '{"input_file":"data://jhurliman/jhurliman/df2c6f7afc1a58783e15f2ae0118ff039d8a4755.mp4"}' -H 'Content-Type: application/json' -H 'Authorization: Simple YOUR_API_KEY' https://api.algorithmia.com/v1/algo/jhurliman/VideoInfo/0.2.1