Home > Archive (Community help, from old helpdesk) > VideoEditSlave "GetGroupOutputPin: Operation failed because project was not rendered successfully."

VideoEditSlave "GetGroupOutputPin: Operation failed because project was not rendered successfully."

Avatar image
Aug 24, 2015
Archive Agent wrote
I am using VisioForge.Controls.VideoEdit.VideoEditSlave in Console application to create a video from series of images and an mp3. When I execute the method start() I get an error in OnError event GetGroupOutputPin: Operation failed because project was not rendered successfully.

Need some help here

Abbas on August 05, 2013 19:24
Completed
0
Vote
Reply
18 Answers
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

Hi

Please share your application code.

on August 05, 2013 19:34
Aug 24, 2015
Archive Agent agent wrote
Abbas

public void BuildUsingVS()
{
if (File.Exists(AssetDir + "output.avi"))
{
File.Delete(AssetDir + "output.avi");
}

//VisioForge.Controls.WinForms.VideoEdit ve = new VisioForge.Controls.WinForms.VideoEdit();
VisioForge.Controls.VideoEdit.VideoEditSlave ve = new VisioForge.Controls.VideoEdit.VideoEditSlave();
ve.Debug_Dir = @"C:\Development\Research\DirectShowEditingServices\vsforgeTest\Assets\Debug\";

foreach (string cod in ve.Video_Codecs())
{
Console.WriteLine(cod);
}

foreach (string fil in ve.DirectShow_Filters())
{
Console.WriteLine(fil);
}

int insertTime = 0;

foreach (string img in Images)
{
ve.Input_AddImageFile(img, 2000, 10, VisioForge.Types.VFVideoEditStretchMode.Letterbox);
insertTime += 10;
}

ve.Video_Effects_Clear();
ve.Mode = VisioForge.Types.VFVideoEditMode.Convert;
ve.Video_Resize = false;
ve.Video_FrameRate = 25;
ve.Video_Renderer = VisioForge.Types.VFVideoRenderer.VMR9;
ve.Screen_Stretch = false;
ve.Video_Renderer_Deinterlace_UseDefault = true;
ve.Encryption_Password = "100";
ve.Encryption_Format = VisioForge.Types.VFEncryptionFormat.MP4_H264_SW_AAC;

ve.Output_Format = VFVideoEditOutputFormat.AVI;
ve.Output_Filename = AssetDir + "output.avi";

ve.Audio_Codec_Name = "PCM";
ve.Audio_Codec_Channels = 2;
ve.Audio_Codec_BPS = 16;
ve.Audio_Codec_SampleRate = 48000;
ve.Video_Codec = "MJPEG Compressor";
ve.Audio_LAME_UseInAVI = false;

ve.Audio_Preview_Enabled = true;

ve.Audio_Effects_Clear(-1);
ve.Audio_Effects_Enabled = false;
ve.Video_Effects_Enabled = true;
ve.Video_Effects_Clear();

ve.AForge_Motion_Detection_Enabled = false;
ve.AForge_Motion_Detection_ProcessorType = AFMotionProcessorType.None;

ve.Virtual_Camera_Output_Enabled = false;

ve.Video_Effects_Enabled = true;
ve.Video_Effects_Deinterlace_CAVT(1, 0, 0, true, Convert.ToByte("20"));

ve.Network_Streaming_Enabled = false;

ve.Decklink_Output_Enabled = false;
ve.Decklink_Output_DV_Encoding = false;
ve.Decklink_Output_AnalogOutputIREUSA = true;
ve.Decklink_Output_AnalogOutputSMPTE = true;
ve.Decklink_Output_BlackToDeckInCapture = DecklinkBlackToDeckInCapture.Default;
ve.Decklink_Output_DualLinkOutputMode = DecklinkDualLinkMode.Default;
ve.Decklink_Output_HDTVPulldownOnOutput = DecklinkHDTVPulldownOnOutput.Default;
ve.Decklink_Output_SingleFieldOutputForSynchronousFrames = DecklinkSingleFieldOutputForSynchronousFrames.Default;
ve.Decklink_Output_VideoOutputDownConversionMode = DecklinkVideoOutputDownConversionMode.Auto;
ve.Decklink_Output_VideoOutputDownConversionModeAnalogUsed = false;
ve.Decklink_Output_AnalogOutput = DecklinkAnalogOutput.Auto;

ve.ChromaKey_Enabled = false;
ve.ChromaKey_ContrastHigh = 150;
ve.ChromaKey_ContrastLow = 10;
ve.ChromaKey_ImageFilename = "";
ve.ChromaKey_Color = VFChromaColor.Green;

ve.Barcode_Reader_Enabled = false;
ve.Barcode_Reader_Type = VFBarcodeType.Auto;

ve.MotionDetection_Enabled = false;

ve.Video_Rotation = VFRotateMode.RotateNone;

//ve.Output_Format = VisioForge.Types.VFVideoEditOutputFormat.MP4_H264;
//ve.Output_Filename = AssetDir + "output.mp4";
//ve.MP4_Video_Profile = VisioForge.Types.VFH264Profile.ProfileAuto;
//ve.MP4_Video_Level = VisioForge.Types.VFH264Level.LevelAuto;

ve.OnError += new EventHandler<ErrorsEventArgs>(VideoEdit1_OnError);

ve.Start();

while (true)
{
Console.WriteLine(ve.Progress());
Console.WriteLine(ve.Duration());
Console.WriteLine(ve.Status);
}

}

on August 06, 2013 11:44
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

Please share full project using Dropbox or Google Drive.

on August 06, 2013 12:23
Aug 24, 2015
Archive Agent agent wrote
Aug 24, 2015
Archive Agent agent wrote
Aug 24, 2015
Archive Agent agent wrote
qakmak

Looks like I'm not a only one see this problem.
Hi, Abbas, can you tell me your email or something, maybe can discuss with each other sometime.

on August 06, 2013 17:27
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

It's independent problems, Abbas specified incorrect source file names.

on August 06, 2013 19:45
Aug 24, 2015
Archive Agent agent wrote
Abbas

Thanks
I will install the update and run your code as well and let you know. Though implementation looks more or less the same. I will revert back shortly.

on August 06, 2013 22:11
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

Thank you!

on August 07, 2013 11:34
Aug 24, 2015
Archive Agent agent wrote
Abbas

It generates the avi but its not playing "Windows media player cannot play this file".

any advice

on August 07, 2013 12:31
Aug 24, 2015
Archive Agent agent wrote
Abbas

Also I have found VideEditSlave.Status doesnt change to Free after completion

on August 07, 2013 12:32
Aug 24, 2015
Archive Agent agent wrote
qakmak

you need to install the codec.

but even the codec problem. I think sdk can't output:GetGroupOutputPin, or not correct Status. I think it Is obviously a BUG.

but before the sdk fixed, you can temporarily avoid this errors use another way.

on August 07, 2013 12:36
Aug 24, 2015
Archive Agent agent wrote
qakmak

In addition, I think that the Video Edit State did not changed to Free, because it is not successful conversion. are you sure it succeeded?

on August 07, 2013 12:39
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

Abbas, all ok with our project. Please contact support privately and tell me TeamViewer ID / password, I'll connect to your PC to resolve this problem.

on August 07, 2013 13:09
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

Qamak, MJPEG used in our code, because Encoder/Decoder are always present on Windows PC.

on August 07, 2013 13:10
Aug 24, 2015
Archive Agent agent wrote
qakmak

ok, sorry, last time same error in my project, and he said Media player can't play..... so I thought it's maybe a codec problem....

on August 07, 2013 13:15
Aug 24, 2015
Archive Agent agent wrote
Abbas

Hi Roman
Do you want me to give team viewer ID on support to you or over here?

For your information ultimate idea is to produce mp4 with audio file in this project

on August 07, 2013 18:25
Aug 24, 2015
Archive Agent agent wrote
Roman Minyaylov

Download TeamViewer, install it, I'll connect to your PC and check where is a problem.

on August 07, 2013 18:38