-
Notifications
You must be signed in to change notification settings - Fork 1
/
VideosVideo.cs
30 lines (29 loc) · 1.03 KB
/
VideosVideo.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
public partial class VideosVideo
{
public void Generate(VideoMaker videoMaker)
{
aviManager = new AviFile.AviManager(fileName,false);
Console.WriteLine("Video ID:" + this.Id + " with name: " + fileName);
Console.WriteLine("Number of Sequences: " + this.Sequences.Length);
int sequenceNumber = 1;
foreach (var sequence in Sequences)
{
Console.WriteLine("Processing Video " + sequenceNumber.ToString() + " : " + sequence.Id );
++sequenceNumber;
}
}
public void AddFrame(System.Drawing.Bitmap bitmap)
{
if (stream == null)
stream = aviManager.AddVideoStream(true, 30, bitmap);
else
stream.AddFrame(bitmap);
}
private AviFile.AviManager aviManager;
private AviFile.VideoStream stream;
public String fileName;
}