Cypheros Transportstream Forum

English-speaking Support => TS-Doctor 2.x => Thema gestartet von: MrHulot am Februar 18, 2018, 18:16:05

Titel: Error when remux
Beitrag von: MrHulot am Februar 18, 2018, 18:16:05
Hi everyone

Since a few days, i have a bug when i try to remux my MTS files.
I use to cut it with smartcutter (nerver had any problem before).
Then i remux the file in .mkv.

I tried with 2 differents files and  have the following message:

"Error: The JSON option file 'C:\ProgramData\Cypheros\TSDoctor2\mkvmerge.opt' contains an error : parse error - unexpected '-'.

I'm in 2.0.105

Thanx for your answers...
Titel: Re: Error when remux
Beitrag von: Cypheros am Februar 19, 2018, 23:21:53
The problems are changes in MKVToolnix 20.0 .
We are working on an update to support newer MKVToolnix versions.
Titel: Re: Error when remux
Beitrag von: MrHulot am Februar 20, 2018, 20:51:42
Thanks for the answer !
Titel: Re: Error when remux
Beitrag von: Mam am Februar 21, 2018, 07:10:11
(cough, cough...) I once helped a bit developing a special generator program to avoid such problems.
In general, it reads the json offers from the target, generates C# source code for every method, class, enum and variable and so on (reordering a bit to put nullables at the end of of the list) and adds some own functions too (mainly a global VERSION call to allow the application to check WHICH version of the target is install and switch to a different DLL if needed).
Compiling this source will give you a DLL (and an import lib of course) that can be called from you apps (TSDoc in this case). The DLL will handle all calls to the target, including thread management, asynch threads, stacks, keeping track of async answers and so on. So for the app it looks like a normal function call, but in fact it handles everything multithreaded...

Maybe a bit overkill for the Doc, is is mainly used for adding Tools that use Kodi (like the Ember Database for instance).
(Beware: the created DLL is really huge :-)))) because it contains EVERYTHING that the target offers).

Anyway, running that tool on a new version of the target will always give you a recent version of the JSON interface (and of course, the generated DLL will have the version name included...)

if interested, I can send you the github link...
Titel: Re: Error when remux
Beitrag von: MrHulot am März 02, 2018, 19:03:13
Hi Mam

Yes please, because it still not working :-(
Thanks for the help.
Titel: Re: Error when remux
Beitrag von: Mam am März 03, 2018, 07:34:38
Zitat von: MrHulot am März 02, 2018, 19:03:13
Hi Mam

Yes please, because it still not working :-(
Thanks for the help.

Sorry, but the link wont help you in any respect.
The Doc's Author would need to incorporate it into a new version of TSDoc. And because he is currently quite busy to bring out new features, I am afraid, this work would not be suitable right now.
Titel: Re: Error when remux
Beitrag von: Lavi am März 05, 2018, 11:18:31
Hi MrHulot!

Download the MKVToolnix 19.0 portable version, unpacking somewhere, and add the unpacked directory in Setting - Preferences - Supported Tools- MKVToolnix.
Then the remux will work.
Titel: Re: Error when remux
Beitrag von: MrHulot am März 08, 2018, 21:54:43
Brilliant ! It's working. Thanks  ;)