Page 1 of 1

[SOLVED]Trouble playing .mkv files on 2.0.0

Posted: 19 Feb 2012 11:20
by TheVampireNeko
I'm running Ubuntu 10.10 and compiled VLC 2.0.0 from the source. It was my first time compiling something, so I can't be 100% certain that I made no mistakes. I was able to run ./configure with no errors if that helps.

When I try to open a .mkv file, VLC does nothing. I tried doing it with "messages" on and got this: "mkv error: cannot find KaxSegment or missing mandatory KaxInfo."

Does anyone here have any idea of what I can do to solve my problem?

Thank you in advance.

Re: Trouble playing .mkv files on 2.0.0

Posted: 19 Feb 2012 14:14
by Jean-Baptiste Kempf
Does it happen with all MKV?

Re: Trouble playing .mkv files on 2.0.0

Posted: 19 Feb 2012 14:42
by TheVampireNeko
Yes. I tried a few high resolution and low resolution files. All of the files worked on a previous version of VLC. They also work in another player. .avi files work just fine, so it seems to just be a problem with the .mkv format.

I turned the verbosity up to 1, and kept seeing this warning, along with the previous error:
"ps warning: this does not look like an MPEG PS stream, continuing anyway
ps warning: garbage at input, trying to resync...
ps warning: found sync code"

Re: Trouble playing .mkv files on 2.0.0

Posted: 19 Feb 2012 18:46
by TypX
Your g++ is too old. You have to upgrade it or modify mkv.hpp to revert a security commit.

Replace the #define MKV_IS_ID line by :
#define MKV_IS_ID( el, C ) ( EbmlId( (*el) ) == C::ClassInfos.GlobalId )
Then recompile.

Re: Trouble playing .mkv files on 2.0.0

Posted: 20 Feb 2012 15:58
by TheVampireNeko
I updated g++ to the newest version with no success, however, changing mkv.hpp worked. Thank you so much. I'll mark this as solved.