1.

Solve : Batch Multiple files for process?

Answer»

Well i have a lot of video's on my pc and i made a simple .bat encoder for them.
im not at my computer a lot so is there a way i can queu up a load of files without copy+paste the same script a load of times and editing.

I use
set VID=1.mkv

then call that file when it encodes.

is there a way i can like sequence a load of files?
so after 1 encodes it FINISHES then starts again on 2, and so on
like
set VID=1,2,3,4,5 .mkv

and when it does 2nd file
set end=Encoded-1.mkv
to rename the file to "Encoded-1.mkv,Encoded-2.mkv,Encoded-3.mkv" etc~

this would be great to get my encodes done while im away.so you want to load a group of files in sequence?, or you want to load a group of files in sequence and inbetween switching to the next file, you want it to run throught a section of commands?
what would be best is the ability to encode and entire folder.

here is some of my script

Code: [Select]set VID=1-INPUT.mkv
set avs=512x384Profile.avs
set end=Final-ENCODE-01-OUTPUT.mkv
x264.exe 1st pass
x264.exe 2nd pass


thats the simple version.
is there anyway to make this encode one file after another or do a folder then output to another folder?well, you could try dumping the files you wish to run your batch file encode on into a processing folder and then do something like this to loop through all the files in there. (This example works on all DVR-MS files in a folder)

Code: [Select]FOR %%G IN (*.dvr-ms) DO (
REM You can set an environemt variable to the
REM filename being looped through each time like so...
SET FILE=%%G
SET FILE
REM Or you can just pass in a couple of parameters
REM which you can access in your encodemystuff
REM routine using %1 and %2 to reference them,
REM where %1 is the filename and %2 is the
REM EXTENSION with the leading dot.
call:encodemystuff "%%~nG" "%%~xG"
)

:encodemystuff
your bat goes here...
echo %1
echo %2
echo %FILE%


Now if you want to get really tricky, apparently you can rename your .bat to .cmd, and then in Windows GUI you can simply drag the files onto your .cmd for them to be processed. ALAS, I haven't quite figured out how to do that yet!!

i understood 0% of that. im really a complete novice sorry.

any better explaination?Well still no noobie help.

my script is PRETTY complicated

it extracts video, encodes and then encodes 2x audio channels and finally puts them all together into 1 file.

is there a way to have 2 FOLDERS named: Input and Output
and it would change the input name for the file and the output so it's the same name when it's done? and would loop untill all the "Input" folder has been completed and output folder is full of encoded.

if you can understand me, because i dont think i do myself



Discussion

No Comment Found