Thursday, June 12, 2014

How to make VirtualDub open/edit mkv, mp4, flv, mov and other file formats?


In order to open MP4 (and other video files) in VirtualDub you need a plugin called 'Virtualdub FFMpeg Input Plugin'. 

Installation:
Download the plug in and unzip it in VirtualDub's folder. The ZIP contains two folder one for Windows 32 bit and one for Windows 64 bits. You can delete the one that you don't need.
In my case, the plug in installed looks like this:

c:\Program Files\VirtualDub\plugins32\FFInputDriver.vdplugin
c:\Program Files\VirtualDub\plugins32\ffdlls\avcodec-55.dll
c:\Program Files\VirtualDub\plugins32\ffdlls\avformat-55.dll
c:\Program Files\VirtualDub\plugins32\ffdlls\avutil-52.dll
c:\Program Files\VirtualDub\plugins32\ffdlls\swscale-2.dll

This  plugin is freeware and open source.
And yes, it also works with H264 (H264 MPEG-4 AVC) movies. Enjoy :)


Update 2018

A video editor that has EMBEDDED (yes, no codec needed) support for MP4 is AviDemux.

Avidemux is a free video editor designed for simple cutting, filtering and encoding tasks. It supports many file types, including AVI, DVD compatible MPEG files, MP4 and ASF, using a variety of codecs.

It is not quite as sophisticated as VirtualDub but is definitively much more easier to use. I use it mainly to crop movies, and as I said it works with many popular formats, right out of the box.






Video related tools:

 
Places an animated video/GIF file directly on your desktop.

73 comments:

  1. Awesome. Now I can deshake the shaky home movies w/o going through hoops and loops. Thank you.

    ReplyDelete
  2. Hi Anonymous. Do you have a preferred de-shaking program? I have tried a couple but none of them was great.

    Candidates:

    Microsoft announced a research in this direction. They showed a VERY interesting demo. Very advanced stuff!! Here is the demo: http://www.premiumbeat.com/blog/microsoft-unveils-their-own-hyperlapse-warp-stabilizer/

    There is also a thing called 'Deshaker plugin filter from VirtualDub' that I didn't had the time to try yet.

    ReplyDelete
  3. This work with VirtualDubMod too?

    ReplyDelete
  4. does virtualdub works on windows 10?
    i am having problems. these codecs does not work in win10

    ReplyDelete
    Replies
    1. Then the problem is with the codecs not with Virtual Dub. Some people reported problems with Virtual Dub on Win 10 although it should work.

      "ffdshow VFW *does* work with VirtualDub in Windows 10, but it seems that some specific formats are not working. Interestingly they are working for encoding. I wonder if it might have to do with increased BITMAPINFOHEADER validation in the API -- some video codecs do some not quite kosher things with the format structures.

      No on DirectShow. It's not designed for or suited to editing and tends to be unstable for anything other than streaming playback. I spent a lot of time working on a DirectShow input plugin, and there were lots of problems with decoders that didn't come close to doing precise seeking and had unstable buffering characteristics. The plugin's available if you want to try it, but it tends to have issues if you do edits. My assessment was that in order to get stable editing on top of DirectShow it would be necessary to rewrite the entire application including completely redoing both the audio and video filtering systems from fetch-based to stream-based. That's not going to happen.

      Also, try doing a clean start. Easiest way to do this is to create a shortcut to to the program and add /portable to the command-line, and then try launching from the shortcut. This will create a file called VirtualDub.ini that you can delete afterward."

      Delete
    2. Can you explain how to do that command-line addition? The part you say to add /portable. Thank you.

      Delete
    3. @Matias - This is not strictly related to Virtual dub. Just do a google search about how to create a shortcut to a program. Basically you right click the program and choose 'properties'. It is VERY easy to do it,

      Delete
    4. I thought you were describing something else, yes a shortcut is easy to make, that is how I run the program anyway because it didn't come with an installer, just a zip folder.

      But on windows 10 it's not working, I already tried several workarounds to fix the AVC1 error message with no luck. THanks

      Delete
  5. I downloaded and unzipped the file into the Virtualdub folder and I still can't load .mp4 files. I keep getting "unsupported" errors.

    ReplyDelete
    Replies
    1. Looks like you didn't installed the plugin properly.

      Delete
    2. Same thing here and I follow this post's instructions and watched videos etc. but didn't work. So I'm not sure what's the right way to do it, as it is simply unzipping.

      Delete
    3. Is not enough to 'simply' unzip it. You have to unzip it in the correct folder.

      Delete
    4. That's what I did. And what I meant was that there's not a complex installation, hence "simply unzipping". Anyway, I gave up and I'm using another software so I don't need to install it now.

      Delete
    5. The folder you gave didn't work for me(I'm using the portableapps version), but I browsed the subfolders and found VirtualDubPortable\App\VirtualDub\plugins32. Putting the files there worked. Thanks.

      Delete
    6. You need to have a h264 decoder installed on your system.

      Delete
  6. Update:
    A new version of VirtualDub and FFMpeg plugin is out. I tried them and work nice together.
    Even more, I switched from DivX to H.264. Here is the tutorial: http://www.wcreplays.com/forums/showthread.php?t=113891
    The tutorial is good but probably you don't need the Lame MP3 encoder.

    ReplyDelete
  7. Hi so finally i have found plugin that let me load this stupid mp4 files from my gopro camera to the virtualdub ,but i can not use direct stream copy mode and that was the only reason why i like vdub so am i missing something ?

    ReplyDelete
  8. Nice plugin i can load and watch my mp4 files to the vdub but thats pretty much it :). I use vdub for one simple reason and that is trim my videos and save them using direct stream copy so quality stay the same but it doesnt work :(

    ReplyDelete
    Replies
    1. "it doesn't work" is not quite a technical term. You need to provide some details about the "it doesn't work" thingy :)

      Delete
  9. When I try to save mp4 file by pressing F7 I have the following error message: "The source video stream uses a compression algorithm which is not compatible with AVI files. Direct stream copy cannot be used with this video stream".

    ReplyDelete
    Replies
    1. You have to set

      Video --> "Full Processing Mode"

      Delete
  10. Hi! Do you know how to add subtitle filter for virtualdub? I tried the textsub and the subtitler and both doesn't work.

    ReplyDelete
    Replies
    1. "it doesn't work" is not quite a technical term. You need to provide some details about the "it doesn't work" thingy :)

      Delete
  11. Hi, just want to say THANK YOU! I got it to work on Windows 10. I didn't have any trouble opening the files in Windows 7 but the same files wouldn't open in Windows 10. Thanks to your post, I was able to get it working. Thank you so much!

    ReplyDelete
  12. The plugin provided has extension ".vdplugin", but VirtualDub plugin readme (1.10.4) says "Filter plugins (*.vdf) placed here are automatically loaded". I changed the extension to .vdf but without success, I cant see this plugin in VD plugin list.

    ReplyDelete
  13. Change it back to .vdplugin because they are loaded too.

    ReplyDelete
  14. (sorry my english bad) Thx my friend :) Virtualdub mkv file open and section save (sample: 00:01:30 - 00:01:45) but blank screen (black screen text: missing codec)

    movie Screen not see but other jobs Works :)

    Pls help me ? movie screen see Works ?

    ReplyDelete
  15. Hi there! As I followed these instructions, I realized when I installed VirtualDub it didn't create a folder for the program in Program Files (or x86). I was wondering I can create a folder for it instead - but would that work in order to achieve opening MP4 files on VD as well?

    ReplyDelete
    Replies
    1. Yes. You can create the folder manually. It will work!

      Delete
  16. Hi all: Please take a look at this program: http://www.bionixwallpaper.com

    ReplyDelete
  17. The final trick to open MP4 files in VirtualDub is to FIRST select "FFMpeg Supported Files" as file type in the Open Video File dialog and then choose the input file. Avoid to use "All types" as file type.

    This way assures that the necessary plugin is correctly installed.

    ReplyDelete
    Replies
    1. This is more to confirm that the plugin is installed and MP4 files are supported. Otherwise, if you try to open a MP4 file and the plugin is not installed Virtual Dub will tell you.

      Delete
    2. Finally, working now with that simple trick. Thank you so much @Bernd

      Delete
  18. Have no idea how to unzip I have virtualdub opened and the file opened and I have no idea what I am doing from there how does one unzip this and I need exact locations I have been trying to figure this out for almost a day now ty

    ReplyDelete
    Replies
    1. This is one of the most basic PC operations. You should know this, otherwise you should not mess with more 'complex' things such as installing plugins in Virtual Dub. Try to ask a friend that is more PC savvy to install it for you. Don't forget to give him a beer.
      http://windows.microsoft.com/en-us/windows/compress-uncompress-files-zip-files#1TC=windows-7

      Delete
  19. I just discovered this virtualdub, so nice.

    ReplyDelete
  20. Title = crash after load for FFMpeg plugins for file mp4

    I got crash the crash prompt says "an exception occured in module `kernel32`

    Pls help

    ReplyDelete
    Replies
    1. Hi. With this information NOBODY can help you. The information is not sufficient. You need to provide full bug report.

      Delete
  21. hi, using win xp, when i tried to open .mp4 video( taken from dashcam) the following error shows " An exception occurred in module 'kernel32'.

    how to send full crash report? as when copied the entire report from note pad there is a alert says "Your HTML cannot be accepted: Must be at most 4,096 characters"

    ReplyDelete
  22. I never realized codec dll's could be incorporated directly into the vdub filters directory this way. Doh! Is that set up specifically that way to work with this plugin? Also Guru, what are your thoughts on getting rid of the DirectShow input filter completely?

    ReplyDelete
    Replies
    1. I am not sure I understand the question. Anyway all plugins must be installed in the 'Plugins' folder.

      Delete
  23. I have installed but can not get the mondified file type drop down or open files.

    I am running Windows 10.
    My VirtualDub is in this path: C:\Users\VRX\Downloads\VirtualDub

    The VirtualDub version is 1.9.11
    I simply selected the plug in folder from the zip and drug it into the VirtualDub plugins folder.
    I did the same drag and drop for the other file.

    I have the dll files in the folder: C:\Users\VRX\Downloads\VirtualDub\plugins\ffdlls
    I have the FFInputDriver_64.vdplugin file in the folder: C:\Users\VRX\Downloads\VirtualDub\plugins

    When I run VirtualDub and start the open file dialog. I look for the "FFMpeg Supported Files" in the file type drop down list and do not see it.

    However in the plug in folder the read me referres to a "*.vdf" as extention file typs which is not the extension of: "FFInputDriver_64.vdplugin".


    When I select an MP4 file I still get the unknown or unsupported file type error.

    Not sure what to try next.

    ReplyDelete
    Replies
    1. I have Win64 but I have Virtual Dub 32 bit (I am too lazy to upgrade).
      In my case the plugin is here and it works:
      c:\Program Files (x86)\VirtualDub\plugins32\FFInputDriver.vdplugin

      Delete
    2. So, you need to put your 64 bits plugin in 'plugins64' folder.

      Delete
  24. I am trying to split 3G video from the middle of a 10G avi file.
    The output is a huge avi file 35G 7 minutes length only.

    Using portable virtualDub 1.10.5. not sure if this is a plugin issue or virtualdub one.

    Advice please?

    ReplyDelete
  25. I am trying to split 3G video from the middle of a 10G avi file.
    The output is a huge avi file 35G 7 minutes length only.

    Using portable virtualDub 1.10.5. not sure if this is a plugin issue or virtualdub one.

    Advice please?

    ReplyDelete
    Replies
    1. It seems your movie is uncompressed. You forgot to chose a compressor (codec). You need to install a codec like DivX, XVid, H246 then select it in Virtual Dub (under the 'video - > compression' menu).

      Delete
  26. I do not see the "FFMpeg Supported Files" as file type in the Open Video File dialog. I have installed the plug in and unzipped it in VirtualDub's folder as follows:

    c:\Program Files\VirtualDub-1.10.4\plugins64\FFInputDriver_64.vdplugin
    c:\Program Files\VirtualDub-1.10.4\plugins64\ffdlls\avcodec-57.dll
    c:\Program Files\VirtualDub-1.10.4\plugins64\ffdlls\avformat-57.dll
    c:\Program Files\VirtualDub-1.10.4\plugins64\ffdlls\avutil-55.dll
    c:\Program Files\VirtualDub-1.10.4\plugins64\ffdlls\swscale-4.dll

    Can you tell me why this is not working? (I am using Windows 10)

    ReplyDelete
  27. Actually the folder I downloaded is named: VirtualdubFFMpegPlugin_1847_X86_X64 and it has both plugins32 and plugins34. I just deleted the plugins32 folder because I am on a 64bit OS (Windows 10).

    ReplyDelete
  28. Hello! Another case of "an exception occured in module `kernel32`" error regarding FFMpeg plugin(WinXP,32). Sending the crash report, as previously suggested, split in two (so it can be accepted by the platform). I would appreciate any help.

    ReplyDelete
  29. Built on Althena on Sun Oct 27 15:59:07 2013 using compiler version 1400

    Windows 5.1 (Windows XP x86 build 2600) [Service Pack 3]
    Memory status: virtual free 1986M/2048M, commit limit 2485M, physical total 2039M

    EAX = 0013fafc
    EBX = 0141f8d4
    ECX = 00000000
    EDX = 00000001
    EBP = 0013fb4c
    ESI = 0013fbb0
    EDI = 00000000
    ESP = 0013faf8
    EIP = 7c812aeb
    EFLAGS = 00200202
    FPUCW = ffff027f
    FPUTW = ffffffff

    Crash reason: unknown exception 0xc06d007e

    Crash context:
    An exception occurred in module 'kernel32'.

    Pointer dumps:

    EAX 0013faf8: 00000000 c06d007e 00000000 00000000 7c812aeb 00000001 0013fb70 00000000
    EBX 0141f8d0: 00000000 00000001 0002e840 000379b4 00032928 0002f99c 0002ff0c 00000000
    ESI 0013fbb0: 7c91e4f4 0013fb90 013f873b 0019c1e8 00c2ac48 00000000 00000000 0019a880
    ESP 0013faf8: 00000000 c06d007e 00000000 00000000 7c812aeb 00000001 0013fb70 00000000
    0013fb18: 00000000 00000000 00000000 0013faec 7c80e13f 0013fbd0 7c839ac0 7c80e0e8
    0013fb38: ffffffff 7c801bfa 7c801d72 7ffdfc00 00000000 0013fba0 01415c25 c06d007e
    0013fb58: 00000000 00000001 0013fbac 0019c1e8 7c80ac9f 0019a880 00000024 0141f8d4
    EBP 0013fb48: 00000000 0013fba0 01415c25 c06d007e 00000000 00000001 0013fbac 0019c1e8
    0013fb68: 7c80ac9f 0019a880 00000024 0141f8d4 01422934 0141e840 00000001 0141fbea
    0013fb88: 00000000 00000000 0000007f 0141ff0c 00000003 00000000 0013fc70 01415898
    0013fba8: 014279b4 0013fb70 7c91e4f4 0013fb90 013f873b 0019c1e8 00c2ac48 00000000

    Thread call stack:
    7c812aeb: kernel32!RaiseException [7c800000+12a99+52]
    7c812aeb: kernel32!RaiseException [7c800000+12a99+52]
    7c80e13f: kernel32!DuplicateHandle [7c800000+de8e+2b1]
    7c801bfa: kernel32!LoadLibraryExW [7c800000+1af5+105]
    7c801d72: kernel32!LoadLibraryExA [7c800000+1d53+1f]
    01415c25: FFInputDriver!VDGetPluginInfo [013f0000+3bf0+22035]
    01415898: FFInputDriver!VDGetPluginInfo [013f0000+3bf0+21ca8]
    013f873b: FFInputDriver!VDGetPluginInfo [013f0000+3bf0+4b4b]
    013fb8ab: FFInputDriver!VDGetPluginInfo [013f0000+3bf0+7cbb]
    004f2135: VDInputDriverPlugin::CreateInputFile()
    004762ed: VDProject::Open()
    005210cc: VDAutoLogger::VDAutoLogger()
    00461edc: OpenAVI()
    0047f6f1: VDProjectUI::MenuHit()
    7e399488: USER32!GetWindowLongA [7e390000+945d+2b]
    7e3a8d8b: USER32!DefWindowProcW [7e390000+18d20+6b]
    0048de10: VDUIFrame::DefProc()
    00480e93: _catch$?MainWndProc@VDProjectUI@@IAEJIIJ@Z$0()
    7e399488: USER32!GetWindowLongA [7e390000+945d+2b]
    00477090: VDProjectUI::WndProc()
    0048e525: VDUIFrame::StaticWndProc()
    7e398734: USER32!GetDC [7e390000+86c7+6d]
    7e398816: USER32!GetDC [7e390000+86c7+14f]
    7e3989cd: USER32!GetWindowLongW [7e390000+88a6+127]
    7e3aa43b: USER32!PeekMessageA [7e390000+1a340+fb]
    7e3996c7: USER32!DispatchMessageA [7e390000+96b8+f]
    00460736: WinMain@16()
    005fc456: __tmainCRTStartup()
    7c817067: kernel32!RegisterWaitForInputIdle [7c800000+1701e+49]

    -- End of report

    ReplyDelete
    Replies
    1. The 'epicenter' of the error is the FFD Show coded.
      You should report this to the Virtual Dub author but more important to the FFDShow author. Note that no update for ffdshow was released in over 1 year.

      Delete
  30. Can someone suggest me of any Free* or Cheap* Video Maker Software for making Youtube videos. I am a Beginner and i have not found any which does not print their Logo or Banner in the video.

    ReplyDelete
  31. This comment has been removed by the author.

    ReplyDelete
  32. I remember using Virtualdub or maybe called VirtualdubMod back in the day, and when it worked, it produced clean and perfect files. Sometimes if the video was weird it might crash, but eh.

    I'm about to install the 'newer?' x64 and this plugin. I've been reading that taking a compressed file and stretching it out with Lagarith lossless is the way to go to load up a clean file into Sony Vegas. Unfortunately, my current project was an .mp4 that I just threw into Vegas. It's holding but a little glitchy. I don't want to start all over again so, oh well.

    Next time i'm going clean.

    Besides the Lagarith codec, do I need to load up any codec pack for windows 10, or are most the codes sortof included and good to go? Also, does it sound like I'm on the right track with what I said above?

    ReplyDelete
  33. Thank you so much! you're a lifesaver

    ReplyDelete
  34. My purpose is to extract portion of MP4 and save it as MP4 without re-encoding. This plugin can't serve that purpose. It opens MP4 but there is no option to save as MP4.

    ReplyDelete
    Replies
    1. Open MP4 movie, crop AT KEY FRAME, save cropped movie as AVI, rename AVI to MP4.

      Delete
  35. Thankssssssss!!!!!!! finally!!!

    ReplyDelete
  36. Thankssssssssssss!! finally!!!!!!!!!!!

    ReplyDelete
  37. iDealshare VideoGo can convert VirtualDub exported files to mp4 or convert various video files to VirtualDub more supported video format

    ReplyDelete