MPEG SDK --> MpegEditor
A frame-accurate MpegEditor.
Example:
// create an editor to save output as MPEG-2 Program Stream.
MpegEditor* editor = new FrmAccurateEditor(PROGRAM);
// add two videos and one audio
editor->pasteVideoCut("file1.mpg", "00:01:00:00", "00:01:10:00");
editor->pasteVideoCut("file2.mpg", "00:02:00:00", "00:02:10:00");
editor->pasteAudioCut("file3.mpg", "00:00:00:00", "00:00:20:00");
// add a synchronised cut with video and audio from the same file
editor->pasteCut("file3.mpg", "00:12:00:00", "00:13:00:00");
// generate output
editor->generate("out.mpg");
FrmAccurateEditor
~FrmAccurateEditor
pasteAudioCut
pasteAudioFadeIn
pasteAudioFadeOut
pasteCut
pasteVideoCut
pasteVideoDissolve
pasteVideoFadeIn
pasteVideoFadeOut
pasteVideoWipe
public FrmAccurateEditor ( SystemsFormat format ) ;
Construct a FrmAccurateEditor.
The packetization of the output is specified by format.
public virtual ~ FrmAccurateEditor ( ) ;
public void pasteCut ( const string & file ,
const string & in_time ,
const string & out_time ) ;
Paste both the video and audio of a file to the timeline and synchronize them.
public void pasteVideoCut ( const string & file ,
const string & in_time ,
const string & out_time ) ;
Paste a video clip to the video track of the timeline.
public void pasteAudioCut ( const string & file ,
const string & in_time ,
const string & out_time ) ;
Paste an audio clip to the audio track of the timeline. Supports Audio Layers I, II & III.
public void pasteVideoFadeOut ( const string & file ,
const string & in_time ,
const string & out_time ) ;
Similar to pasteVideoCut but perform fade out on the video.
public void pasteVideoFadeIn ( const string & file ,
const string & in_time ,
const string & out_time ) ;
Similar to pasteVideoCut but perform fade in from black on the video.
public void pasteVideoDissolve ( const string & file1 ,
const string & in_time1 ,
const string & file2 ,
const string & in_time2 ,
const string & out_time2 ) ;
Paste a video clip consists of the video of file1 dissolving into the video of file2.
public void pasteVideoWipe ( const string & file1 ,
const string & in_time1 ,
const string & file2 ,
const string & in_time2 ,
const string & out_time2 ) ;
Paste a video clip consists of the video of file1 wiping through the video of file2.
public void pasteAudioFadeOut ( const string & file ,
const string & in_time ,
const string & out_time ) ;
Similar to pasteAudioCut but perform fade out to silence on the audio. Supports Audio Layers I & II only.
public void pasteAudioFadeIn ( const string & file ,
const string & in_time ,
const string & out_time ) ;
Similar to pasteAudioCut but perform fade in from silence on the audio. Supports Audio Layers I & II only.
This documentation was generated automatically by the ccdoc tool (version 0.7a).
Click here to submit a bug report or feature request.
Click here to return to the top of the page.