Welcome to Synthiam!

Program robots using technologies created by industry experts. ARC is our free-to-use robot programming software that makes features like vision recognition, navigation, and artificial intelligence easy.

Get Started
Asked — Edited
Resolved Resolved by ptp!

How To Recoed Video In C#

Hi
especially @ptp

Do u remember the previous camera project ?
I've add two new buttons one for start recording video & the other is for saving video ,I've try the following code but it doesn't work

Code:


EZ_B.EZ­Bv4­Video.­Start(EZ_B.EZB, ­System.­String, ­System.­Int32)
//and
camera.AVIStartRecording("vedio1",30);

AI Support Bot
Related Content
Synthiam
Based on your post activity, we found some content that may be interesting to you. Explore these other tutorials and community conversations.
PRO
Synthiam
#1  
You have to use the Camera module, not the raw ezbv4video module. The camera module has the recording built in, unless it's something you need full control over.

I will provide an example of both when I am in front of the computer in a few hours.
PRO
USA
#2  
the camera.AVIStartRecording should work.

an example:

Code:


private void StartOrStopVideoRecordingButton_Click(object sender, EventArgs e)
{
if (!this.camera.IsActive)
{
this.WriteDebug("ERROR: Camera not started");
return;
}

//Note: .Tag = "Start Video Recording|Stop Video Recording
var labels = this.StartOrStopVideoRecordingButton.Tag.ToString().Split(new[] { '|' });

if (!this.camera.AVIIsRecording)
{
var filename = this.ImageFileNameTB.Text + ".avi";
this.WriteDebug("AVI Start recording to file=" + filename+ " ." );

const int framesPerSecond = 3;
this.camera.AVIStartRecording(filename, Camera.VideoCodec.MPEG4, framesPerSecond);

this.StartOrStopVideoRecordingButton.Text = labels[1];
}
else
{
this.WriteDebug("AVI Stop recording" );

this.camera.AVIStopRecording();

this.StartOrStopVideoRecordingButton.Text = labels[0];
}
}


It's simple and straight forward.

I've updated the Github repository. if you still have issues, you can check the example.
#4  
@ptp
there is no words enough to thank u