MKV files won't play in MediaPortal (33 Viewers)

tanguy

Portal Member
January 28, 2005
33
1
Now i can watch mkv files with MP but i can't change audio track or subtitles.
Someone know how to do this ?
 

tanguy

Portal Member
January 28, 2005
33
1
In fact i can switch audio track but not subtitle. When i use the adequat item in osd it is empty...
Some help ?
 

xemumanic

Portal Pro
March 19, 2006
100
0
East Strondsburg PA
Home Country
United States of America United States of America
I was having some issues just now that I had to post about thatmay be related to this, and may even have more far-reaching implications. Now, as Commodore 64 said, I'm able to play dual audio MKVs, no matter the video codec (720p H.264 media seemed to be a particular suprise to him), but it seemed that this most recent SVNs, cause an issue with some MKVs, and even more 'normal' AVIs not to play.

I even noticed this to be completely random based on the file. I have an anime series that I havent completed watching on my file server, and its in dual audio MKV, with 2 subtitle 'tracks'. But caertain episodes would play, and then if I exited MP, and reran MP, different episodes would play from the ones that would, with no rhyme or reason. My solution was to clear the database by using the reset button in the configuration app. Just go into Movies, than Movie Database, and click the 'reset database' button.

This is a long shot, but try it out tanguy, and anyone else who finds they can't play mkvs even after installing VSFilter and Haali Media Splitter.
 

Commodore 64

Retired Team Member
  • Premium Supporter
  • June 20, 2005
    328
    1
    50
    Home Country
    United States of America United States of America
    Yes there does seem to be some issues still. I've got a Shrek 720p H264, MKV and I cannot get the subtitles to turn off no matter what settings I tweak.
     

    xemumanic

    Portal Pro
    March 19, 2006
    100
    0
    East Strondsburg PA
    Home Country
    United States of America United States of America
    It seems my 'solution' no longer works the way it did before. Now if I play a particular MKV, it'll only play once, no matter if I close MP and restart it, the MKV will only play one time, at which point I have to clear the database again.

    Inspection of the mediaportal.log shows some error with a database file.

    6/30/2006 2:50:08 PM OnMessage exception:confused:ystem.InvalidCastException: Unable to cast object of type 'MediaPortal.Dialogs.GUIDialogYesNo' to type 'MediaPortal.Dialogs.GUIDialogYesNo'.
    at MediaPortal.GUI.Video.GUIVideoFiles.PlayMovieFromPlayList(Boolean askForResumeMovie, Int32 iMovieIndex)
    at MediaPortal.GUI.Video.GUIVideoFiles.OnClick(Int32 iItem)
    at MediaPortal.GUI.Video.GUIVideoBaseWindow.OnClicked(Int32 controlId, GUIControl control, ActionType actionType)
    at MediaPortal.GUI.Library.GUIWindow.OnMessage(GUIMessage message)

    Seems it has to do with the resuming dialog box, which isnt showing up anyway.

    EDIT: Nevermind, I was told on IRC: "just delete the dialogs.dll from MP root folder".
    I can confirm that works.
     

    HappyTalk

    Portal Pro
    July 16, 2006
    307
    8
    UK
    I had problems getting this to work. Others have hinted at how to get it working but lacking in clarity (IMHO). Here's how I got it working

    You will need to install haali matroska splitter http://haali.cs.msu.ru/mkv/ AND THEN run haali media splitter settings (which will be on start menu after the haali install) and set 'Options|Compatability|Autoload VS filter = yes'. IMPORTANT You MUST do that or MP WILL NOT even open Matroska files containing subtitles.

    You will also need to install VobSubFilter to see the subs from here http://www.free-codecs.com/download/DirectVobSub.htm

    I found I DID NOT need to install CoreAVC (which costs $10) But I have only tried mkv's containing a single sub (and single audio and video) But I am presuming it is the vobsub setting required for Haali that was the problem. One Bug in MP though is that the subs radio button defaults to on regardless of the setting in config, and it does not send this setting to the Vobsub filter when movie starts anyway. You can set the default value using radlight filter manager on 'DirectShow|DirectVobSub|misc|hide subtitles'. Also reassign # on remote from aspect ratio (available via menu anyway) back to subtitle as it should be in mp-config|remote|mapping makes this easier.

    For editing Matroska files this program seems to be the Neo http://www.bunkus.org/videotools/mkvtoolnix/ . You can easily merge avi's and subs into a matroska file so as MP works properly with subs. It doesn't re-encode anything as mkv is just a container format so it only takes a few mins to accomplish. If you merge in .srt subtitles it seems to pick the font up from the setting in the DirectVOBFilter settings (set using radlight filter manager) at playback time, if you merge idx/sub files it seems to ignore this setting? The MP font settings for subtitles in config|movies seems to be totally ignored.
     

    xemumanic

    Portal Pro
    March 19, 2006
    100
    0
    East Strondsburg PA
    Home Country
    United States of America United States of America
    The .srt has to be the same filename.srt. So if the file is ThisMovie.mkv or ThisMovie.avi, just rename the .srt to ThisMovie.srt. As long as you have VSFilter installed, it'll work properly.
     

    HappyTalk

    Portal Pro
    July 16, 2006
    307
    8
    UK
    I couldn't get .srt files to work in mediaportal at all, hence I merged them into the mkv container to get them to work as detailed in my prev post. Embedding subtitles into mkv containers was the only way I could get subs to work in mediaportal. I'd always avoided mkv's before doing this, now I think they rock!
     

    Users who are viewing this thread

    Top Bottom