VideoHelp Forum




+ Reply to Thread
Results 1 to 4 of 4
  1. Member
    Join Date
    Feb 2013
    Location
    Slovenia
    Search Comp PM
    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:

    Code:
    DirectShowSource("C:\Users\ADAM\Desktop\Katanagatari.EP01(BD.720p.FLAC).mkv")
    Then I opened it up in VirtualDub - it successfuly opened up without any problems. Then I wanted to remove the
    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:

    Code:
    Avisynth open failure:
    Evaluate: System exception - Access Violation
    (C:\Users\ADAM\Desktop\Katanagatari.avs, line 1)
    I have no idea what's wrong. The only difference I made is removed the subtitle stream using MKVmerge. Please help!
    (Note: I also tried using VirtualDubMod but that doesn't seem to load the video successfuly and always gives me errors)
    Last edited by CryADsisAM; 20th Feb 2013 at 07:26.
    Quote Quote  
  2. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    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:

    Code:
    FFmpegSource2("Katanagatari.EP01(BD.720p.FLAC).mkv",atrack=-1,fpsnum=-1,fpsden=1)
    The first time you open the file it builds an index, so be patient. Subsequent viewings are fast.

    If you actually do want subs, use Textsub, which you can get from http://avisynth.org/warpenterprises/
    Quote Quote  
  3. Member
    Join Date
    Feb 2013
    Location
    Slovenia
    Search Comp PM
    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.
    Quote Quote  
  4. Member AlanHK's Avatar
    Join Date
    Apr 2006
    Location
    Hong Kong
    Search Comp PM
    Originally Posted by CryADsisAM View Post
    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.
    It's all explained in the documentation.
    "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"
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!