cmd:avidemux 

Basic Info 

Usage 

Info 

Avidemux is a graphical tool to edit video. It can open AVI, openDML, MPEG, Nuppelvideo, and BMPs. Most common codecs are supported (M-JPEG, MPEG, DivX, Xvid, huffyuv, WMA, etc.) thanks to libavcodec and libmpeg2. Video can be edited, cut, appended, filtered (resize/crop/denoise), and re-encoded to either AVI (DivX/Xvid) or MPEG 1/2.

Features 

Comments 

Help, Editing mpeg files 

1. Introduction 

Avidemux can read (indexed) mpeg file, both elementary stream and program stream (i.e. vob files for example) thanks to mpeg2dec

Internally, the mpeg are seen as frames with a fake codec (MPEG).

If you save the file in copy mode, you will end up with mpeg inside avi, but since it is non standard, only avidemux will be able to read it back.

2. Splitting, external muxing 

General
As usual, define the section you are interested in using and . You should read cutting if you did not already.
Audio
No special care to take here. Just save the audio in copy mode using File->Save audio menu entry. You will end-up with either foo.mp2 or foo.ac3.
Video

For video, we will use File->Save raw stream. This menu entries will ask the demuxer the raw data, bypassing the mpeg decoding step. It will also reconstruct the PTS/DTS logic to have a compliant mpeg stream.

Now you have a foo.m1v or foo.m2v mpeg1/2 elementary stream which should be synced with foo.mp2.
System
Now it is time to remultiplex both stream to end-up with foo.mpg. The first seq_header has the timestamp of the fist frame (uncut). It may confuse mplex and you will end up with tons of error/warning message.

The best is to use tcmplex from transcode to mux them back together.

3. Splitting, internal muxing 

General
As usual, define the section you are interested in using and . You should read cutting if you did not already. In that mode, avidemux will write a mpeg2 PS stream (lvemux lower part from lvempeg. This mpeg2 PS contains NAV packet and is suitable to DVD authoring. Even my pionner accepts them :).
Audio
Audio must be 48 kHz and either MP2 or AC3 (as of today it means libavcodec AC3 or libavcodec MP2). It can be either from copy and/or process mode (for example editing a PVR capture file).
Video
The video must be mpeg (that seems obvious). As for audio, it can be in copy mode (edited PVR or DVD) or process mode (converted avi or converted nuv).
Saving
Now, it is time to use File-save mpeg PS. If audio is in copy mode, you will be asked the A/V shift to correct. For DVD it ranges from 0 to about 200 ms. For PVR captured stream it can be anything.
[Important]
There is two importants things to consider here :
  • The muxing will introduce by default a 40 ms shift. Can be neglected if the sync was perfect.
  • When saving as mpeg PS, the GOP timestamp will be recomputed to avoid jump in case of edited PVR streams.

Version 2-2.0.22-0 

rpmih avidemux2-2.0.22-0.rh90.dag.i386.rpm

documented on: 2004.06.02