Ticket #8907: convert_dxa.bat

File convert_dxa.bat, 1.2 KB (added by SF/noizje, 12 years ago)
Line 
1:: Script for converting SMK video to ScummVM DXA format
2::
3:: Put this batch file into the game directory you want to convert.
4:: This script will search for all SMK files in all subtree directories,
5:: and encode them as DXA files next to the original files.
6::
7:: (c) 2007 ScummVM Team
8:: (c) 2007 oduverne
9:: (c) 2008 NoiZe
10::
11:: $URL$
12:: $Id$
13@echo off
14echo ScummVM SMK2DXA batch convertor
15
16:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
17:: Edit the following paths to your tools containing directories ::
18:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
19
20PATH=%PATH%;C:\Program Files\ScummVM\tools
21SET BINK_PATH=C:\Program Files\RADVideo
22
23:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
24:: Edit audio parameter to mp3/vorbis/flac and additional params ::
25:::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
26
27SET AUDIO=--mp3
28
29:preencode
30for /R . %%i in (*.smk) do (call :encode "%%i")
31echo.
32echo Converting finished!
33goto :eof
34
35:encode
36echo.
37echo Processing %~nx1...
38cd /d %~dp1
39"%BINK_PATH%\BinkConv.exe" %1 "%~n1.png" /n-1 /z1 /#
40"%BINK_PATH%\BinkConv.exe" %1 "%~n1.wav" /v /#
41encode_dxa.exe %AUDIO% "%~nx1"
42del "%~n1*.png"
43del "%~n1.wav"
44goto :eof