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
|
---|
14 | echo ScummVM SMK2DXA batch convertor
|
---|
15 |
|
---|
16 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
---|
17 | :: Edit the following paths to your tools containing directories ::
|
---|
18 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
---|
19 |
|
---|
20 | PATH=%PATH%;C:\Program Files\ScummVM\tools
|
---|
21 | SET BINK_PATH=C:\Program Files\RADVideo
|
---|
22 |
|
---|
23 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
---|
24 | :: Edit audio parameter to mp3/vorbis/flac and additional params ::
|
---|
25 | :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
|
---|
26 |
|
---|
27 | SET AUDIO=--mp3
|
---|
28 |
|
---|
29 | :preencode
|
---|
30 | for /R . %%i in (*.smk) do (call :encode "%%i")
|
---|
31 | echo.
|
---|
32 | echo Converting finished!
|
---|
33 | goto :eof
|
---|
34 |
|
---|
35 | :encode
|
---|
36 | echo.
|
---|
37 | echo Processing %~nx1...
|
---|
38 | cd /d %~dp1
|
---|
39 | "%BINK_PATH%\BinkConv.exe" %1 "%~n1.png" /n-1 /z1 /#
|
---|
40 | "%BINK_PATH%\BinkConv.exe" %1 "%~n1.wav" /v /#
|
---|
41 | encode_dxa.exe %AUDIO% "%~nx1"
|
---|
42 | del "%~n1*.png"
|
---|
43 | del "%~n1.wav"
|
---|
44 | goto :eof |
---|