Log in

View Full Version : Avisynth won't work properly on Windows 10...


Julio C
1st May 2019, 23:46
So I have a lot of videos at are in 25fps, and because of that the audio pitch sounds off.

To fix this, I used the following script:

DirectShowSource("filename")
AssumeFPS(24, true)

From here I save this on a AVS file, and I simply drag and drop that file to MPC-HC and the video now plays at 24fps with the audio sounding correct.

However, ever since I updated my OS from Windows 7 to Windows 10, Avisynth no longer works properly even after re-installing the application. When it plays the video, the audio is no longer in sync with the video stream.

So is there a work around this? I'm sorry if this been asked several times.

qyot27
2nd May 2019, 02:45
The fault is in DirectShow itself, more than likely. You shouldn't be using DirectShowSource anyway - use FFMS2 or LSMASHSource. Make sure you're using the latest AviSynth+ (http://avisynth.nl/index.php/AviSynth%2B). Explicitly use sync_audio=true when using AssumeFPS.

Julio C
2nd May 2019, 04:52
I tried using FFMS2 instead, but all I get is video and no audio at all. How do I get it to work?

StainlessS
2nd May 2019, 04:56
Probably will not help at all, but try add ResampleAudio

DirectShowSource("filename") # Or any alternative is better as qyot27 said.
ORG=Last
AssumeFPS(24, sync_audio=true) # outputs non standard rate audio
ResampleAudio(ORG.Audiorate)

(clutching at straws, perhaps something is trying to match to a standard-ish audiorate)

EDIT:
but all I get is video and no audio

You tried FFAudioSource ?
http://avisynth.nl/index.php/FFmpegSource

Julio C
2nd May 2019, 06:03
Well looks like I figure out what the problem is.

Apparently when I upgraded to Windows 10, the first thing it did when I first log in was that Win7DSFilterTweaker_4_6 suddenly opened, and I ignored it. I opened it just now, and change the prefer decoders from Microsoft to LAV Video or FFDshow.

Using the same old script now works!

Thanks for helping out you guys.

qyot27
2nd May 2019, 06:16
I tried using FFMS2 instead, but all I get is video and no audio at all. How do I get it to work?

FFmpegSource2("filename",atrack=-1)

or

a=FFAudioSource("filename")
v=FFVideoSource("filename")
AudioDub(v,a)