#164 M2TS Recognition Problems: Incorrect DLNA_PN and MIME values


I am using MiniDLNA 1.0.25 on ReadyNas Duo with firmware RAIDiator 4.1.10.

For the M2TS files that I have, it seems MiniDLNA is putting incorrect values in the DETAILS table for DLNA_PN and MIME columns.

Analyzing the sqlite3 database file shows DLNA_PN=\"\" and MIME=\"video/mpeg\" for my M2TS files.

On my Sony BDP-S590 player, I see these files as MPEG files. When trying to play the files, the Sony BDP-S590 complains that the files are corrupt.

I created these M2TS files by using tsMuxer to convert MKV files to M2TS.

I did find a workaround this issue. To fix this issue, I manually update the sqlite3 database with the following command:

update details set dlna_pn=\"AVC_TS_MP_SD_AC3_T\", mime=\"video/vnd.dlna.mpeg-tts\" where path like \"%.%M2TS\"

My Sony BDP-S590 player is now able to play these M2TS files.

I guess I\'m hoping there will be a fix for this so that no sqlite updates are required. Cheers!


  • Marvelous Joe

    Marvelous Joe - 2012-12-07

    Just another piece of info. I used multiple PERIODS in the file names for these M2TS.

    For example: My.Video.1080p.m2ts

    So maybe there is string matching problem.

  • Marvelous Joe

    Marvelous Joe - 2012-12-07

    Ok, I did some tests in regards to the possibility that have multiple periods in a file name may be the issue, but to no avail. The issue still remained. So multiple PERIODS are not the issue.

    For example:
    changing My.Video.1080p.m2ts to My_Video_1080p.m2ts did not fix the issue

  • Marvelous Joe

    Marvelous Joe - 2012-12-09
    • priority: 5 --> 9
  • Marvelous Joe

    Marvelous Joe - 2012-12-12

    After some more tests: if the M2TS file uses AC3 audio, MiniDLNA has no problems recognizing it as a M2TS file.

    If you look at the value of DLNA_PN="AVC_TS_MP_SD_AC3_T", you see the AC3 part. I'm not sure if this is a DLNA standard value or just something MiniDLNA uses internally. It appears to be a DLNA standard value.

    So if your M2TS has audio in another format like DTS or AAC, then MiniDLNA won't recognize your file mime-type as M2TS. And hence, it resorts to plain MPEG.

    Is this a DLNA spec protocol?

  • Marvelous Joe

    Marvelous Joe - 2012-12-16

    Just another update. The sqlite update command doesn't require a value DLNA_PN to be set. Just the mime-type needs to be set properly.

    So, new update command is:

    update details set dlna_pn="", mime="video/vnd.dlna.mpeg-tts" where path like \"%.M2TS\"

    I'm guessing this suggests that MiniDLNA should default to setting the mime value for M2TS files to "video/vnd.dlna.mpeg-tts" instead of "video/mpeg" even if it doesn't recognize the audio codec.


Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:

No, thanks