← back to roto on ba3a.dev

VideoInfo

data class VideoInfo(val width: Int, val height: Int, val durationMs: Long, val frameRate: FrameRate, val rotation: Int)

What ffprobe reports about a video's first video stream.

width and height are as displayed: a portrait phone video stored sideways with a 90° rotation reports its upright size, the same size ffmpeg decodes its frames at. rotation is clockwise degrees, 0, 90, 180 or 270.

Constructors

Link copied to clipboard
constructor(width: Int, height: Int, durationMs: Long, frameRate: FrameRate, rotation: Int)

Properties

Link copied to clipboard

the duration in milliseconds

Link copied to clipboard

the frame rate

Link copied to clipboard
val height: Int

the displayed height in pixels

Link copied to clipboard

the clockwise rotation in degrees stored with the video

Link copied to clipboard
val width: Int

the displayed width in pixels