Editing AVI files is easily done through VirtualDub but for .wmv and .mpg files the tools are less easily available. Two very good command line tools are available for editing these files viz.
AsfBin - Very well done editor for Windows media files
MpgTx - A tool being developed largely for POSIX apps.
FLVtool - Metadata updater and flv movie editor
All these applications are freely available for download for non-commercial use.
Movica is ... [