FlezZ
25th March 2007, 17:52
Hi there.
I have been looking for something, for making frame accurate cuts on my mpeg2 streams. Since now I've had to choose between making not so accurate cuts with I- and P-frames or encode the cut parts.
I have mp2 audio on my streams. I will be encoding the mpeg2 video to xvid. So I found out, that AviSynth has a nice, frame accurate trimming option. I'm quite new to AS scripting, so I'd need a few pointers here. First of all, is it possible at all to trim the mp2 file too then? I mean, if I just add 'trim(4,28897)' to the avs script, it won't be doing anything about the audio, so the result will be out of sync, if I won't get the audio trimmed too somehow. So I'd probably have to load my mp2 file to the script somehow? I encode the mp2 file to mp3 vbr. But as far as I know, one can't encode audio with avs script file.
Well, this probably came out a bit confusing, but I hope you'll understand what I'm trying to achieve here.:rolleyes:
I have been looking for something, for making frame accurate cuts on my mpeg2 streams. Since now I've had to choose between making not so accurate cuts with I- and P-frames or encode the cut parts.
I have mp2 audio on my streams. I will be encoding the mpeg2 video to xvid. So I found out, that AviSynth has a nice, frame accurate trimming option. I'm quite new to AS scripting, so I'd need a few pointers here. First of all, is it possible at all to trim the mp2 file too then? I mean, if I just add 'trim(4,28897)' to the avs script, it won't be doing anything about the audio, so the result will be out of sync, if I won't get the audio trimmed too somehow. So I'd probably have to load my mp2 file to the script somehow? I encode the mp2 file to mp3 vbr. But as far as I know, one can't encode audio with avs script file.
Well, this probably came out a bit confusing, but I hope you'll understand what I'm trying to achieve here.:rolleyes: