MPEG SDK --> MpegEditor

class FrmAccurateEditor
    extends MpegEditor as public

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");

Source:
MpegEditor.h:219

Constructors Index

FrmAccurateEditor
[public] Construct a FrmAccurateEditor.
~FrmAccurateEditor
[public]


Methods Index

pasteAudioCut
[public] Paste an audio clip to the audio track of the timeline. Supports Audio Layers I, II & III.
pasteAudioFadeIn
[public] Similar to pasteAudioCut but perform fade in from silence on the audio. Supports Audio Layers I & II only.
pasteAudioFadeOut
[public] Similar to pasteAudioCut but perform fade out to silence on the audio. Supports Audio Layers I & II only.
pasteCut
[public] Paste both the video and audio of a file to the timeline and synchronize them.
pasteVideoCut
[public] Paste a video clip to the video track of the timeline.
pasteVideoDissolve
[public] Paste a video clip consists of the video of file1 dissolving into the video of file2.
pasteVideoFadeIn
[public] Similar to pasteVideoCut but perform fade in from black on the video.
pasteVideoFadeOut
[public] Similar to pasteVideoCut but perform fade out on the video.
pasteVideoWipe
[public] Paste a video clip consists of the video of file1 wiping through the video of file2.


Constructors

FrmAccurateEditor

public FrmAccurateEditor ( SystemsFormat format ) ;

Construct a FrmAccurateEditor.

The packetization of the output is specified by format.

FrmAccurateEditor

public virtual ~ FrmAccurateEditor ( ) ;


Methods

pasteCut

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.

pasteVideoCut

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.

pasteAudioCut

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.

pasteVideoFadeOut

public void pasteVideoFadeOut ( const string & file ,
                                const string & in_time ,
                                const string & out_time ) ;

Similar to pasteVideoCut but perform fade out on the video.

pasteVideoFadeIn

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.

pasteVideoDissolve

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.

pasteVideoWipe

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.

pasteAudioFadeOut

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.

pasteAudioFadeIn

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.