Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions
Register FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 22-04-2013, 21:32
Pein46's Avatar
Pein46 Pein46 is offline
Registered User
 
Join Date: Feb 2013
Location: Malaysia
Posts: 27
Thanks: 12
Thanked 8 Times in 7 Posts
Pein46 is on a distinguished road
Talking Isexec (ISdone)

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;
Reply With Quote
Sponsored Links
  #2  
Old 22-04-2013, 22:08
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,210 Times in 2,309 Posts
Razor12911 is on a distinguished road
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;
Reply With Quote
The Following 2 Users Say Thank You to Razor12911 For This Useful Post:
Pein46 (22-04-2013), Simorq (26-11-2017)
  #3  
Old 22-04-2013, 22:43
Pein46's Avatar
Pein46 Pein46 is offline
Registered User
 
Join Date: Feb 2013
Location: Malaysia
Posts: 27
Thanks: 12
Thanked 8 Times in 7 Posts
Pein46 is on a distinguished road
can you give me some example of the parameter
Reply With Quote
  #4  
Old 22-04-2013, 22:46
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,210 Times in 2,309 Posts
Razor12911 is on a distinguished road
hmm,, I don't even know oggdec.exe
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
Pein46 (22-04-2013)
  #5  
Old 23-04-2013, 08:52
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 27 Times in 22 Posts
danswano is on a distinguished road
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
Reply With Quote
  #6  
Old 23-04-2013, 10:02
pakrat2k2's Avatar
pakrat2k2 pakrat2k2 is offline
Moderator
 
Join Date: Apr 2005
Location: Canada
Posts: 7,209
Thanks: 3,040
Thanked 9,043 Times in 3,086 Posts
pakrat2k2 is on a distinguished road
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;
above was found in isdone6f archive script.
Reply With Quote
  #7  
Old 25-04-2013, 05:34
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 27 Times in 22 Posts
danswano is on a distinguished road
I've encoded some wave files to ogg and i was trying the decode function but i got this error, any one knows why?
Attached Images
File Type: jpg 4-25-2013 3-33-09 PM.jpg (15.2 KB, 260 views)
Reply With Quote
  #8  
Old 25-04-2013, 06:52
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,210 Times in 2,309 Posts
Razor12911 is on a distinguished road
maybe oggdec.exe wasn't found in temp folder or parameter is incorrect.
Reply With Quote
  #9  
Old 25-04-2013, 06:55
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 27 Times in 22 Posts
danswano is on a distinguished road
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 :/
Reply With Quote
  #10  
Old 25-04-2013, 07:04
Razor12911's Avatar
Razor12911 Razor12911 is offline
Noob
 
Join Date: Jul 2012
Location: South Africa
Posts: 3,751
Thanks: 2,181
Thanked 11,210 Times in 2,309 Posts
Razor12911 is on a distinguished road
hmm, Interesting, 3.5Gb - 500Mb, I guess I will start investigating.
Reply With Quote
The Following User Says Thank You to Razor12911 For This Useful Post:
danswano (25-04-2013)
  #11  
Old 26-04-2013, 06:23
Pein46's Avatar
Pein46 Pein46 is offline
Registered User
 
Join Date: Feb 2013
Location: Malaysia
Posts: 27
Thanks: 12
Thanked 8 Times in 7 Posts
Pein46 is on a distinguished road
Talking

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;
any solution?
sorry my bad english

Last edited by Pein46; 26-04-2013 at 06:25.
Reply With Quote
  #12  
Old 26-04-2013, 08:11
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 27 Times in 22 Posts
danswano is on a distinguished road
It's not working for me, can you give me your sample project or at least the whole code related to ogg decoding?
Reply With Quote
  #13  
Old 26-04-2013, 08:34
Pein46's Avatar
Pein46 Pein46 is offline
Registered User
 
Join Date: Feb 2013
Location: Malaysia
Posts: 27
Thanks: 12
Thanked 8 Times in 7 Posts
Pein46 is on a distinguished road
Talking

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;
Reply With Quote
The Following User Says Thank You to Pein46 For This Useful Post:
danswano (26-04-2013)
  #14  
Old 26-04-2013, 09:40
danswano danswano is offline
Registered User
 
Join Date: Feb 2013
Location: Luxm
Posts: 314
Thanks: 218
Thanked 27 Times in 22 Posts
danswano is on a distinguished road
How did you set the progress percentage value? after decoding starts the progress bar percentage becomes like 531561%
Reply With Quote
  #15  
Old 26-04-2013, 09:46
Pein46's Avatar
Pein46 Pein46 is offline
Registered User
 
Join Date: Feb 2013
Location: Malaysia
Posts: 27
Thanks: 12
Thanked 8 Times in 7 Posts
Pein46 is on a distinguished road
Test Run, records.inf
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

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



All times are GMT -7. The time now is 13:46.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com