Welcome Guest ( Log In | Register )


Important

The forums will be closing permanently the weekend of March 15th. Please see the notice in the announcements forum for details.

 
Newb Question
« Next Oldest | Next Newest » Track this topic | Email this topic | Print this topic
Kaz
Posted: Aug 10 2004, 06:27 AM


Unregistered









I have only JUST started using avisynth and VirtualDub so I am about as noob as they come! I have a wmv file that I am using avisynth and VD to convert to avi format. However, the lip syncing is all out of whack.

The avs file just has the following coding in it:
CODE
DirectShowSource("F:\Karen\Promo1.wmv", fps=15)


When I double click this avs file to view it in Windows Media Player it starts off fine but slowly the lipsync goes wrong.

Am I missing something?

Thanks in advance for your help and ideas!

Kaz
 
  Top
rfmmars
Posted: Aug 10 2004, 04:41 PM


Advanced Member


Group: Members
Posts: 324
Member No.: 5438
Joined: 29-July 03



Change the 15 fps to 29.97 and see what happens. I think you have changed the video rate but not the audio.

richard
 
     Top
Kaz
Posted: Aug 11 2004, 10:12 PM


Unregistered









ok thanks for the tip, I'll try it out today when I boot up the other PC. I had thought that "fps=15" changed both vid and aud.
 
  Top
Kaz
Posted: Aug 12 2004, 01:12 AM


Unregistered









Ok it seems you are right, it was only setting video fps and not audio. I was at the AviSynth website and read this:
QUOTE
AssumeFPS

AssumeFPS(clip clip, float fps [, bool sync_audio])

AssumeFPS(clip clip, int numerator [, int denominator, bool sync_audio])

AssumeFPS(clip clip1, clip clip2 [, bool sync_audio])

The AssumeFPS filter changes the frame rate without changing the frame count (causing the video to play faster or slower). It only sets the framerate-parameter. If sync_audio (which is false by default) is true, it also changes the audio sample rate to match the duration of the video, the pitch of the resulting audio gets shifted.


So I used the following code:
CODE
DirectShowSource("F:\Karen\Promo1.wmv", fps=15)
AssumeFPS(15,sync_audio=true)

It didnt work.

Can someone please help me out and post the line of coding I am supposed to include if I want video and audio to both be at 15 fps?

Thanks in advance!
 
  Top
BlazingFire456
Posted: Aug 24 2004, 02:23 AM


Unregistered









Just simply don't use AviSynth's DirectShowSource, it's really glitchy. Just use TMPGEnc(it supports Direct Show with no problems.) and use that to convert it to AVI. Then use it in AviSynth with AVISource, etc. You shouldn't have problems now. biggrin.gif
 
  Top
0 User(s) are reading this topic (0 Guests and 0 Anonymous Users)
0 Members:
4 replies since Aug 10 2004, 06:27 AM Track this topic | Email this topic | Print this topic

<< Back to Avisynth Filtering, Processing and Scripts Discussion