private void StartNextJob() { if (pendingJobs.Count == 0) { ResetGui(); return; } videoEditor = factory.getVideoEditor(); videoEditor.Progress += OnProgress; currentJob = pendingJobs[0]; LoadJob(currentJob); try { videoEditor.EncodingSettings = currentJob.EncodingSettings; videoEditor.EnableTitle = currentJob.OverlayTitle; videoEditor.EnableAudio = currentJob.EnableAudio; videoEditor.Start(); } catch (Exception ex) { Log.Exception(ex); Log.Error("Error redering job: ", currentJob.Name); currentJob.State = JobState.Error; } }
private void LoadEditionJob(EditionJob job) { videoEditor = multimediaToolkit.GetVideoEditor(); videoEditor.EncodingSettings = job.EncodingSettings; videoEditor.Progress += OnProgress; foreach (PlayListPlay segment in job.Playlist) { if (!ProcessSegment(segment)) { continue; } } try { videoEditor.Start(); } catch (Exception ex) { videoEditor.Cancel(); job.State = JobState.Error; Log.Exception(ex); Log.Error("Error rendering job: ", job.Name); guiToolkit.ErrorMessage(Catalog.GetString("Error rendering job: ") + ex.Message); } }
void LoadEditionJob(EditionJob job) { videoEditor = App.Current.MultimediaToolkit.GetVideoEditor(); videoEditor.EncodingSettings = job.EncodingSettings; videoEditor.Progress += OnProgress; videoEditor.Error += OnError; foreach (IPlaylistElement segment in job.Playlist.Elements) { if (segment is PlaylistPlayElement) { ProcessPlay(segment as PlaylistPlayElement); } else if (segment is PlaylistVideo) { ProcessVideo(segment as PlaylistVideo); } else if (segment is PlaylistImage) { ProcessImage(segment as PlaylistImage); } else if (segment is PlaylistDrawing) { ProcessDrawing(segment as PlaylistDrawing); } } videoEditor.Start(); }
void LoadConversionJob(ConversionJob job) { videoEditor = App.Current.MultimediaToolkit.GetVideoEditor(); videoEditor.EncodingSettings = job.EncodingSettings; videoEditor.Progress += OnProgress; videoEditor.Error += OnError; foreach (MediaFile file in job.InputFiles) { PlaylistVideo video = new PlaylistVideo(file); Log.Debug("Convert video " + video.File.FilePath); videoEditor.AddSegment(video.File.FilePath, 0, -1, 1, "", video.File.HasAudio, new Area()); } videoEditor.Start(); }
private void LoadEditionJob(EditionJob job) { videoEditor = multimediaToolkit.GetVideoEditor(); videoEditor.EncodingSettings = job.EncodingSettings; videoEditor.Progress += OnProgress; videoEditor.Error += OnError; foreach (IPlaylistElement segment in job.Playlist.Elements) { if (segment is PlaylistPlayElement) { ProcessPlay(segment as PlaylistPlayElement); } else if (segment is PlaylistVideo) { ProcessVideo(segment as PlaylistVideo); } else if (segment is PlaylistImage) { ProcessImage(segment as PlaylistImage); } else if (segment is PlaylistDrawing) { ProcessDrawing(segment as PlaylistDrawing); } } try { videoEditor.Start(); } catch (Exception ex) { videoEditor.Cancel(); job.State = JobState.Error; Log.Exception(ex); Log.Error("Error rendering job: ", job.Name); guiToolkit.ErrorMessage(Catalog.GetString("Error rendering job: ") + ex.Message); } }
private void StartNextJob() { if (pendingJobs.Count == 0) { ResetGui(); return; } videoEditor = multimediaToolkit.GetVideoEditor(); videoEditor.Progress += OnProgress; currentJob = pendingJobs[0]; LoadJob(currentJob); try { videoEditor.EncodingSettings = currentJob.EncodingSettings; videoEditor.EnableTitle = currentJob.OverlayTitle; videoEditor.EnableAudio = currentJob.EnableAudio; videoEditor.Start(); } catch(Exception ex) { Log.Exception(ex); Log.Error("Error redering job: ", currentJob.Name); currentJob.State = JobState.Error; } }
private void LoadEditionJob(EditionJob job) { videoEditor = multimediaToolkit.GetVideoEditor (); videoEditor.EncodingSettings = job.EncodingSettings; videoEditor.Progress += OnProgress; videoEditor.Error += OnError; foreach (IPlaylistElement segment in job.Playlist.Elements) { if (segment is PlaylistPlayElement) { ProcessPlay (segment as PlaylistPlayElement); } else if (segment is PlaylistVideo) { ProcessVideo (segment as PlaylistVideo); } else if (segment is PlaylistImage) { ProcessImage (segment as PlaylistImage); } else if (segment is PlaylistDrawing) { ProcessDrawing (segment as PlaylistDrawing); } } try { videoEditor.Start (); } catch (Exception ex) { videoEditor.Cancel (); job.State = JobState.Error; Log.Exception (ex); Log.Error ("Error rendering job: ", job.Name); guiToolkit.ErrorMessage (Catalog.GetString ("Error rendering job: ") + ex.Message); } }