VideoHelp Forum




+ Reply to Thread
Results 1 to 3 of 3
  1. So I'm working on something I call ffconcat, a script intended to create multiple fixed files with altered timestamps so as to prevent timestamp errors before they happen, and then concat the files, removing the temporary files afterward. It all works via drag and drop. I have just 2 things left to work on before the script is done. Second part is easy, probably, but this first step is causing issues. The first part of my script is meant to generate a list of the files being drag/dropped with absolute paths. That seemed like a good idea at the time, but after realizing I had to first create the temporary files to fix timestamps and concat them instead, well that changes things. So, I want to change it from absolute paths to relative paths, but I'm having trouble. If I can just truncate the output list file so it only shows names, then add text to indicate a new relative path pointing at an output folder (ex. file 'C:\file1.mkv' > 'file1.mkv' > 'Output\file1.mkv') then I could put the new files created with -c copy and use them in the concat process instead. Anyway, here is my script, or at least here are the relevant lines:

    @echo off setlocal enabledelayedexpansion
    echo. > "%~dp0Concat1.txt"
    for %%A in (%*) do ( echo file '%%~A'>> "%~dp0Concat1.txt" )
    Quote Quote  
  2. You mean you want this?

    Code:
    @echo off setlocal enabledelayedexpansion
    echo. > "%~dp0Concat1.txt"
    for %%A in (%*) do ( echo file '%%~nxA'>> "%~dp0Concat1.txt" )
    Quote Quote  
  3. Originally Posted by jagabo View Post
    You mean you want this?

    Code:
    @echo off setlocal enabledelayedexpansion
    echo. > "%~dp0Concat1.txt"
    for %%A in (%*) do ( echo file '%%~nxA'>> "%~dp0Concat1.txt" )
    Yes exactly! Now I just gotta sort the listfile, I think my code will be finished soon. I'll post it here when I'm done, it should make concatination so much easier
    Quote Quote  



Similar Threads

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