Seti BOINC workunit to sound convert script

Message boards : Number crunching : Seti BOINC workunit to sound convert script
Message board moderation

To post messages, you must log in.

AuthorMessage
Profile fatbozz
Volunteer tester

Send message
Joined: 15 Aug 01
Posts: 5
Credit: 1,927,210
RAC: 0
Czech Republic
Message 1289100 - Posted: 29 Sep 2012, 0:30:44 UTC

Hi!
I would like to introduce little helper script thats using jknutar's wu2wav and convert BOINC wus into WAV files.

Here is text that you see when youll run script. Call it HELP :)

Hello World !
This is little helper to convert BOINC! Seti@Home Workunits to WAV sound files
Works on fully downloaded WUs (filesize approx 366 kB)
wu2wav convert utility is from http://gamma.nic.fi/~jknutar/wu2wav/
Tested on Windows 7 only
--------------------------------------------------------------------------------------------
Usage:
Put WU files into root directory of this script
Wait for conversion - Need press enter to end conversion.
When converting multiple files, youll need press enter same tim how many files youre
converting.
Workunits you can find in BoincData directory
Windows XP/2000
C:\Documents and Settings\All Users\Application Data\BOINC\projects\setiathome.berkeley.edu\
Windows Vista
C:\ProgramData\BOINC\projects\setiathome.berkeley.edu\
Looks like 19au10ab.6447.7842.15.10.47, 27my13ad.25088.142475.7.12.23 ... etc
--------------------------------------------------------------------------------------------
If you want improve this script send me patch, advice to user info at domain gpsfreemaps.net
When you like it and want send some money click on donate button on my web
http://gpsfreemaps.net /// Thanks and be kind to other people

Happy downloading
http://gpsfreemaps.net/files/wu2wav-boinc.zip
ID: 1289100 · Report as offensive
Profile BilBg
Volunteer tester
Avatar

Send message
Joined: 27 May 07
Posts: 3720
Credit: 9,385,827
RAC: 0
Bulgaria
Message 1290273 - Posted: 2 Oct 2012, 2:34:37 UTC - in response to Message 1289100.  
Last modified: 2 Oct 2012, 3:06:00 UTC


My changes (on XP - tested and modified by BilBg)

@echo off
echo Hello World !
echo This is little helper to convert BOINC! Seti@Home Workunits to WAV sound files
echo Works on fully downloaded WUs  (filesize approx 366 kB)
echo wu2wav convert utility is from http://gamma.nic.fi/~jknutar/wu2wav/
echo -------------------------------------------------------------------------------
echo Usage: 
echo Put WU files into root directory of this script (next to !RUN SCRIPT.cmd)
echo Wait for conversion ...
echo.
echo Workunits you can find in BoincData directory, the default is:
echo Windows XP/2000
echo C:\Documents and Settings\All Users\Application Data\BOINC\projects\setiathome.berkeley.edu\
echo Windows Vista/7
echo C:\ProgramData\BOINC\projects\setiathome.berkeley.edu\ 
echo WU names look like 19au10ab.6447.7842.15.10.47, 27my13ad.25088.142475.7.12.23
echo Tested on Windows 7 only (and on XP - tested and modified by BilBg)
echo -------------------------------------------------------------------------------
echo If you want improve this script send me patch, advice to user info at domain gpsfreemaps.net
echo When you like it and want send some money click on donate button on my web
echo http://gpsfreemaps.net /// Thanks and be kind to other people
echo -------------------------------------------------------------------------------
pause

dir /b | findstr -r "^[0-9][0-9][a-z][a-z].*[0-9]$"        > wulist_all
dir /b | findstr -r "^[0-9][0-9][a-z][a-z].*[0-9]\.vlar$" >> wulist_all

echo.
echo *******   Number of All found WUs:
FIND /V /C "XXXXXXXstring" wulist_all

rem.> wulist
FOR /F %%G IN (wulist_all) DO  IF NOT EXIST .\waves\%%G.wav  Echo %%G>> wulist

echo.
echo *******   Found WUs still not converted to WAV:
FIND /V /C "XXXXXXXstring" wulist
type wulist | more
pause

FOR /F %%G IN (wulist) DO (

 echo %%G

 echo Adding Trailing header
 echo ----------------------------------------------

 echo nsamples=1048576 > new
 echo end_seti_header >> new

 echo Extracting sound data in horrible way. Sorry
 echo ----------------------------------------------

 script_files\tail -n -5464 %%G >> new
 script_files\head -n 5464 new > work_unit.sah
 echo. | script_files\wu2wav.exe
 :: del work_unit.sah %%G new
 move work_unit.wav .\waves\%%G.wav

)

echo.
echo                    _____________________
echo                    === End of script ===
pause


 


- ALF - "Find out what you don't do well ..... then don't do it!" :)
 
ID: 1290273 · Report as offensive

Message boards : Number crunching : Seti BOINC workunit to sound convert script


 
©2024 University of California
 
SETI@home and Astropulse are funded by grants from the National Science Foundation, NASA, and donations from SETI@home volunteers. AstroPulse is funded in part by the NSF through grant AST-0307956.