Alright, I'm extremely new to using avisynth so bear with me. Basically what I want to do is take a HD (1080i) mpeg-2/ts file and convert it to a smaller xvid/avi file. From my understanding the correct way to go about this is to load this type of file into dgindex which will generate a d2v and audio file. This would be pretty straight forward if I wasn't making cuts because I could just mux the audio in the end. However, in this case I have commercials to cut out and I know how to apply the cuts to the script. The problem is I'm not sure how to make the same cuts with the audio. Here is a sample script (hence the tiny cuts for demonstration) that I generated in megui that would basically be the same thing I'm dealing with:
The audio is AC3 and I want to convert it to VBR MP3 so of course it would have to be re-encoded but as I said I'm not quite sure how to reference the audio to make the same cuts.DGDecode_mpeg2source("G:\TEST7.d2v", info=3)
ColorMatrix(hints=true, interlaced=true, threads=0)
Load_Stdcall_Plugin("C:\Program Files\megui\tools\yadif\yadif.dll")
Yadif(order=1)
#crop
LanczosResize(624,352) # Lanczos (Sharp)
Trim(0, 100) ++ Trim(201, 300)
Thanks
+ Reply to Thread
Results 1 to 1 of 1
Similar Threads
-
Avisynth Script Help - Trimming and Joining
By Legiit in forum EditingReplies: 1Last Post: 1st Mar 2012, 12:30 -
Mp4 video plays audio then cuts out
By nick101181 in forum Software PlayingReplies: 1Last Post: 26th Mar 2011, 06:25 -
Trimming with Avisynth: An exploration
By Krelmaneck in forum EditingReplies: 2Last Post: 22nd Oct 2010, 12:20 -
Noob needs help trimming, splicing, audio with AviSynth
By PapaDmitry in forum EditingReplies: 39Last Post: 6th Jul 2010, 09:53 -
Trimming then extracting audio
By chrishallowell in forum EditingReplies: 3Last Post: 2nd Nov 2007, 00:29