VideoHelp Forum
+ Reply to Thread
Results 1 to 2 of 2
Thread
  1. Hi, (...)

    I have a concatList.txt file like this:

    Code:
    file 'C:\video1.MP4' 
    file 'C:\video2.MP4' 
    file 'C:\video3.MP4' 
    file 'C:\video4.MP4'
    file 'C:\video5.MP4'
    it refers to real files in c:\

    I need to remux (using ffmpeg) each file one by one in batch mode

    Maybe it is necessary something like (but this is NOT working):

    Code:
    for /F "UseBackQ Tokens=2 Delims='" %%g In ("concatList.txt") DO (CALL :process_file_onebyone "%%~g") 
    
    :process_file_onebyone
    
    ffmpeg -i (?) -vcodec copy -acodec copy out(1).mp4
    
    
    [continuation of the batch when finisched to remux all the files in the concatList.txt]

    the desider output is to get from the batch execution:

    Code:
    C:\video1REMUXED.MP4
    C:\video2REMUXED.MP4
    C:\video3REMUXED.MP4 
    C:\video4REMUXED.MP4
    C:\video5REMUXED.MP4

    how to do this? please help the cat
    Last edited by marcorocchini; 29th Aug 2022 at 04:48.
    Quote Quote  
  2. Something like:
    Code:
    for /F "UseBackQ Tokens=2 Delims='" %%g In ("concatList.txt") DO (CALL :process_file_onebyone "%%~g") 
    pause
    exit(0)
    
    :process_file_onebyone
    
    ffmpeg -i %1 -vcodec copy -acodec copy "%~dpn1.remux.mp4"
    Quote Quote  



Similar Threads

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