Video File
Video File
Video File is an input node which will scan a file and load the Video Information (codecs/tracks etc) for processing in the flow.
Probe Size
The probe size to use in FFMPEG when executing in megabytes.
Analyze Duration
Specify how many seconds are analyzed to probe the input.
Variables
Variable | Description | Type | Example |
---|---|---|---|
video.VideoInfo | VideoInfo object | object | See Below |
video.Width | Width of video | number | 1920 |
video.Height | Height of video | number | 1080 |
video.Duration | Duration of video in seconds | number | 60 |
video.Video.Codec | Codec of video | string | hevc |
video.Audio.Codec | Codec of audio | string | eac3 |
video.Audio.Channels | Number of audio channels of first audio track | number | 5.1 |
video.Audio.Language | Language of audio of first audio track | string | en |
video.Audio.Codecs | List of all audio of audio tracks | string | eac3, ac3, aac, dts |
video.Audio.Languages | List of all of audio track languages | string | en, deu, mao |
video.Resolution | Computed resolution of file (4K, 1080p, 720p, 480p, SD) | string | 4K |
video.HDR | If the video is HDR or not | bool | true |
video.FPS | The videos frames per second | number | 29.97 |
class VideoInfo
{
FileName: string;
Bitrate: number;
VideoStreams: VideoStream[];
AudioStreams: AudioStream[];
SubtitleStreams: SubtitleStream[];
Chapters: Chapter[];
}
class VideoFileStream
{
// overall index of this stream
Index: number;
// the index relative to the stream type
TypeIndex: number;
// the title of hte video
Title: string;
// the video bitrate
Bitrate: number;
// the codec used
Codec: string;
// if this stream is an image stream
IsImage: boolean;
// the formated index as a FFmpeg string
IndexString: string;
// the index of the input file
InputFileIndex: number;
}
class VideoStream extends VideoFileStream
{
// if this is HDR or not
HDR: boolean;
// if this is dolby vision or not
DolbyVision: boolean;
// the width in pixels
Width: number;
// the height in pixels
Height: number;
// the number of frames per second
FramesPerSecond: number;
// the duration of the video in seconds
Duration: number;
// the bits of the video if detected, 0 if undetected
Bits: number;
}
class AudioStream extends VideoFileStream
{
Language: string;
Channels: number;
Duration: number;
SampleRate: number;
}
class SubtitleStream extends VideoFileStream
{
Language: string;
Forced: boolean;
}
class Chapter
{
Title: string;
Start: number;
End: number;
}