Jump to content
Media Servers Online: EmuMovies Sync | Launchbox Sync | FTP USA | FTP Europe ×

AviDemux Automation


Nologic

Recommended Posts

Okay here is an early attempt at mass batch processing with AviDemux. I've setup a small collection of profiles that can be used, simply uncomment "::" the lines prior to a code block to enable.

All profiles are based on 1:1 pixel, so if you wish to do 5:4 or something else you'll have to edit the profiles to have the pixels display correctly.

All profiles apply Gain to the audio (Max -3db) so there is no need to run MP3Gain or AACGain.

Profiles prefixed with TSCC are a cheesy attempt to correct the color shift when encoding a video originally encoded with TSCC...it comes close but is not perfect, and using the filter to correct the color shift add's a bit to the over all file size. This will be corrected in future versions, when AviSynth is added to the tool chain.

Anyways extract the attached archive into your AviDemux installation folder, then edit the batch script as required & desired, double click it and go catch a movie or get some sleep. :)

While the original goal of this was to produce multiple versions of the same video (MP4, AVI) and/or (HQ, SQ) the batch script can be edited to process several folders.

Example:


SET RunEXE=avidemux2_cli.exe

REM ## Process NES
REM ###################

SET Source=C:\\Video Capture\\NES
SET Target=C:\\Video Capture\\NES\\Final

SET DOSTAR=C:\Video Capture\NES

ECHO var srcDir = "%Source%"; > _Folders.js
ECHO var dstDir = "%Target%\\MP4 SQ"; >> _Folders.js
MKDIR "%DOSTAR%\MP4 SQ\"
START /WAIT ..\%RunEXE% --nogui --run ".\MP4 2 Pass Constant 800 Resize.js" -quit

ECHO var srcDir = "%Source%"; > _Folders.js
ECHO var dstDir = "%Target%\\MP4 HQ"; >> _Folders.js
MKDIR "%DOSTAR%\MP4 HQ\"
START /WAIT ..\%RunEXE% --nogui --run ".\MP4 2 Pass Constant 1500.js" -quit

DEL "%DOSTAR%\*.stat" /S
DEL "%DOSTAR%\*.mbtree" /S

REM ## Process SNES
REM ###################

SET Source=C:\\Video Capture\\SNES
SET Target=C:\\Video Capture\\SNES\\Final

SET DOSTAR=C:\Video Capture\SNES

ECHO var srcDir = "%Source%"; > _Folders.js
ECHO var dstDir = "%Target%\\MP4 SQ"; >> _Folders.js
MKDIR "%DOSTAR%\MP4 SQ\"
START /WAIT ..\%RunEXE% --nogui --run ".\MP4 2 Pass Constant 800 Resize.js" -quit

ECHO var srcDir = "%Source%"; > _Folders.js
ECHO var dstDir = "%Target%\\MP4 HQ"; >> _Folders.js
MKDIR "%DOSTAR%\MP4 HQ\"
START /WAIT ..\%RunEXE% --nogui --run ".\MP4 2 Pass Constant 1500.js" -quit

DEL "%DOSTAR%\*.stat" /S
DEL "%DOSTAR%\*.mbtree" /S

...

AviDemux Batch Scripts.rar

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...