Using DOS, suppose I have the following variables stored:
...could go on
I want to create a new variable that concatenates the file names in the variables. Not sure what SET command I would use, but I would like the result to be:
The plus signs would need to be there. I would then pass the mtslist variable to EAC3to. For example:
eac3to mtslist test.mkv
Any ideas on this? I thought I would try something like a DOS for loop, which is easy to do as I have a counter counting the number of MTS files. Thanks!
+ Reply to Thread
Results 1 to 8 of 8
'Do I look absolutely divine and regal, and yet at the same time very pretty and rather accessible?' - Queenie
How do you get selected those proper m2ts for a title and put them into variables? Is it not better to work with virtual title, eac3to then follows mpls list and joins those m2ts.
but, to answer, when you create those variables m2tsfname_i that's a moment when you automatically create also mtlist, not afterwords,.., when you know you use that 00002.MTS, or batch is just handling it, you add it to that list right away
but anyway, I feel like you do something strange with Blu-ray here
Are you assuming this properly concatenates to a single, playable composite? It doesn't. Some players/editors may accept it, some won't.
If you need to join, and you have like-minded files, use a container-level joiner, not a file-level one.
If you don't have like-minded files, you must use an editor (or pre-convert the non-like ones).
there is no '(ms-)DOS' in 32-bit & 64-bit environments.
Call it command-line interface or 'command prompt', but not 'DOS'.
Even Windows 95, 98 and ME did NOT "run on top of DOS", because their DOS was just a bootloader.
These are just to join MTS files from a camcorder. tsmuxer will experience audio drift over large amounts of files when joining. Yes I can put them into an editor separately, but if I just want to quickly combine files then EAC3to is needed. Any yes, when entering
eac3to 00001.MTS+00002.MTS+00003.MTS test.mkv
it most certainly does create a playable composite that everything I have tested can play. I am just hoping to use the command prompt to do this. This is different that joining files in the command prompt via copy /b. eac3to will do container level joins.
Last edited by ron spencer; 22nd Apr 2016 at 22:30. Reason: naked'Do I look absolutely divine and regal, and yet at the same time very pretty and rather accessible?' - Queenie
Last edited by ron spencer; 22nd Apr 2016 at 22:40.'Do I look absolutely divine and regal, and yet at the same time very pretty and rather accessible?' - Queenie
try this, if it picks up in alphabetic order, it should work:
@echo off setlocal set "mtslist=" for %%a in ("*.MTS") do call :join_MTS "%%a" eac3to %mtslist% test.mkv endlocal echo DONE & pause goto :eof :join_MTS if defined mtslist set mtslist=%mtslist%+%~1& goto :eof set mtslist=%~1 goto :eof
Last edited by _Al_; 22nd Apr 2016 at 23:49.
thanks!! This was great.