VideoHelp Forum




+ Reply to Thread
Results 1 to 8 of 8
  1. Rancid User ron spencer's Avatar
    Join Date
    May 2005
    Location
    Ish-ka-bibble
    Search Comp PM
    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!
    'Do I look absolutely divine and regal, and yet at the same time very pretty and rather accessible?' - Queenie
    Quote Quote  
  2. 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
    Quote Quote  
  3. Member Cornucopia's Avatar
    Join Date
    Oct 2001
    Location
    Deep in the Heart of Texas
    Search PM
    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
    Quote Quote  
  4. DECEASED
    Join Date
    Jun 2009
    Location
    Heaven
    Search Comp PM
    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.
    Quote Quote  
  5. Rancid User ron spencer's Avatar
    Join Date
    May 2005
    Location
    Ish-ka-bibble
    Search Comp PM
    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
    Quote Quote  
  6. Rancid User ron spencer's Avatar
    Join Date
    May 2005
    Location
    Ish-ka-bibble
    Search Comp PM
    Originally Posted by _Al_ View Post
    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
    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
    Quote Quote  
  7. 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.
    Quote Quote  
  8. Rancid User ron spencer's Avatar
    Join Date
    May 2005
    Location
    Ish-ka-bibble
    Search Comp PM
    thanks!! This was great.
    'Do I look absolutely divine and regal, and yet at the same time very pretty and rather accessible?' - Queenie
    Quote Quote  



Similar Threads

Visit our sponsor! Try DVDFab and backup Blu-rays!