Files
plexpy/docs/models/operations/media.md

10 KiB
Raw Blame History

Media

Fields

Field Type Required Description Example
id int ✔️ Unique media identifier. 387322
duration Optional[int] Duration of the media in milliseconds. 9610350
bitrate Optional[int] Bitrate in bits per second. 25512
width Optional[int] Video width in pixels. 3840
height Optional[int] Video height in pixels. 1602
aspect_ratio Optional[float] Aspect ratio of the video. 2.35
audio_channels Optional[int] Number of audio channels. 6
display_offset Optional[int] N/A 50
audio_codec Optional[str] Audio codec used. eac3
video_codec Optional[str] Video codec used. hevc
video_resolution Optional[str] Video resolution (e.g., 4k). 4k
container Optional[str] File container type. mkv
video_frame_rate Optional[str] Frame rate of the video. Values found include NTSC, PAL, 24p
24p
video_profile Optional[str] Video profile (e.g., main 10). main 10
has_voice_activity Optional[bool] Indicates whether voice activity is detected. false
audio_profile Optional[str] The audio profile used for the media (e.g., DTS, Dolby Digital, etc.). dts
optimized_for_streaming Optional[operations.OptimizedForStreaming] Has this media been optimized for streaming. NOTE: This can be 0, 1, false or true
has64bit_offsets Optional[bool] N/A false
part List[operations.Part] An array of parts for this media item.