Serving MKV files without transcoding to Android device

Help
Kaya Saman
2013-10-14
2013-10-15
  • Kaya Saman
    Kaya Saman
    2013-10-14

    Hi,

    I'm running MediaTomb 0.12.1_11 on FreeBSD 8.3 RELEASE x64 and everything works except MKV files....

    So far I have added:

    [code]

    <mappings>
      <extension-mimetype ignore-unknown="no">
        <map from="mp3" to="audio/mpeg"/>
        <map from="ogg" to="application/ogg"/>
        <map from="mpg" to="video/mpeg"/>
        <map from="mpeg" to="video/mpeg"/>
        <map from="vob" to="video/mpeg"/>
        <map from="vro" to="video/mpeg"/>
        <map from="m2ts" to="video/avc"/>
        <map from="mts" to="video/avc"/>
        <map from="asf" to="video/x-ms-asf"/>
        <map from="asx" to="video/x-ms-asf"/>
        <map from="wma" to="audio/x-ms-wma"/>
        <map from="wax" to="audio/x-ms-wax"/>
        <map from="wmv" to="video/x-ms-wmv"/>
        <map from="wvx" to="video/x-ms-wvx"/>
        <map from="wm" to="video/x-ms-wm"/>
        <map from="wmx" to="video/x-ms-wmx"/>
        <map from="m3u" to="audio/x-mpegurl"/>
        <map from="pls" to="audio/x-scpls"/>
        <map from="mkv" to="video/x-matroska"/>
        <map from="flv" to="video/x-flv"/><!-- Uncomment the line below for PS3 divx support --><!-- <map from="avi" to="video/divx"/> --><!-- Uncomment the line below for D-Link DSM / ZyXEL DMA-1000 --><!-- <map from="avi" to="video/avi"/> -->
      </extension-mimetype>
    
      <mimetype-contenttype>
        <treat mimetype="audio/mpeg" as="mp3"/>
        <treat mimetype="application/ogg" as="ogg"/>
        <treat mimetype="audio/x-flac" as="flac"/>
        <treat mimetype="image/jpeg" as="jpg"/>
        <treat mimetype="audio/x-mpegurl" as="playlist"/>
        <treat mimetype="audio/x-scpls" as="playlist"/>
        <treat mimetype="audio/x-wav" as="pcm"/>
        <treat mimetype="video/x-msvideo" as="avi"/>
        <treat mimetype="video/mkv" as="x-matroska"/>
      </mimetype-contenttype>
    

    [/code]

    To my config.xml file...

    All transcoding is turned off in the sections below.

    I am trying to play the files on an HTC One Android cell.... I have BubbleUPnP installed which sees the files however, unlike mp4 or avi, mpeg etc... doesn't seem to be able to associate the .mkv extension with the known mime type??

    To render I'm using MX Player which manages to play "most" common audio/video files with direct rendering and acceleration from the phones GPU.

    Clicking on the mkv file doesn't do anything at all from the phone side... in BubbleUPnP.

    I'm not sure where the issue lies, if my MediaTomb config is wrong or if it's phone side? That BubbleUPnP can't handle mkv videos?

    Could anyone lend some advice?

    Thanks.

     

    Related

    Code: code

  • Kaya Saman
    Kaya Saman
    2013-10-15

    Ok I figured out the issue....

    seems that one has to remove and re-add the share in the MediaTomb web UI in order to get the new MIME types recognized.

    I have put a "timed" auto scan to hopefully rectify the issue with other folders and in addition automatically add new files to the shares.