Video Nodes > 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.

Variables

Variable Description Type Example
vi.VideoInfo VideoInfo object object See Below
vi.Width Width of video number 1920
vi.Height Height of video number 1080
vi.Duration Duration of video in seconds number 60
vi.Video.Codec Codec of video string hevc
vi.Audio.Codec Codec of audio string eac3
vi.Audio.Channels Number of audio channels of first audio track number 5.1
vi.Audio.Language Language of audio of first audio track string en
vi.Audio.Codecs List of all audio of audio tracks string eac3, ac3, aac, dts
vi.Audio.Languages List of all of audio track languages string en, deu, mao
vi.Resolution Computed resolution of file (4K, 1080p, 720p, 480p, SD) string 4K

VideoInfo Object

class VideoInfo
{
    FileName:string
    Bitrate:number
    VideoStreams:VideoStream[]
    AudioStreams:AudioStream[]
    SubtitleStreams:SubtitleStream[]
    Chapters:Chapter[]
}

class VideoFileStream
{
    Index:number
    TypeIndex:number
    Title:string;
    Bitrate:number
    Codec:string;
    IsImage:bool
    IndexString:string;
    InputFileIndex:number;
}

class VideoStream : VideoFileStream
{
    HDR:bool;
    DolbyVision:bool;
    Width:number
    Height:number
    FramesPerSecond:number;
    Duration:number
}

class AudioStream : VideoFileStream
{
    Language:string
    Channels:number
    Duration:number
    SampleRate:number
}

class SubtitleStream : VideoFileStream
{
    Language:string
    Forced:bool
}

class Chapter
{
    Title:string
    Start:number
    End:number
}
© 2022 FileFlows