Location for profiles in v.1.12.0

The place to discuss linux version of MakeMKV
Post Reply
Meister_Proper
Posts: 56
Joined: Mon Mar 07, 2016 8:27 pm

Location for profiles in v.1.12.0

Post by Meister_Proper » Mon Feb 12, 2018 12:45 pm

I'm using MakeMKV on a Ubuntu 16.04 VM on my Qnap NAS.

In the past I always copied my edited default.mmcp.xml file to "/usr/share/MakeMKV/" and it worked just fine.

However, after installing version v1.12.0 I'm getting an error that there are multiple default profiles upon start of MakeMKV. When I delete my default profile in "/usr/share/MakeMKV/" I dont get the message again. So it seems that makemkv changed the location for the profile with the latest version.
I already searched for the default profile on my VM but I couldn't find where it is stored.

Can anybody tell me the new location of the profiles?

Woodstock
Posts: 5651
Joined: Sun Jul 24, 2011 11:21 pm

Re: Location for profiles in v.1.12.0

Post by Woodstock » Mon Feb 12, 2018 3:22 pm

Your MakeMKV data directory is where you should put any files you have CHANGED. The original files can remain in the program directory.

You should NOT name a modified profile "default", because it will cause this error.
How to aid in finding the answer to your problem: https://www.makemkv.com/faq/item/8

Meister_Proper
Posts: 56
Joined: Mon Mar 07, 2016 8:27 pm

Re: Location for profiles in v.1.12.0

Post by Meister_Proper » Mon Feb 12, 2018 3:39 pm

Thanks :)
Not the answer I was hoping for as it worked flawlessly before ;)

I tried to rename the file itself and also the third line:

Code: Select all

<?xml version="1.0" encoding="utf-8"?>
<profile>
    <!-- profile name - Myprofile -->
    <name lang="mogz">:5086</name>
But I'm getting the same error. So I ended up just adding my profile manually via:

"-sel:all,+sel:(eng|nolang),-sel:core,-sel:havelossless,+sel:mvcvideo,-sel:subtitle*(all),+sel:(forced*(eng)),-sel:special"

Which might be the easiest way of them all, but somehow I wanted to complicate things^^

Woodstock
Posts: 5651
Joined: Sun Jul 24, 2011 11:21 pm

Re: Location for profiles in v.1.12.0

Post by Woodstock » Mon Feb 12, 2018 3:58 pm

Your profile isn't named "MyProfile" in your example, it's named ":5086", which may be invalid. What you want is:

Code: Select all

    <name lang="eng">MyProfile</name>
The important part is that the name in the <name> tag is unique among the profile files in the MakeMKV program and data directories. MakeMKV will search both during start-up.

Profiles that are invalid will generate error messages, and not be allowed in the pull-down. Duplicates lose out to originals, because the program directory is searched first.
How to aid in finding the answer to your problem: https://www.makemkv.com/faq/item/8

Meister_Proper
Posts: 56
Joined: Mon Mar 07, 2016 8:27 pm

Re: Location for profiles in v.1.12.0

Post by Meister_Proper » Tue Feb 13, 2018 11:20 am

Thansk, that make sense then although I find it wird that the name is 5086 when its displayed within Makemkv as "default".

Woodstock
Posts: 5651
Joined: Sun Jul 24, 2011 11:21 pm

Re: Location for profiles in v.1.12.0

Post by Woodstock » Tue Feb 13, 2018 3:09 pm

The leading colon, I believe, makes the name invalid, so it is likely that "default" is substituted.

But that's just a guess on my part, based on a lot of XML work. Mike would have the definitive answer.
How to aid in finding the answer to your problem: https://www.makemkv.com/faq/item/8

violaian
Posts: 4
Joined: Mon Jan 08, 2018 6:39 pm

Re: Location for profiles in v.1.12.0

Post by violaian » Thu Mar 08, 2018 4:08 am

probably way off topic here, but I don't see it anywhere else. Is this also the folder where the hashed keys go?

Woodstock
Posts: 5651
Joined: Sun Jul 24, 2011 11:21 pm

Re: Location for profiles in v.1.12.0

Post by Woodstock » Thu Mar 08, 2018 2:29 pm

Yes. All data files, such as profiles and keys, should be in the MakeMKV data directory.
How to aid in finding the answer to your problem: https://www.makemkv.com/faq/item/8

Reiver
Posts: 4
Joined: Wed Jul 26, 2017 8:45 am

Re: Location for profiles in v.1.12.0

Post by Reiver » Thu Mar 15, 2018 5:05 pm

The profile files included with MakeMKV 1.12.0 seem to have been put into a /usr/share/MakeMKV/appdata.tar archive for some reason. I've been patching flac.mmcp.xml to increase flac-fast compression level from 5 to 10 (while flac-best with compression level 12, with FFMpeg as used by MakeMKV, is not within the FLAC Subset format).

Should be possible to uncompress, edit and recompress except for an annoying filename beginning with a double hyphen that even when escaped tar tries to treat as a command line option...

anoy420
Posts: 6
Joined: Tue Mar 20, 2018 11:47 am

Re: Location for profiles in v.1.12.0

Post by anoy420 » Tue Mar 27, 2018 2:45 am

Reiver wrote:The profile files included with MakeMKV 1.12.0 seem to have been put into a /usr/share/MakeMKV/appdata.tar archive for some reason. I've been patching flac.mmcp.xml to increase flac-fast compression level from 5 to 10 (while flac-best with compression level 12, with FFMpeg as used by MakeMKV, is not within the FLAC Subset format).

Should be possible to uncompress, edit and recompress except for an annoying filename beginning with a double hyphen that even when escaped tar tries to treat as a command line option...
Can you share your custom xml file? Does it extract the lossless audio too?

Reiver
Posts: 4
Joined: Wed Jul 26, 2017 8:45 am

Re: Location for profiles in v.1.12.0

Post by Reiver » Tue Mar 27, 2018 1:55 pm

It's just changing the default flac.mmcp.xml file and setting compression_level for flac-fast to 10 at this section;

Code: Select all

<outputSettings name="flac-fast" outputFormat="FLAC">
        <description lang="eng">Save as FLAC (fast compression)</description>
        <extraArgs>-compression_level 10</extraArgs>
</outputSettings>
You can extract the flac.mmcp.xml from the appdata.tar, edit it and then (as tar files were originally for tapes and replacing data in the middle of a tape is difficult) update the tar file by appending the new flac.mmcp.xml which overrides the first flac.mmcp.xml file in the tar;

$ tar xf appdata.tar
$ vim flac.mmcp.xml
$ tar uf appdata.tar flac.mmcp.xml

The compression savings between levels 5 and 10 are small but encoding time is near the same while level 12 is not a FLAC subset meaning potential streaming and hardware decoding issues (if there are any actual FLAC hardware decoders).

anoy420
Posts: 6
Joined: Tue Mar 20, 2018 11:47 am

Re: Location for profiles in v.1.12.0

Post by anoy420 » Tue Mar 27, 2018 10:23 pm

Reiver wrote:It's just changing the default flac.mmcp.xml file and setting compression_level for flac-fast to 10 at this section;

Code: Select all

<outputSettings name="flac-fast" outputFormat="FLAC">
        <description lang="eng">Save as FLAC (fast compression)</description>
        <extraArgs>-compression_level 10</extraArgs>
</outputSettings>
You can extract the flac.mmcp.xml from the appdata.tar, edit it and then (as tar files were originally for tapes and replacing data in the middle of a tape is difficult) update the tar file by appending the new flac.mmcp.xml which overrides the first flac.mmcp.xml file in the tar;

$ tar xf appdata.tar
$ vim flac.mmcp.xml
$ tar uf appdata.tar flac.mmcp.xml

The compression savings between levels 5 and 10 are small but encoding time is near the same while level 12 is not a FLAC subset meaning potential streaming and hardware decoding issues (if there are any actual FLAC hardware decoders).
How do you even use it with the cli only anyway?

mike admin
Posts: 3455
Joined: Wed Nov 26, 2008 2:26 am
Contact:

Re: Location for profiles in v.1.12.0

Post by mike admin » Fri Apr 27, 2018 6:06 pm

Reiver wrote:You can extract the flac.mmcp.xml from the appdata.tar, edit it and then (as tar files were originally for tapes and replacing data in the middle of a tape is difficult) update the tar file by appending the new flac.mmcp.xml which overrides the first flac.mmcp.xml file in the tar;
No, don't put into tar file - make a custom name for profile and put it into MakeMKV data directory. This way it will survive re-installations.
anoy420 wrote:How do you even use it with the cli only anyway?

Code: Select all

--profile=/path/to/profile.mmcp.xm

Post Reply