PDA

View Full Version : Split Audio as per Trim()??


th3obr0
31st March 2009, 23:06
Hello,

I was re-encoding an old movie when the friggin' MS updates restarted my PC on 80% :eek:. I now have the 80% on one MKV file and the 20% in the second mkv file using the Trim(). The problem is I repeated one of the frames on the 02:01:04 twice so the 04 second is twice in the video. Now the video will go out of sync on that part, so to prevent that I am trying to trim the audio as per the frames.

Just to try, I loaded the AVS file in the audio input(the o/p was in .MP4), but then git the error status while pre-processing :confused:. Is there a way to split the audio as per the two parts of the movie using trim() or any other application?

I will be joining the final two muxed video+audio using mkvmerge. Does that sound okay?

Thanks!

poisondeathray
31st March 2009, 23:07
Trim() requires both audio & video to work

You could "fake it out" by using a blankclip() and audiodub()

th3obr0
31st March 2009, 23:13
Trim() requires both audio & video to work

You could "fake it out" by using a blankclip() and audiodub()

Ermm.. means? The source was a DVD9. I have the AAC audio file separately. Can you guide me exactly how to do this? I am not a pro with this. I'm still learning :).

EDIT

I read the avisynth.org pages, but how do I use it in the right manner to make it work on my problem? I know how to use the basic functions, but how to implement them?

Midzuki
1st April 2009, 00:08
Hello,

I was re-encoding an old movie when the friggin' MS updates restarted my PC on 80% :eek:.

That's what you get for NOT turning off the Automagic Updates :)

IanB
1st April 2009, 08:14
Have a look at my ATrim() or older AudioTrim() functions.

th3obr0
1st April 2009, 09:20
Anyhow I got to cut that one frame off using mkvmerge, but not another problem came up. The original AAC audio is of same length as the movie, but for some reason it goes out of sync from that 02:01:04 where that 1 second repeated frame was removed and the two 80% and 20% files were joined. Anyone knows why it happens?

The movie is is perfectly synced till that 80%, but then suddenly a delay of massive 3-4 seconds is there from that particular frame. The original audio itself has a delay of some 600 ms or so.