Log in

View Full Version : "Trim" better then MPEG2Schnitt when source will be encoded?


ekenet
19th February 2004, 20:25
I read in the DVB>DVDR guide that you need to cut at I and P frames. But let's say I want to encode my video-stream, wouldn't it be more accurate if I use the trim option for AviSynth? This would allow me to cut at every frame I want, instead of just every 12 frames or something by using MPEGSchnitt.

buzzqw
20th February 2004, 08:12
it is sure accurate (and easy) but can you directly cut mpeg2 vith avisynth ? i think no
MPEGSchnitt is a good program for cutting/trimming video and audio streams from commercial (for example) , avisynth lack of this ability or however cannot do multiple cut with audio in synch.

if you are a avisynth guru you could do all the job with avisynth, but for me is easier work with mpegschnitt and then work with avisynth.

my 2 cents

BHH

bb
20th February 2004, 11:07
If you want to encode your video, then you can cut frame-accurately via AviSynth. You may use VirtualDubMod to open the MPEG file, cut and create the AviSynth Trim commands.

MPEG2Schnitt uses the best method possible for lossless MPEG-2 cutting, which is of course not frame-accurate. Use it e.g. for DVB captures you want to burn on DVD without reencoding.

bb

ekenet
20th February 2004, 19:23
Well then, thanks. Since I always encode my sources, the best thing for me would be the trim-function as I really want total accuracy.

symonjfox
23rd February 2004, 18:57
If you want to use Avisynth, you must include the MPASource Plugin, so Audiodub the audio and the video, at the last use the trim command. Works fine.
#Loadplugin("C:\programmi\avisynth 2.5\plugins\mpeg2dec3.dll")
Loadplugin("C:\Programmi\avisynth 2.5\plugins\mpasource.dll")

A = Mpeg2Source("video.d2v",IDCT=7,Ipp=false,CPU=4)
B = Mpasource("audio.mp2", normalize=true)

Audiodub(A,B)

Trim(2203,6291) ++ Trim(30923,61832) ++ Trim(64734,72134)

Open this AVS in Vdub and save the audio to WAV file, reencode it with besweet or whatever you want, then create your target file as usual.

This method is good just if you have in mind to reencode the audio to a smaller bitrate.

Mpeg2schnitt is your choice if you want to keep the origial audio (MP2 or AC3 depends on what channel). Remember that MP2 is supported by MPEG4 container for example, and my last works have Xvid video and MP2 audio (192 kbs). It's superb!