|
#1
|
||||
|
||||
|
How to use this?
I want to use oggdec.exe to decode *.wav file.. example: Code:
if not ISExec ( 0, 0, 0, ExpandConstant('{tmp}\Arc.exe'), ExpandConstant('x -o+ "{src}\001.arc" "{app}\"'), ExpandConstant('{tmp}'), '...',false) then break;
|
| Sponsored Links |
|
#2
|
||||
|
||||
|
include the program along with setup then extract it to tmp
if not ISExec ( 0, 0, 0, ExpandConstant('{tmp}\oggdec.exe'), ExpandConstant('Parameter'), ExpandConstant('{tmp}'), '...',false) then break; |
|
#3
|
||||
|
||||
|
can you give me some example of the parameter
|
|
#5
|
|||
|
|||
|
oggdec.exe code part is included inside ISDone iss project and i think it starts decoding ogg files automatically once they are found in the game files, i had to remove the whole code related to it from the project once because i didn't want to encode or decode any ogg files.
The game was SWFU2 |
|
#6
|
||||
|
||||
|
Look for this section in your script & insert the OGG Decode subsection as indicated ( section between dashes ( ----- ) ).
Code:
ISDoneError:=true;
if ISDoneInit(ExpandConstant('{src}\records.inf'), $F777, Comps1,Comps2,Comps3, MainForm.Handle, {#NeedMem}, @ProgressCallback) then begin
repeat
//if ActiveLanguage = 'English' then ChangeLanguage ('English'); / / if selected at the start English.ini
ChangeLanguage('English');
//if not SrepInit('',512,0) then break;
//if not PrecompInit('',128,PCFVer) then break;
if not SrepInit(ExpandConstant('{app}\'),512,0) then break;
if not PrecompInit(ExpandConstant('{app}\'),128,PCFVer) then break;
if not FileSearchInit(true) then break;
if not ISArcExtract (0, 0, ExpandConstant ('{src}\*.arc'), ExpandConstant ('{app}\'),'', false,'', ExpandConstant ('{tmp}\arc.ini' ), ExpandConstant ('{app} \'), notPCFonFLY {PCFonFLY}) then break;
// OGGDecode subsection between dashes ( ----- )
--------------------------------------------------------------
// unpacking of files using an external application
FindHandle1:=ISFindFiles(0,ExpandConstant('{app}\*.ogg'),ColFiles1);
ExecError:=false;
while not ExecError and ISPickFilename(FindHandle1,ExpandConstant('{app}\'),CurIndex1,true) do begin
InFilePath:=ISGetName(0);
OutFilePath:=ISGetName(1);
OutFileName:=ISGetName(2);
ExecError:=not ISExec(0, 0, 0, ExpandConstant('{tmp}\oggdec.exe'), '"'+InFilePath+'" -w "'+OutFilePath+'"',ExpandConstant('{tmp}'),OutFileName,false);
end;
ISFindFree(FindHandle1);
if ExecError then break;
------------------------------------------------------------
ISDoneError:=false;
until true;
ISDoneStop;
end;
HideControls;
WizardForm.CancelButton.Visible:=true;
WizardForm.CancelButton.Enabled:=false;
end;
|
|
#7
|
|||
|
|||
|
I've encoded some wave files to ogg and i was trying the decode function but i got this error, any one knows why?
|
|
#8
|
||||
|
||||
|
maybe oggdec.exe wasn't found in temp folder or parameter is incorrect.
|
|
#9
|
|||
|
|||
|
i think there is no other parameter to decode ogg to wav, it's only -w
i'm trying to reduce the size of the L4D2 sound folder size, it's about 3.5 gigz of wav files. with ogg i think it will be reduced to 500 megz couldn't find anything on google :/ |
|
#11
|
||||
|
||||
|
I use this parameter but my problem is the .ogg files is not deleted after decoded..
Code:
if not ISExec ( 0, 0, 0, ExpandConstant('{tmp}\oggdec.exe'), ExpandConstant('"{app}\data\sounds\*.ogg"'), ExpandConstant('{tmp}'), '...',false) then break;
sorry my bad english Last edited by Pein46; 26-04-2013 at 06:25. |
|
#12
|
|||
|
|||
|
It's not working for me, can you give me your sample project or at least the whole code related to ogg decoding?
|
|
#13
|
||||
|
||||
|
Add this to script..
Code:
[Files]
Source: oggdec.exe; DestDir: {tmp}; Flags: dontcopy
.
.
.
.
[Code.]
ExtractTemporaryFile('oggdec.exe');
.
.
.
.
if not ISExec ( 0, 0, 0, ExpandConstant('{tmp}\oggdec.exe'), ExpandConstant('"{app}\data\sounds\*.ogg"'), ExpandConstant('{tmp}'), '...',false) then break;
|
| The Following User Says Thank You to Pein46 For This Useful Post: | ||
danswano (26-04-2013) | ||
|
#14
|
|||
|
|||
|
How did you set the progress percentage value? after decoding starts the progress bar percentage becomes like 531561%
|
|
#15
|
||||
|
||||
|
Test Run, records.inf
|
![]() |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Extract Encrypted ARC file with ISDone | danswano | Conversion Tutorials | 2 | 12-05-2014 13:54 |
| Inno Setup + ISDone Extracting files | buttignol | PC Games - CD/DVD Conversions | 11 | 28-02-2013 16:31 |
| PCF Error in ISDone | danswano | PC Games - CD/DVD Conversions | 4 | 28-02-2013 04:24 |