Using DOS, suppose I have the following variables stored:
m2tsfname_1=00001.MTS
m2tsfname_2=00002.MTS
m2tsfname_3=00003.MTS
m2tsfname_4=00004.MTS
...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:
mtslist=00001.MTS+00002.MTS+00003.MTS+00004.MTS
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
set mtslist=00001.MTS
then
set mtslist=%mtslist%+00002.MTS
then
set mtslist=%mtslist%+00003.MTS
etc.
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).
Scott -
Necessary nitpick:
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 -
this is not a bluray, but avchd camcorder, so mpls will not work. AVCHD does not use mpls files....it uses mpl which eac3to cannot parse, hence the need to join. I cannot use your text either since I could have 1 or 100 files in a folder to join. I just want to be able to join them quickly to mkv then pass the mkv to tsmuxer ro remux to m2ts all in a batch file. This one large file can be opened in a NLE or encoded via handbrake for distribution.
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:
Code:@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.
'Do I look absolutely divine and regal, and yet at the same time very pretty and rather accessible?' - Queenie
Similar Threads
-
Concatenate all these AVIs into a single 1TB AVI
By SameSelf in forum Video ConversionReplies: 10Last Post: 9th Dec 2015, 11:02 -
Concatenate .264 streams losslessly
By SameSelf in forum Video ConversionReplies: 9Last Post: 7th Dec 2015, 09:27 -
How to concatenate two or more wmv files to one large file?
By bartek6 in forum LinuxReplies: 5Last Post: 30th Sep 2015, 04:13 -
how to concatenate VOB or AVI files
By hedron in forum DVD RippingReplies: 6Last Post: 17th May 2013, 04:22 -
Concatenate videos
By indijay in forum Newbie / General discussionsReplies: 0Last Post: 6th Jun 2012, 07:29