Type

MediaSummary

Reply to media.probe.

Fields

  • audioTracksAudioStreamInfo[]required

    Every audio stream, in file order.

  • kindMediaKindrequired

    What the file is.

  • pathstringrequired

    The file, as given.

  • audioAudioStreamInfooptional

    The first audio stream in file order, if any: what a clip plays unless it names another.

  • durationnumberoptional

    Container duration in seconds, when the container states one.

  • videoVideoStreamInfooptional

    First video stream, if any.

VideoStreamInfo: index, codec, width, height, frameRate (decimal), frameRateFraction (exact, e.g. "30/1"), and colorRange (limited or full, present only when the file says; a file that says nothing is played as limited), and colorSpace (hlg or pq for an HDR file; absent for SDR).

AudioStreamInfo: index, codec, sampleRate, channels, title, language.