Can't open MKV files

This forum is for questions and discussion of all the aspects of handling and cleaning up your footage with Avisynth.
Locked
ELITEeNergizer
Joined: Sat Dec 31, 2011 1:48 am
Org Profile

Can't open MKV files

Post by ELITEeNergizer » Sat Dec 31, 2011 1:50 am

I've tried using FFMpegSource2("C:\file.mkv") as my script but windows media player is giving an error that it couldn't open the file I don't have the codecs. It works fine when I do FFAudioSource("C:\song.mp3") and Version(). I have CCP installed as well.

How can I open MKV files with AviSynth?

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: Can't open MKV files

Post by Mister Hatt » Tue Jan 03, 2012 5:07 am

FFVideoSource() for starters. Then depending on the codec inside the MKV, you'd have to know if your LAVC decoder can handle it or if it's being offset elsewhere, and if so what that other decoder is doing.

User avatar
Enigmo
Joined: Fri Oct 29, 2010 5:34 am
Location: London, United Kingdom
Contact:
Org Profile

Re: Can't open MKV files

Post by Enigmo » Wed Feb 15, 2012 1:24 pm

Use DirectShowSource.
Image Image

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

Re: Can't open MKV files

Post by mirkosp » Wed Feb 15, 2012 2:11 pm

EnIgMoZz2 wrote:Use DirectShowSource.
No, don't. It's not frame accurate. FFVideoSource is the better choice unless there is a more specific filter to better handle certain cases.
Image

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: Can't open MKV files

Post by Mister Hatt » Sun Feb 19, 2012 3:10 am

Has anyone setup the LAV filter decoders for use in avs yet? FFMS2 uses libav direct and DSS uses ffdshow, but I wonder how accurate it is with LAV filters? Probably not very, but I'd be interested in actual stats on that.

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

Re: Can't open MKV files

Post by mirkosp » Sun Feb 19, 2012 7:03 am

Mister Hatt wrote:DSS uses ffdshow
DSS/2 use whatever directshow is set to use, hence even LAV Filters or CoreAVC or whatever you have as default for DirectShow. They underlying issue is that DirectShow itself does not require frame accuracy when requesting a frame X and can give you X-1 or X+1, for example, which in turn means that LAV Filters can't be checked accurately with DSS/2 anyway.
Image

Mister Hatt
Joined: Tue Dec 25, 2007 8:26 am
Status: better than you
Contact:
Org Profile

Re: Can't open MKV files

Post by Mister Hatt » Sun Feb 19, 2012 9:06 am

I know that, my question was more if anyone had tried DSS and friends with LAV filters instead of ffdshow. A sane setup will always use, for the moment, ffdshow though.

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

Re: Can't open MKV files

Post by mirkosp » Sun Feb 19, 2012 1:27 pm

I did try but the issue is always the same, so that's the point.
Image

Locked

Return to “AviSynth Help”