1. Due to an update, many default preferences have changed.

    If you have any issues, such as unrequested email notifications or following threads you didn't want to follow, then check your setting here.
  2. Stop Scrolling! We changed our address to narutoforums.org

    Please add the URL to bookmarks on your PC and phone.

    More details can be found here. Feel free to ask any question.
  3. Give your waifu the ultimate gift - being crowned the most popular waifu on NF by helping her win in Senjou’s “NF Waifu Popilarity Contest”

    Feeling extra confident? You can now bet on your Waifu as well for fun forum prizes here

    Come on with everything your waifu does for, you should do this for your waifu.
  4. Impending Naruto Avenue Reorganisation!

    Want to learn more? Wish to chime in? Click here.
  5. Avatar upgrade for members!
    All normal members can now have 175x250 avatars.
    Read more about it here.
  6. "Are you a Messi or Ronaldo fanboy? Come and nominate them and more of your favorite players in NF's UEFA Champions League Awards!

    If your nominees win, you could win points for cool forum prizes!

    Click here to play :) .
  7. The latest NF Newsletter is out (October), read it here

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,145
    Likes Received:
    32
    Trophy Points:
    49
    Reputation:
    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.





    Here are the 7 steps to do this.

    Optional: Just to keep this walk-through simple, download 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 . 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 . 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
    Reputation:
    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.



    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. Milk ミルク

    Messages:
    17,088
    Likes Received:
    119
    Trophy Points:
    64
    Honestly you'd most likely be better off getting Avidemux.
     
  4. Suzuku Well-Known Member

    Messages:
    36,145
    Likes Received:
    32
    Trophy Points:
    49
    Reputation:
    I use Adobe Media Encode now.
     

Share This Page