Log in

View Full Version : Trim() doesn't trim audio?


theinv
9th March 2007, 18:45
In the MeGUI avisynth script editor, I do the following

Trim(15000,0)

but it only trims the video. The audio/video becomes out of sync.

How do I trim both the audio and video?

martino
14th March 2007, 12:12
What I would suggest would be muxing the audio separately in MP4 and the using mp4box to cut the first 15000 frames out of it (first you'll have to find how much in hh:mm:ss.ms that is depending on the framerate of your video).

Not sure if my approach would be the best, but it works fine for me since when possible I try to avoid AVS for audio processing (I haven't gotten there yet :) )

DarkZell666
14th March 2007, 20:33
In the MeGUI avisynth script editor, I do the following

Trim(15000,0)

but it only trims the video. The audio/video becomes out of sync.

How do I trim both the audio and video?

Since v2.5.6, avisynth allows for a 3rd boolean parameter concerning audio :)

cf here: http://avisynth.org/index.php?page=Trim