I have VirtualDub 1.9.11 and AVISynth 2.5.8.
I wanted to convert a MKV file to an AVI file. So I created an AVS. It looks like this:
Then I opened it up in VirtualDub - it successfuly opened up without any problems. Then I wanted to remove theCode:DirectShowSource("C:\Users\ADAM\Desktop\Katanagatari.EP01(BD.720p.FLAC).mkv")
subtitle stream from the MKV but didn't know how to do that in VirtualDub.
So I opened the MKV file with MKVmerge and deselected the subtitle stream and so I created a new
MKV without subtitles. The new file was the same size as the original and there was no quality loss or anything
like that. It was the same as original.
Then I created a new AVS file for the new MKV file without subtitles. The code looks the same as the first one.
Then I opened the AVS in VirtualDub and gave me this error:
I have no idea what's wrong. The only difference I made is removed the subtitle stream using MKVmerge. Please help!Code:Avisynth open failure: Evaluate: System exception - Access Violation (C:\Users\ADAM\Desktop\Katanagatari.avs, line 1)
(Note: I also tried using VirtualDubMod but that doesn't seem to load the video successfuly and always gives me errors)
+ Reply to Thread
Results 1 to 4 of 4
Last edited by CryADsisAM; 20th Feb 2013 at 07:26.
VirtualDub isn't making the subtitles, it's whatever Windows uses to open the MKV, as Avisynth uses Windows codecs to display files when you use DirectShowSource.
Could be DirectVobSub.
You could configure that (turn it off) and see if the original AVS works.
However, I find it more reliable to use FFmpegSource2 instead of DirectShowSource.
That uses code from ffmpeg, as you might deduce, to open just about any file.
It ignores subs, only video and audio.
Get it from http://code.google.com/p/ffmpegsource/
Then you use this in the AVS:
If you actually do want subs, use Textsub, which you can get from http://avisynth.org/warpenterprises/
Thanks a lot. It appears to be working now.
I wondered first why this "atrack=-1,fpsnum=-1,fpsden=1" is needed but I soon noticed that the audio
doesn't work if I don't use it.
Last edited by CryADsisAM; 20th Feb 2013 at 08:02.
"atrack=-1" chooses the first available audio track. You can use 0, 1, 2, etc. if you have multiple tracks and want to choose which.
"fpsnum=-1,fpsden=1" set the frame rate; -1 is no change, so it can be omitted. But I find it useful to have in case I need to adjust it here.
e.g. if it's "25.0001" and should be 25, I do "fpsnum=25,fpsden=1"