1. The NF rules of conduct have been updated in response to the Xenforo upgrade. Please review them here.
  2. Please discuss and vote on the fate of the reputation system here.
  3. The forum medals contest is being extended for another month. Check this thread for more information.

Tutorial How to Get VDub to Recognize .mkv and Other File Formats Without Re-Encoding Them

Discussion in 'Art 101' started by Suzuku, Jul 14, 2011.

  1. Suzuku Well-Known Member

    Messages:
    36,042
    Likes Received:
    25
    Trophy Points:
    48
    After helping Louchan out with a few problems she was having with making gifs, I realized that there are probably a lot of people who just run .mp4/mkv files through GUI encoders to produce .avi files to get VDub to recognize them. Videos come out in poor quality and thus the gifs that are made from them are also of poor quality, all after spending possibly hours just to wait for the encode to finish. This process is time consuming and tedious, and only gives you grain-y gifs to produce.

    The goal of this thread is to help make the process of getting VDub to recognize your .mkv files not only faster and more streamlined, but also to allow you to produce .gifs that are of quality almost equal to the original file.

    Fo examples of this, here are Louchan's gifs from before and after she followed this walk-through. Before is on the left, after is on the right.

    XX

    XX

    Here are the 7 steps to do this.

    Optional: Just to keep this walk-through simple, download X from gg, if you haven't already (in which case shame on you, it's a FABULOUS show). Of course, you can use whatever file you want if you can keep up.

    1. Download X. The point of doing this is to make sure your computer set up is as close to mine as possible and that you don't have any settings out of wack or missing that will prevent VDub from recognizing your .avs file (more on that later).

    2. Download the program X. It's normally used for direct encoding (it's actually the program that fansubbers use), but for our purposes you don't have to worry about any of that. The program has no GUI so you won't see an icon or anything for it. It works in the background. Don't worry about that though, just know that it works.

    3. Open up a .txt file using notepad.

    4. Put this command in the .txt file: DirectShowSource("location of file")

    For instance, my command would look like this: DirectShowSource("C:\Users\Suzuku\Downloads\Otaku\Anime\Mawaru Penguindrum\[gg]_Mawaru_Penguindrum_-_01_[B8C345E7].mkv")

    5. Now save and close the .txt file. Just to keep the process close to mine, name the file penguidrum.txt.

    6. Convert the .txt into .avs. In case you don't know how to do this, just replace .txt with .avs in the file name, so the file should now be called penguindrum.avs. A warning will pop up saying "renaming file names could corrupt the file blahblahblah". Disregard it. The icon should now turn into a little paper with a filmstrip going over it, as opposed to the usual .txt icon.

    7. Now, open VDub, go to 'open file' as you usually do, open the .avs you just made, and voila, after a bit of loading all the frames should show up on VDub without you having to actually convert it. From here you can just do what you normally do.

    What avisynth does is fool programs like VDub into thinking files are .avi, so you don't have to waist time and quality converting files into different formats. Of course, it's a much more powerful program and can do a lot more amazing things with videos than what we're using it for here, but like I said, you need not worry about that unless you want to pick up learning how to encode in your spare time. Well, if you ever do want to learn how to encode, you'll have the foundation for it already set.

    Hope this helped.
     
    Last edited: Jul 14, 2011
  2. Destin Banned

    Messages:
    972
    Likes Received:
    0
    Trophy Points:
    0
    Another method I use to get VirtualDub to accept .mkv, .mp4, etc. is to download the "DShowInputDriver.vdplugin" file and paste it into the plugin folder of VirtualDub.

    X

    After that, I just open up VirtualDub, File, Open Video File, select the .mkv video or whatever and just open like usual. Now if for some reason it doesn't work, then you can always click on the "files of type" drop down arrow and select "DirectShow Input Driver", "type in "*.mkv" in the "file name" drop down box to show only the .mkv files and then select them that way. Though I think you should be able to open them like usual as I do.

    You can even use VirtualDub to make APNGs like I use by getting VDubAPNGMod (it accepts the plugin as well), but that's another lesson.
     
  3. Ai .

    Messages:
    14,077
    Likes Received:
    10
    Trophy Points:
    38
    Honestly you'd most likely be better off getting Avidemux.
     
  4. Suzuku Well-Known Member

    Messages:
    36,042
    Likes Received:
    25
    Trophy Points:
    48
    I use Adobe Media Encode now.
     

Share This Page