C# Class Timelapser.Recorder

Datei anzeigen Open project: evercam/Timelapse Class Usage Examples

Public Properties

Property Type Description
BashFile string
FfmpegExePath string
chunkIndex int[]

Public Methods

Method Description
CreateVideoChunks ( string bashFile, bool update_info = true ) : void
Recorder ( Timelapse timelapse ) : System
Start ( ) : void
UpdateVideoInfo ( string movieName ) : TimelapseVideoInfo

Protected Methods

Method Description
CalculateChunckCreateTime ( int fileCount, int interval, int snapshotCount ) : bool
ConcatenateVideoSingleImage ( string mp4FileName, string tempMp4FileName, string baseMp4FileName, string tempVideoFileName, string imageFile ) : void
CopyFfmpeg ( ) : string
CreateBashFile ( string bashFilePath, int frame_per_sec, int interval, string imagesPath, string tsPath, int start_number ) : void
CreateConfigFile ( string mp4File, string newMp4File, string txtFileName ) : void
CreateNewVideoChunk ( string bashFile, int start_number ) : void
CreateVideoFromImages ( string output, string baseOutput ) : TimelapseVideoInfo
DownloadSnapshot ( ) : string
ExitProcess ( ) : void
GenerateVideoSingleImage ( string output, string baseOutput, string imageFile ) : void
GetTsFileIndex ( string tsPath ) : int[]
RunBash ( string parameters ) : void
RunProcess ( string parameters ) : string
updateMenifiest ( string tsPath, string fileName, int fileIndex ) : void

Private Methods

Method Description
MakePoster ( string filename ) : void
RecordTimelapse ( ) : void
WatermarkVideo ( string input, string output ) : void

Method Details

CalculateChunckCreateTime() protected method

protected CalculateChunckCreateTime ( int fileCount, int interval, int snapshotCount ) : bool
fileCount int
interval int
snapshotCount int
return bool

ConcatenateVideoSingleImage() protected method

protected ConcatenateVideoSingleImage ( string mp4FileName, string tempMp4FileName, string baseMp4FileName, string tempVideoFileName, string imageFile ) : void
mp4FileName string
tempMp4FileName string
baseMp4FileName string
tempVideoFileName string
imageFile string
return void

CopyFfmpeg() protected method

protected CopyFfmpeg ( ) : string
return string

CreateBashFile() protected method

protected CreateBashFile ( string bashFilePath, int frame_per_sec, int interval, string imagesPath, string tsPath, int start_number ) : void
bashFilePath string
frame_per_sec int
interval int
imagesPath string
tsPath string
start_number int
return void

CreateConfigFile() protected method

protected CreateConfigFile ( string mp4File, string newMp4File, string txtFileName ) : void
mp4File string
newMp4File string
txtFileName string
return void

CreateNewVideoChunk() protected method

protected CreateNewVideoChunk ( string bashFile, int start_number ) : void
bashFile string
start_number int
return void

CreateVideoChunks() public method

public CreateVideoChunks ( string bashFile, bool update_info = true ) : void
bashFile string
update_info bool
return void

CreateVideoFromImages() protected method

protected CreateVideoFromImages ( string output, string baseOutput ) : TimelapseVideoInfo
output string
baseOutput string
return BLL.Entities.TimelapseVideoInfo

DownloadSnapshot() protected method

protected DownloadSnapshot ( ) : string
return string

ExitProcess() protected method

protected ExitProcess ( ) : void
return void

GenerateVideoSingleImage() protected method

protected GenerateVideoSingleImage ( string output, string baseOutput, string imageFile ) : void
output string
baseOutput string
imageFile string
return void

GetTsFileIndex() protected static method

protected static GetTsFileIndex ( string tsPath ) : int[]
tsPath string
return int[]

Recorder() public method

public Recorder ( Timelapse timelapse ) : System
timelapse BLL.Entities.Timelapse
return System

RunBash() protected method

protected RunBash ( string parameters ) : void
parameters string
return void

RunProcess() protected method

protected RunProcess ( string parameters ) : string
parameters string
return string

Start() public method

public Start ( ) : void
return void

UpdateVideoInfo() public method

public UpdateVideoInfo ( string movieName ) : TimelapseVideoInfo
movieName string
return BLL.Entities.TimelapseVideoInfo

updateMenifiest() protected method

protected updateMenifiest ( string tsPath, string fileName, int fileIndex ) : void
tsPath string
fileName string
fileIndex int
return void

Property Details

BashFile public_oe property

public string BashFile
return string

FfmpegExePath public_oe property

public string FfmpegExePath
return string

chunkIndex public_oe property

public int[] chunkIndex
return int[]