Log in

View Full Version : weird mpeg2 from DV AVI-file


petcampeg
6th July 2004, 21:24
I’ve got an encoding problem which I can’t figure out. My starting point is a DV AVI film clip once created using Premiere 6.5 and I would like to create a mpeg2 clip. To do this I’m using AviSynth 2.53 as an intermediate step. So I wrote a very simple .avs-script like this:

video = DirectShowSource("G:\folder1\folder2\clip.avi")
audio = DirectShowSource("G:\folder1\folder2\clip.avi")
AudioDub(video, audio)

I then loaded this .avs-script in TMPGEnc 2.521. I unticked the “DirectShow Multimedia File” box in the Options>Environmental Settings menu and launched the mpeg2 coding. The resulting mpeg2-file is very strange. The picture appears to be running slightly in slow motion and the sound sort of loops around every two seconds. The same thing happens when I directly load the .avs-script in the Windows Media Player. What am I doing wrong?

Video Dude
6th July 2004, 23:13
Step 1: Fix the TMPGEnc options
TMPGEnc reads AviSynth in through directshow, why would you untick it? Go back into the options and make sure it is selected. Raise it to top priority.


Step 2: Fix your script, you have two options

Option 1:
In your video editing program save the audio to a wav file and change your script to:

video = DirectShowSource("G:\folder1\folder2\clip.avi")
audio = WavSource("G:\folder1\folder2\clip.wav")
AudioDub(video, audio)


Option 2:
You might consider using a "real" DV codec, like MainConcept or Canopus, and convert your DV to type 2.

Your script will then be:

AVISource("G:\folder1\folder2\clip.avi")

AVISource includes the audio, so no need to use AudioDub.

Mug Funky
8th July 2004, 11:48
why not load the DV file directly into TMPGenc?

unless you're running some filters in avisynth, there's absolutiely no need to use it for loading DV into TMPGenc (unless i missed something - my version of tmpg is out of date by now).

however, if you're after things like denoising and deinterlacing, or frame rate conversion, then definitely use avisynth as it's totally good for that stuff.