I use the video editing program Sony Vegas 7, the problem is that when I import files in mp4 or mkv format they don't work. Either the program says that the media is offline, therefore I can't use it, or it won't be imported at all. I'm able to watch these files in my media players, thanks to the codec:es I've downloaded, but I can't edit them. Does anyone of you know what's causing this? Is there someway to fix it? I've tried on my own but it hasn't worked... I would be very grateful if you could help me with this.

Well, I actually suck at this kind of things, but I'll try to answer. I'll tell you what I do in this case. You'll need avisynth and VirtualDub. You can download both of this here: http://www.animemusicvideos.org/members/files.php, they're in AMVapp. Make sure to download this package, it's very useful. And you might also need, Haali Media Splitter(a.k.a. MatroskaSplitter. Download here: http://haali.su/mkv/). Install those programs and then here's what you need to do: create a new avisynth script, by pressing right button on the desktop and choosing New>avisynth script, open it and write this: DSS2("put here the location of your file(e.g. C:), then this symbol "\"and then the name of your file")ConvertToRGB24

So if I have an mkv file named anime, located on D disk, then I would write like this DSS2("D:\anime.mkv"). Then you can import this file to VirtualDub. The go to Video>Compression and choose any codec you like. I think Lagarith should do(you can find this codec in AMVapp), but if not use another one... Personally I use Premiere and After Effects and I cna import avisynth scripts directly into those programs, cause I installed PremiereAVSPlugin(Also from AMVapp). Then press F7 to export your file form VirtualDub and you can start editing. You cna also working a bit on your file inside of VirtualDub to get it ready for editing even better(adjusting frame size, frame rate, etc.), but I don't really know it well. I'm sure there are lots of tuts on this site about all of this.

I think that's it. Hope this will be helpful, if any questions, feel free to ask. But use PM. Thanks for attention, bye.

Thank you for your help so far. I'm really sorry to bother you again, but I've tried so many times to write a script and import it into VirtualDub but it just doesn't work for me. I've tried AikiNick102's way of writing a script, and I've also tried to follow the other guides you've linked to. It's very annoying since I don't know what I'm doing wrong, when I think I've made the script in the right way, and try to import it into VirtualDub, the program says there's an script error, syntax error for example. What should I do? Should I import an episode into the program or just write a script? I'm so confused right now.

Thank you for wanting to help me, I appreciate it.First I tried AikiNick102 method, and I wrote a script like this:DSS2"C:\Documents and Settings\Ägaren\Mina dokument\Anime, serier och filmer\One piece\[VP-Raw]_One_Piece_Movie_8_(x264_720x480)")ConvertToRGB24

When I open one of my mp4 files into the program, it looks like this:DirectShowSource("C:\Documents and Settings\Ägaren\Mina dokument\Anime, serier och filmer\One piece\ONE PIECE 377.mp4")

I downloaded ffmpegsource, since someone here recommended it. I put it in Avisynth's plugins folder, is that correct? When I tried to write a script again...:ffmpegsource("[C:\Documents and Settings\Ägaren\Mina dokument\Anime, serier och filmer\One piece\377].mp4")That didn't work either...VitualDub said: There's no function named "ffmpgsource"

I just want these files to work in VirtualDub, so that I can convert them. How should I write to make it work?

If you are using AvsP, then pressing F5 will make a preview for the video if you made the script correctly. Remember to add ConverttoRGB() at the end because most video editors use that colorspace instead of YV12. After making sure the script works, you should be able to open it in VirtualDub.

It didn't work unfortunately, maybe there's something wrong with my DirectShowSource? After I've tried to preview the video, the messege I get looks like this:

The message looks the same even if I don't add (ConverttoRGB)I do have CCCP installed on my computer, but maybe there's some settings I should change? I used the standard settings, but sometimes I've heard it good to change them somewhat to make it work the way you want it to.

The only thing that is wrong with the script is that you didn't put the ConverttoRGB on a seperate line. You also typed the script incorrectly, the words aren't suppose to be in the parenthesis. It's suppose to be like this.

DirectShowSource(put everything here)ConverttoRGB()

If it still doesn't work, check if you got the location of the file and the name of the file right. Also make sure that you have the latest version of CCCP installed.

I'm sorry, I forgot to translate the swedish part; It said "Couldn't find an object or a name"

Thanks for your tips, It seems that I had typed my filename incorrectly. At first it didn't work anyway, but then I reinstalled my CCCP, and it worked! I can preview the file in Avsp and import it into virtual dub! Thank you for your help!