![]() ![]() : LAME3.97, -m j -V 4 -q 2 -lowpass 17 -b 128Ģ) From there, reading the audio formats from files, I move the files to the specific folder and execute the batch in that folder to run the conversion. Infos : Constant at 128 Kbps, 48.0 KHz, 2 channels Infos : Constant at 192 Kbps, 48.0 KHz, 1 channelĪudio #1 : 110 MiB (12%), MPEG Audio Version 1 Layer 3, Video #0 : XviD MPEG-4 Visual at 925 Kbps, with 574 MiB (70%) OUTPUT FILE EXAMPLE: General : ORIGINAL NAME FOR THE VIDEO FILES.aviįormat : 820 MiB for 1h 26mn 38s 777ms at 1 324 Kbps Or generate a large file with all the small ones: for %%a in ("*.avi") do "C:\Meus Programas\MEDIA\MediaInfo CLI\MediaInfo.exe" -output=file://"C:\Meus Programas\MEDIA\MediaInfo CLI\luis.csv" -logfile="%%~na.txt" "%%a"įor %%i in ("*.txt") do type "%%~i">TXTCollector.lst & echo =>TXTCollector.lst & echo.>TXTCollector.lst & del "%%~i" for %%a in ("*.avi") do "C:\Meus Programas\MEDIA\MediaInfo CLI\MediaInfo.exe" -output=file://"C:\Meus Programas\MEDIA\MediaInfo CLI\luis.csv" -logfile="%%~na.txt" "%%a" txt for every video file with the basic info about the video and audio. It's all about of converting audio from avi to generate compatibility to editing programs.ġ) Generate a. txt and decide the next steps for a bunch of videos in the same dir. I need help to join my batch files into just one and add the ability to this batch to read a file. txt for the videofile, then replacing strings in the "batch model". a loop for calling the second batch parsing the filename.txtĪnother way I was thinking is the batch generate a "batch model" for every videofile, then read the. I only know something about FOR (LOOP) and as far as I know it can not work with GOTO :EXAMPLE. If value 3 = variable goto :variable2 ELSE goto :constant2 If value 1 = variable goto :variable1 ELSE goto :constant1 Set Value 4 from txt line 22 = 44.1 or 48.0 Set Value 3 from txt line 21 = Variable or Constant Set Value 2 from txt line 13 = 44.1 OR 48.0 Set Value 1 from txt line 12 = Variable OR Constant IF DOESNT EXIST "Audio #1" in TXT goto :ONEAUDIO txt and decides what to do with the original file. I'm trying to do a batch that reads each. Tried to switch off EnableDelayedExpansion, same results. This batch is to create a script file (.vcf) and the Redirection with > is not working anymore.ĮCHO VirtualDub.Open("r:\%%~nF.avi","",0) >"%%~nF.vcf"Ĭreated a file with the name correct with the parameter %%~nF.vcf but flushed inside the file all the work done byįor /F "usebackq tokens=1* delims=:" %%a in ("%%F")ĮCHO VirtualDub.RemoveInputStreams() >"%%~nF.vcf" generated a file called %~nF.vcf (this means that the parameter doesnt work anymore.) Writed all the bat file and started to debug. Rem Read variables from this text file (explained above)įor /F "usebackq tokens=1* delims=:" %%a in ("%%F") do (ĮCHO VirtualDub.Open("r:\\%%~nF.avi","",0) >"%%~nF.vcf"ĮCHO VirtualDub.RemoveInputStreams() >"%%~nF.vcf" Rem Delete variables that may not exist in certain files Rem ren TXTCollector.lst TXTCollector.txt ![]() Rem for %%Z in ("*.cod") do type "%%~Z">TXTCollector.lst & echo =>TXTCollector.lst & echo.>TXTCollector.lst Rem for %%T in ("*.avi") do "C:\Meus Programas\MEDIA\MediaInfo CLI\MediaInfo.exe" -output=file://"C:\Meus Programas\MEDIA\MediaInfo CLI\luis4.csv" -logfile="%%~nT.cod" "%%T" Rem Create all text files (copied from your example) Rem Required to use Delayed !Variable! Expansion Writing_App : VirtualDubMod 1.5.10.2 (build 2542/release) Sizes : 1.66 GiB for 1h 58mn 0s 615ms at 2 014 Kbps ![]() New output file txt: Filename : %FILENAME%.%EXTENSION% ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |