AviSynth Doesn't Like MKV With Windows Media Video Codec?

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
User avatar
Angelyco
Joined: Fri Jun 29, 2007 11:29 pm
Status: =^.^=
Location: New York
Org Profile

AviSynth Doesn't Like MKV With Windows Media Video Codec?

Post by Angelyco » Fri Mar 19, 2010 7:43 pm

I'm trying to get a script together for some MKV files. The only line in my script right now is:

Code: Select all

FFMpegSource("I:\Anime\NANA Jap DVD\NANA DVD - 01.mkv")
I get the error "FFmpegSource: Could not open video codec" when I try to test it (preview in AsvP).

I checked the video on this MKV and it says Windows Media Video 9. This is the first time I've worked with something that wasn't H264, so I've never run into this problem before. Is there another plugin or something I can use with this MKV directly, or is my only option to demux all my files and convert all the video to another format?

Thank you!
ImageImage
ImageImage

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: AviSynth Doesn't Like MKV With Windows Media Video Codec?

Post by mirkosp » Sat Mar 20, 2010 4:37 am

I believe Nana is licensed in the US, so just use the DVDs, like you know that you should. :nono:
Image

User avatar
Angelyco
Joined: Fri Jun 29, 2007 11:29 pm
Status: =^.^=
Location: New York
Org Profile

Re: AviSynth Doesn't Like MKV With Windows Media Video Codec?

Post by Angelyco » Sat Mar 20, 2010 10:10 am

I actually do have the first two box sets, I haven't gotten the third yet, but I need the last few episodes of the series for a video I'm working on, and that box won't be out for a while yet. I bought the entire box set on eBay last year without realizing it was bootleg, and they're absolutely awful :?
ImageImage
ImageImage

User avatar
mirkosp
The Absolute Mudman
Joined: Mon Apr 24, 2006 6:24 am
Status: (」・ワ・)」(⊃・ワ・)⊃
Location: Gallarate (VA), Italy
Contact:
Org Profile

Re: AviSynth Doesn't Like MKV With Windows Media Video Codec?

Post by mirkosp » Sat Mar 20, 2010 10:30 am

Well... in that case try using DSS2 to load the mkv. Copy the avss.dll from C:\Program Files\Combined Community Codec Pack\Filters\Haali and paste it in C:\Program Files\AviSynth 2.5\plugins and it should work just fine.

Code: Select all

DSS2("I:\Anime\NANA Jap DVD\NANA DVD - 01.mkv")
Image

User avatar
Angelyco
Joined: Fri Jun 29, 2007 11:29 pm
Status: =^.^=
Location: New York
Org Profile

Re: AviSynth Doesn't Like MKV With Windows Media Video Codec?

Post by Angelyco » Sat Mar 20, 2010 12:55 pm

Thanks so much, it worked perfectly! You saved me a ton of work to convert it all.

That's why you're most helpful member :)
ImageImage
ImageImage

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: AviSynth Doesn't Like MKV With Windows Media Video Codec?

Post by Qyot27 » Sat Mar 20, 2010 9:00 pm

Just to clear up the first post:

Are you sure you're using FFmpegSource 1.21? I'm also not completely sure if VC1 support was fixed in 1.21 or whether you have to use the 2.x branch for those (in which case, you'd be using FFmpegSource2() or FFVideoSource() as the source filter).
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

User avatar
Angelyco
Joined: Fri Jun 29, 2007 11:29 pm
Status: =^.^=
Location: New York
Org Profile

Re: AviSynth Doesn't Like MKV With Windows Media Video Codec?

Post by Angelyco » Sat Mar 20, 2010 9:08 pm

I just checked the FFMS2.avsi plugin and it says FFmpegSource 1.21. I didn't know there was a newer version at all, I'll have to look into it.

Edit: I think I do have version 2 by looking at this plugin - the first line said 1.21 compatibility. I tried FFMpegSource2 though with the script and it gave me the same video codec error. The DSS2 works though.
ImageImage
ImageImage

User avatar
Qyot27
Surreptitious fluffy bunny
Joined: Fri Aug 30, 2002 12:08 pm
Status: Creepin' between the bullfrogs
Location: St. Pete, FL
Contact:
Org Profile

Re: AviSynth Doesn't Like MKV With Windows Media Video Codec?

Post by Qyot27 » Sun Mar 21, 2010 12:03 am

Yes, if you have FFMS2.avsi, then you have at least one of the 2.x versions (currently up to 2.13, or 2.14 as far as the Changelog on the SVN repo goes).

1.21 = ffmpegsource.dll
2.x series = ffms2.dll

The different names and different functions associated with them are why the two don't conflict with each other.
My profile on MyAnimeList | Quasistatic Regret: yeah, yeah, I finally got a blog

Locked

Return to “AviSynth Help”