Default output filename template using makemkvcon

Everything related to MakeMKV
Post Reply
Message
Author
rakorm
Posts: 4
Joined: Mon Jan 20, 2020 8:09 am

Default output filename template using makemkvcon

#1 Post by rakorm » Tue Jan 28, 2020 9:22 am

Is it possible to configure a default output filename for the commandline tool makemkvcon? I know, you can do that with the GUI-Version. How do I do that for makemkvcon?

Thanks and have a nice day :)

EDIT: Do I ask in the wrong forum?

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

Re: Default output filename template using makemkvcon

#2 Post by Woodstock » Fri Jan 31, 2020 3:22 pm

No, it's not a case of "the wrong forum", but more a case of not many people know the answer.

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

Re: Default output filename template using makemkvcon

#3 Post by mike admin » Fri Jan 31, 2020 3:32 pm

This setting is stored in preferences. You can edit them in GUI and makemkvcon would pick them. Or you can edit preferences by hand, but this is only recommended as a last resort, if you have no gui at all.

rakorm
Posts: 4
Joined: Mon Jan 20, 2020 8:09 am

Re: Default output filename template using makemkvcon

#4 Post by rakorm » Fri Jan 31, 2020 8:20 pm

mike admin wrote:
Fri Jan 31, 2020 3:32 pm
This setting is stored in preferences. You can edit them in GUI and makemkvcon would pick them. Or you can edit preferences by hand, but this is only recommended as a last resort, if you have no gui at all.
Thanks for clearing this up. I have no gui, so I have to edit the preferences by hand. But: where do I find the preferences for the output filename template?
~/.MakeMKV has two files: settings.conf (written by me for app_Key) and update.conf (MakeMKV settings file, written by MakeMKV).
Are those files the 'preferences'?

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

Re: Default output filename template using makemkvcon

#5 Post by mike admin » Fri Jan 31, 2020 11:38 pm

rakorm wrote:
Fri Jan 31, 2020 8:20 pm
~/.MakeMKV has two files: settings.conf (written by me for app_Key) and update.conf (MakeMKV settings file, written by MakeMKV).
Which implies that your OS is Linux (settings are stored in different places on Windows, Mac and Linux).
The list of all settings can be (reliably) looked up in open-source part of MakeMKV - check the apdefs.h file. At the time of this writing the list is:

Code: Select all

typedef enum _ApSettingId
{
  apset_dvd_MinimumTitleLength ,
  apset_dvd_TestMTL ,
  apset_dvd_SPRemoveMethod ,
  apset_app_DataDir ,
  apset_app_Key ,
  apset_app_KeyHash ,
  apset_io_ErrorRetryCount ,
  apset_io_IgnoreReadErrors ,
  apset_io_RBufSizeMB ,
  apset_io_TIPS_Server ,
  apset_app_ExpertMode ,
  apset_io_DarwinK2Workaround ,
  apset_fs_ForceIsoForUDF102 ,
  apset_app_DestinationType ,
  apset_app_DestinationDir ,
  apset_app_ShowDebug ,
  apset_app_PreferredLanguage ,
  apset_app_BackupDecrypted ,
  apset_app_InterfaceLanguage ,
  apset_app_UpdateEnable ,
  apset_io_SingleDrive ,
  apset_app_ShowAVSyncMessages ,
  apset_bdplus_DumpAlways ,
  apset_app_DefaultProfileName ,
  apset_app_DefaultSelectionString ,
  apset_app_Java ,
  apset_app_ccextractor ,
  apset_path_OpenFile ,
  apset_path_DestDir ,
  apset_app_DefaultOutputFileName ,
  apset_sdf_Stop ,
} ApSettingId;
The setting you are asked for is called app_DefaultOutputFileName, so you have to add the following to ~/settings.conf:

Code: Select all

app_DefaultOutputFileName = "bla"

rakorm
Posts: 4
Joined: Mon Jan 20, 2020 8:09 am

Re: Default output filename template using makemkvcon

#6 Post by rakorm » Sat Feb 01, 2020 8:33 am

Thank you mike, for answering in detail.
And: Thanks for MakeMKV!!!

Post Reply