BatchMKV - batch GUI for MakeMKV

Discussion of advanced MakeMKV functionality, expert mode, conversion profiles
Post Reply
kenneth
Posts: 64
Joined: Tue Aug 26, 2014 9:53 pm

Re: BatchMKV - batch GUI for MakeMKV

Post by kenneth »

boe_d wrote:Hello,

Thanks so much for posting this program.

Is there a convert button? I converted them but they came out with bad file names so I've cleared them and reselected them and they analyzed but I don't see a convert button.

I've tried selecting all - untoggling etc. I've cleared and closed the app. I've put the source folder back in but I can't seem to get them to convert again.

The solution for me is to rename the folder and then load it again.
If you select the title you want to convert, and it has already been converted, the Retry button at the lower right corner should be enabled and you can click it to do the conversion again. Does that do the trick?

Alternatively you can go to Settings / General and uncheck "Keep analysis information and source settings on application restart".

I want to add an option to rescan and reset a source even if "Keep analysis information..." is enabled, which would also reset the conversion status and allow you to convert again. But I don't have any time to work on the application right now, so that could be a while.
BatchMKV - free Windows-based batch processing software for MakeMKV
osterwal
Posts: 16
Joined: Sun Aug 21, 2016 9:17 pm

Re: BatchMKV - batch GUI for MakeMKV

Post by osterwal »

Hi Kenneth,

thanks for the great batch program for Make MKV, scanning went already very well with having over 700 bluray´s stored on a server.

Unfortunately, I receive always the message "Could not modify output file metadata" and the status is "conversion failed".

However, the complete MKV file seems to be in the ~Temp directory in the movie subfolder.

I first thought this might be because I am using MKV toolnix 64bit, but also the change to 32bit did not help.

BatchMKV is running on Windows 10 machine, have you seen that issue from anyone else (or have you encountered that by yourself?).

Do you have any idea how to fix this? If it would work, that program would be really a great help.

Thanks and Best regards

Stefan
Yugatha
Posts: 86
Joined: Fri Jun 08, 2012 1:20 am
Location: The Land Down Under

Re: BatchMKV - batch GUI for MakeMKV

Post by Yugatha »

@osterwal,

This could be a permissions issue. If the completed files are in the Temp folder, it could be an issue moving it to the final destination - is the program running as a user that has permission to write to the final destination folder? Does it work if you Run as Administrator?
osterwal
Posts: 16
Joined: Sun Aug 21, 2016 9:17 pm

Re: BatchMKV - batch GUI for MakeMKV

Post by osterwal »

@ yugatha: Thanks for your answer. Where can I find the permissions of the app? Formerly, this was in the compatibility app, but under windows 10 and due to the fact that this app has been installed in another way I can´t find that.

But I tried to set the MKV Info permissions to administrator, but this did not help, the app crashed now, so I undo the changes.

Greetings

Stefan
kenneth
Posts: 64
Joined: Tue Aug 26, 2014 9:53 pm

Re: BatchMKV - batch GUI for MakeMKV

Post by kenneth »

osterwal wrote:@ yugatha: Thanks for your answer. Where can I find the permissions of the app? Formerly, this was in the compatibility app, but under windows 10 and due to the fact that this app has been installed in another way I can´t find that.

But I tried to set the MKV Info permissions to administrator, but this did not help, the app crashed now, so I undo the changes.

Greetings

Stefan
Does it work if you use MKVToolNix GUI to manually edit the headers of one of the MKV files where it gave the error?

It might be a permissions issue as mentioned, although I'm also running Windows 10 and don't have any issues like this so I'm not sure what it could be.

Is the output file location on a network drive of some sort? If so, could you try and see if it works if you use a local drive as output?
BatchMKV - free Windows-based batch processing software for MakeMKV
osterwal
Posts: 16
Joined: Sun Aug 21, 2016 9:17 pm

Re: BatchMKV - batch GUI for MakeMKV

Post by osterwal »

If i Use MKV ToolNix GUI it works.

I use a local drive (built up by drive bender, physically based on 12 hard drives).

But also when I copy the file to a normal SSD I get the same failure.

By the way, I have tested several files, it did not work.
osterwal
Posts: 16
Joined: Sun Aug 21, 2016 9:17 pm

Re: BatchMKV - batch GUI for MakeMKV

Post by osterwal »

I just tested it manually with using mkvpropedit, that works also.

Are you also using mkvpropedit?
kenneth
Posts: 64
Joined: Tue Aug 26, 2014 9:53 pm

Re: BatchMKV - batch GUI for MakeMKV

Post by kenneth »

osterwal wrote:Are you also using mkvpropedit?
Yes, that's what BatchMKV is using.

Did you test with mkvpropedit on the actual file in the same folder/path where BatchMKV fails?

Is it a long path, any special characters?
BatchMKV - free Windows-based batch processing software for MakeMKV
osterwal
Posts: 16
Joined: Sun Aug 21, 2016 9:17 pm

Re: BatchMKV - batch GUI for MakeMKV

Post by osterwal »

Yes, I have tested it with the same file.

To identify the problem I tested it close to the root structure, so:

C:\test, where BatchMKV creates a directory "~Temp".

The iso filename is just "12" and the MKV filename is "12_Years_A_Slave_t02.mkv" with 4,66 GB.
kenneth
Posts: 64
Joined: Tue Aug 26, 2014 9:53 pm

Re: BatchMKV - batch GUI for MakeMKV

Post by kenneth »

osterwal wrote:Yes, I have tested it with the same file.

To identify the problem I tested it close to the root structure, so:

C:\test, where BatchMKV creates a directory "~Temp".

The iso filename is just "12" and the MKV filename is "12_Years_A_Slave_t02.mkv" with 4,66 GB.
Okay, thanks.

I am working on adding event logs to BatchMKV which will hopefully shed some light on why this error is occurring. I hope to have it ready very soon.
BatchMKV - free Windows-based batch processing software for MakeMKV
kenneth
Posts: 64
Joined: Tue Aug 26, 2014 9:53 pm

Re: BatchMKV - batch GUI for MakeMKV

Post by kenneth »

@ osterwal:

I have added a limited set of error logging features for MKVToolNix operations. I decided to put these in a separate beta-release of BatchMKV since this update will most likely clear application settings for many users which I want to avoid. The issue of application settings being cleared is something caused by the installer I'm using, and it is on the top of my list to switch to a more robust system for storing application settings. For now, please try installing this beta release, go to Help / Troubleshooting, and follow the instructions there to enable error logging and generate an error log for this bug.

The beta release with error logging is available here.

The error logging feature will be extended going forward to assist in clearing out some of the other bugs that have been reported.
BatchMKV - free Windows-based batch processing software for MakeMKV
osterwal
Posts: 16
Joined: Sun Aug 21, 2016 9:17 pm

Re: BatchMKV - batch GUI for MakeMKV

Post by osterwal »

Hi Kenneth,

first of all thanks for the great support!

But sorry for bothering you again, but now the application does not longer launch.

I can see it in the Task Manager (with a high CPU load of almost 30%!), but nothing happens.

Any idea on that?

Edit: I don´t know why, but it took just some minutes to start for the first time.

Please find here the error logs, but I think only the first log is linked to my problem, the rest should just be installation issues (Sorry, I can´t upload as text files, quota issues...)

Error log 1:
Ebene Datum und Uhrzeit Quelle Ereignis-ID Aufgabenkategorie
Warnung 23.08.2016 16:19:08 BatchMKV\MKVToolNix 0 Keine "mkvinfo failed, no tracks identified.

Executable: C:\Program Files\MKVToolNix\mkvinfo.exe
Arguments: ""C:\test\~Temp\12_Years_A_Slave_t02.mkv"""
Error log 2:
Ebene Datum und Uhrzeit Quelle Ereignis-ID Aufgabenkategorie
Fehler 23.08.2016 16:05:13 .NET Runtime 1026 Keine Anwendung: BatchMKV.exe
Frameworkversion: v4.0.30319
Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
Ausnahmeinformationen: System.Data.SQLite.SQLiteException
bei System.Data.SQLite.SQLite3.Step(System.Data.SQLite.SQLiteStatement)
bei System.Data.SQLite.SQLiteDataReader.NextResult()
bei System.Data.SQLite.SQLiteDataReader..ctor(System.Data.SQLite.SQLiteCommand, System.Data.CommandBehavior)
bei System.Data.SQLite.SQLiteCommand.ExecuteReader(System.Data.CommandBehavior)
bei System.Data.SQLite.SQLiteCommand.ExecuteNonQuery(System.Data.CommandBehavior)
bei System.Data.SQLite.SQLiteCommand.ExecuteNonQuery()
bei System.Data.SQLite.SQLiteTransaction..ctor(System.Data.SQLite.SQLiteConnection, Boolean)
bei System.Data.SQLite.SQLiteConnection.BeginDbTransaction(System.Data.IsolationLevel)
bei System.Data.Common.DbConnection.System.Data.IDbConnection.BeginTransaction()
bei NHibernate.Transaction.AdoTransaction.Begin(System.Data.IsolationLevel)

Ausnahmeinformationen: NHibernate.TransactionException
bei NHibernate.Transaction.AdoTransaction.Begin(System.Data.IsolationLevel)
bei NHibernate.Transaction.AdoTransaction.Begin()
bei NHibernate.Impl.SessionImpl.BeginTransaction()
bei BatchMKV.Repositories.SourceStateRepository.Purge(System.DateTime)
bei BatchMKV.fMain.purgeDataState()
bei BatchMKV.fMain..ctor()
bei BatchMKV.Program.Main(System.String[])


Error log 3:
Ebene Datum und Uhrzeit Quelle Ereignis-ID Aufgabenkategorie
Fehler 23.08.2016 16:05:14 Application Error 1000 (100) "Name der fehlerhaften Anwendung: BatchMKV.exe, Version: 0.6.0.0, Zeitstempel: 0x57bc38db
Name des fehlerhaften Moduls: KERNELBASE.dll, Version: 10.0.14393.0, Zeitstempel: 0x57898e34
Ausnahmecode: 0xe0434352
Fehleroffset: 0x000d96c2
ID des fehlerhaften Prozesses: 0x1584
Startzeit der fehlerhaften Anwendung: 0x01d1fd47485d7f7d
Pfad der fehlerhaften Anwendung: C:\Users\oster\AppData\Local\Apps\2.0\QCO3ZW3Z.12H\OGEOBP97.7VJ\batc..tion_345e5a521eed3e74_0000.0006_d91fd079b9ff8a52\BatchMKV.exe
Pfad des fehlerhaften Moduls: C:\WINDOWS\System32\KERNELBASE.dll
Berichtskennung: 522edf64-3ef4-48eb-aff5-16b39724b985
Vollständiger Name des fehlerhaften Pakets:
Anwendungs-ID, die relativ zum fehlerhaften Paket ist: "
Error log 4:
Ebene Datum und Uhrzeit Quelle Ereignis-ID Aufgabenkategorie
Informationen 23.08.2016 16:05:16 Windows Error Reporting 1001 Keine "Fehlerbucket 129199171010, Typ 5
Ereignisname: CLR20r3
Antwort: Nicht verfügbar
CAB-Datei-ID: 0

Problemsignatur:
P1: BatchMKV.exe
P2: 0.6.0.0
P3: 57bc38db
P4: System.Data.SQLite
P5: 1.0.99.0
P6: 566889bd
P7: e6
P8: b9
P9: NHibernate.TransactionException
P10:

Angefügte Dateien:
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER3A1E.tmp.WERInternalMetadata.xml
\\?\C:\Users\oster\AppData\Local\Temp\WER40A7.tmp.appcompat.txt
\\?\C:\ProgramData\Microsoft\Windows\WER\Temp\WER40D7.tmp.dmp
\\?\C:\Users\oster\AppData\Local\Temp\WER430A.tmp.WERDataCollectionFailure.txt

Diese Dateien befinden sich möglicherweise hier:
C:\ProgramData\Microsoft\Windows\WER\ReportArchive\AppCrash_BatchMKV.exe_71e3c3fdcfc1b0d5caab7a6b2cda398e833d7_9d6ecc48_18834355

Analysesymbol:
Es wird erneut nach einer Lösung gesucht: 0
Berichts-ID: 522edf64-3ef4-48eb-aff5-16b39724b985
Berichtstatus: 4104
Bucket mit Hash: de892128079d48196fb9c4755f70ffcd"
By the way, when I run mkvinfo.exe manually with the arguments from the error log I get the following result:



+ EBML-Kopf
|+ EBML-Version: 1
|+ EBML Leseversion: 1
|+ Maximale EBML-ID-Länge: 4
|+ Maximale Länge des EBML-Längenattributes: 8
|+ Dokumententyp: matroska
|+ Dokumententyp Version: 2
|+ Dokumententyp Leseversion: 2
+ Segment, Größe 642097145
|+ Seekkopf (Untereinträge werden ausgelassen)
|+ EbmlVoid (Größe: 1021)
|+ Segment-Information
| + Zeitstempelskalierungsfaktor: 1000000
| + Muxeranwendung: libmakemkv v1.10.1 (1.3.3/1.4.4) win(x64-release)
| + schreibende Anwendung: MakeMKV v1.10.1 win(x64-release)
| + Dauer: 335.458s (00:05:35.458)
| + Titel: 12 Years A Slave
| + Datum: Tue Aug 23 15:09:31 2016 UTC
| + Segment-UID: 0xc0 0xdc 0xde 0x79 0x2f 0xe3 0x7b 0x6d 0x89 0x1d 0x89 0xf9 0x65 0x83 0x2b 0x59
|+ Segmentspuren
| + Eine Spur
| + Spurnummer: 1 (Spur-ID für Mkvmerge & Mkvextract: 0)
| + Spur-UID: 1
| + Spurtyp: video
| + Standardspur-Schalter: 0
| + Schalter für Paketbündelung: 0
| + MinCache: 1
| + Codec-ID: V_MPEG4/ISO/AVC
| + private Codec-Daten, Länge 61 (h.264-Profil: High @L4.1)
| + Standarddauer: 41.667ms (24.000 Bilder/Felder pro Sekunde im Falle einer Videospur)
| + Videospur
| + Pixelbreite: 1920
| + Pixelhöhe: 1080
| + Anzeigebreite: 1920
| + Anzeigehöhe: 1080
| + Eine Spur
| + Spurnummer: 2 (Spur-ID für Mkvmerge & Mkvextract: 1)
| + Spur-UID: 2
| + Spurtyp: audio
| + Standardspur-Schalter: 1
| + Schalter für Paketbündelung: 1
| + Codec-ID: A_DTS
| + Sprache: deu
| + Standarddauer: 10.667ms (93.750 Bilder/Felder pro Sekunde im Falle einer Videospur)
| + Name: Stereo
| + Audio track
| + Abtastrate: 48000
| + Kanäle: 2
|+ EbmlVoid (Größe: 1021)
|+ Cluster
kenneth
Posts: 64
Joined: Tue Aug 26, 2014 9:53 pm

Re: BatchMKV - batch GUI for MakeMKV

Post by kenneth »

osterwal wrote: I can see it in the Task Manager (with a high CPU load of almost 30%!), but nothing happens.

Any idea on that?

Edit: I don´t know why, but it took just some minutes to start for the first time.
I think this might be related to loading of the database containing the cached/stored data about scanned titles. It shouldn't take so long, I think some of the exceptions you included below may be related to this.

Good news is your debug information led me to what I'm quite sure is the cause of the bug. I was not aware that mkvinfo/mkvpropedit will output in other languages than English, so my command line processor did not understand the German output from mkvinfo on your system. I have uploaded a new (beta) version which forces mkvinfo/mkvpropedit to use English as command line language when used by BatchMKV.

Please note that the new beta version also includes a switch to using the registry to store settings. This means that you will need to set your settings again, but going forward this should eliminate the issue with settings sometimes being lost when updating the application. The settings are stored at HKEY_CURRENT_USER\Software\Adeptweb\BatchMKV in case you need to backup/migrate to another system.

Check out the new version and let me know if it works for you now.
BatchMKV - free Windows-based batch processing software for MakeMKV
osterwal
Posts: 16
Joined: Sun Aug 21, 2016 9:17 pm

Re: BatchMKV - batch GUI for MakeMKV

Post by osterwal »

Hi Kenneth,

sounds great!

Unfortunately, the app does now not start any longer on my system.

Here is the error log:
Protokollname: Application
Quelle: .NET Runtime
Datum: 24.08.2016 07:08:40
Ereignis-ID: 1026
Aufgabenkategorie:Keine
Ebene: Fehler
Schlüsselwörter:Klassisch
Benutzer: Nicht zutreffend
Computer: Osterhomeserver
Beschreibung:
Anwendung: BatchMKV.exe
Frameworkversion: v4.0.30319
Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
Ausnahmeinformationen: System.InvalidCastException
bei BatchMKV.Properties.Settings.get_PurgeSourceStateLastExecuted()
bei BatchMKV.fMain.purgeDataState()
bei BatchMKV.fMain..ctor()
bei BatchMKV.Program.Main(System.String[])


Ereignis-XML:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name=".NET Runtime" />
<EventID Qualifiers="0">1026</EventID>
<Level>2</Level>
<Task>0</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2016-08-24T05:08:40.177343600Z" />
<EventRecordID>5093</EventRecordID>
<Channel>Application</Channel>
<Computer>Osterhomeserver</Computer>
<Security />
</System>
<EventData>
<Data>Anwendung: BatchMKV.exe
Frameworkversion: v4.0.30319
Beschreibung: Der Prozess wurde aufgrund einer unbehandelten Ausnahme beendet.
Ausnahmeinformationen: System.InvalidCastException
bei BatchMKV.Properties.Settings.get_PurgeSourceStateLastExecuted()
bei BatchMKV.fMain.purgeDataState()
bei BatchMKV.fMain..ctor()
bei BatchMKV.Program.Main(System.String[])

</Data>
</EventData>
</Event>
Protokollname: Application
Quelle: Application Error
Datum: 24.08.2016 07:08:40
Ereignis-ID: 1000
Aufgabenkategorie:(100)
Ebene: Fehler
Schlüsselwörter:Klassisch
Benutzer: Nicht zutreffend
Computer: Osterhomeserver
Beschreibung:
Name der fehlerhaften Anwendung: BatchMKV.exe, Version: 0.6.0.0, Zeitstempel: 0x57bc9f58
Name des fehlerhaften Moduls: KERNELBASE.dll, Version: 10.0.14393.0, Zeitstempel: 0x57898e34
Ausnahmecode: 0xe0434352
Fehleroffset: 0x000d96c2
ID des fehlerhaften Prozesses: 0x2124
Startzeit der fehlerhaften Anwendung: 0x01d1fdc592b55aa6
Pfad der fehlerhaften Anwendung: C:\Users\oster\AppData\Local\Apps\2.0\QCO3ZW3Z.12H\OGEOBP97.7VJ\batc..tion_345e5a521eed3e74_0000.0006_da1defe8b18f7e92\BatchMKV.exe
Pfad des fehlerhaften Moduls: C:\WINDOWS\System32\KERNELBASE.dll
Berichtskennung: c9d93af2-ee63-4754-80ea-c9d224ac1a90
Vollständiger Name des fehlerhaften Pakets:
Anwendungs-ID, die relativ zum fehlerhaften Paket ist:
Ereignis-XML:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
<System>
<Provider Name="Application Error" />
<EventID Qualifiers="0">1000</EventID>
<Level>2</Level>
<Task>100</Task>
<Keywords>0x80000000000000</Keywords>
<TimeCreated SystemTime="2016-08-24T05:08:40.274691500Z" />
<EventRecordID>5094</EventRecordID>
<Channel>Application</Channel>
<Computer>Osterhomeserver</Computer>
<Security />
</System>
<EventData>
<Data>BatchMKV.exe</Data>
<Data>0.6.0.0</Data>
<Data>57bc9f58</Data>
<Data>KERNELBASE.dll</Data>
<Data>10.0.14393.0</Data>
<Data>57898e34</Data>
<Data>e0434352</Data>
<Data>000d96c2</Data>
<Data>2124</Data>
<Data>01d1fdc592b55aa6</Data>
<Data>C:\Users\oster\AppData\Local\Apps\2.0\QCO3ZW3Z.12H\OGEOBP97.7VJ\batc..tion_345e5a521eed3e74_0000.0006_da1defe8b18f7e92\BatchMKV.exe</Data>
<Data>C:\WINDOWS\System32\KERNELBASE.dll</Data>
<Data>c9d93af2-ee63-4754-80ea-c9d224ac1a90</Data>
<Data>
</Data>
<Data>
</Data>
</EventData>
</Event>

I used again the beta installer which you shared before, is that correct?
kenneth
Posts: 64
Joined: Tue Aug 26, 2014 9:53 pm

Re: BatchMKV - batch GUI for MakeMKV

Post by kenneth »

osterwal wrote:Unfortunately, the app does now not start any longer on my system.
Thanks for the feedback. This new bug was caused by the switch to using the registry to store settings, and only occurred under certain scenarios that my testing did not catch. It should be fixed now.
osterwal wrote:I used again the beta installer which you shared before, is that correct?
That is correct. The error logging and settings in registry are not in the main branch yet.
BatchMKV - free Windows-based batch processing software for MakeMKV
Post Reply