Hello,
I have my DV avi and load it in VirtualDubMod and I delete the sections where there are commecials. Then I go to the script editor and do the "Import Frameset as Trims" and copy this line to the edit avs dialogue in dvd2svcd (in avi2svcd mode w/ CCE as encoder) when I encode.
So it looks something like this:
AVISource("E:\tvcaps\testfiles\test1.avi",audio=fa lse)
Trim(327,912) ++ Trim(1110,4523)
ConvertToYUY2(interlaced=true)
.
.
.
But after I view the resulting mpg, I see that the video was cut, but the audio apparently didn't get cut, and everything is out of sync. Its weird.
What happens is since the vid parts were cut , it's shorter and so when it stops at the last frame, the rest of the audio continues to play until it reaches the end.
The other way that worked was just basically doing the cuts in VirtualDubMod and doing a Save As. But that is not an option for the actual files which are huge, and making a duplicate without commecials would use up all hard drive space.
How can I fix this? I don't know what I am doing wrong. Thanks for any suggestions!
EDIT
I saw here that they used only one + and not ++, what's the difference?
+ Reply to Thread
Results 1 to 8 of 8
-
-
AVISource("E:\tvcaps\testfiles\test1.avi")
Clip1=Trim(327,912)
Clip2=Trim(1110,4523)
UnalignedSplice(clip1,clip2)
ConvertToYUY2(interlaced=true)
Good luck!!! -
Nope, none of those worked!
I tried taking out audio=false, didn't work, tried audio=true didn't work, tried the above script, audio still out of sync, and it it's not trimming the right spots now...ahhhh
I went to avisynth.org and found this:
AlignedSplice and UnalignedSplice join two or more video clips end to end. The difference between the filters lies in the way they treat the sound track. UnalignedSplice simply concatenates the sound tracks without regard to synchronization with the video. AlignedSplice cuts off the first sound track or inserts silence as necessary to ensure that the second sound track remains synchronized with the video.
UnalignedSplice -> +
AlignedSplice -> ++
I dunno what else to do. -
How do these .AVS files sound when you open them up directly into VirtualDub?? Do you get the same results??
What does the File information read??
Just a guess, but perhaps a Type1 DV and/or a Type2 DV would be a possible issue ?!?!
Puzzling.. -
I "import frameset as trims", save the new script, then open it again in VirtualDub (regular version) to save the wav. Then I encode the video separately, & join it to the (de-hissed) audio in the authoring stage. I can't say I've encountered your problem? But then, like I've said, I process the audio & video streams separately. (Don't know if this makes any difference?)...
-
Here's file info:
It's a type2 DV avi , plays fine in VirtualDub and VirtualDubMod... I will try out NamPla's way... I been useing DVD2SVCD to automate everything, it sucks if I have take another extra step, I was hoping Trim() would work!!!
I think what I'll do is after it extracts the audio (it calls it Extracted_audio_1.wav) , I'll replace it with the wav saved from virtualdub? We'll see what happens...
EDIT
Ok, I re-read the posts, you said avs file, well when I open that up, the video will play with the trimmed parts, but there is no sound!
And when I did try opening up the avs in virtualdub and tried doing Save WAV... , I get error message: No input audio stream to extract. -
Try losing the "audio = false" command.
:P
(I put that in just before I encode the video, not sure if it speeds up the encoding or not, but what the hell).
Similar Threads
-
How do I trim audio with AVIsynth?
By Nagashi in forum AudioReplies: 4Last Post: 2nd Oct 2011, 10:13 -
Mp4 video plays audio then cuts out
By nick101181 in forum Software PlayingReplies: 1Last Post: 26th Mar 2011, 06:25 -
Trimming the audio to go along with the video cuts in avisynth?
By mt123 in forum Newbie / General discussionsReplies: 0Last Post: 10th Jan 2010, 03:23 -
Trim audio without re-encode
By pchan in forum AudioReplies: 3Last Post: 17th Sep 2007, 08:29 -
How to trim your video and audio within Windows Media Player™
By DmitryV in forum User guidesReplies: 0Last Post: 20th Jun 2007, 04:53