Taperssection.com

Gear / Technical Help => Ask The Tapers => Topic started by: Bri on June 03, 2009, 10:53:22 AM

Title: Batch SHN -> FLAC?
Post by: Bri on June 03, 2009, 10:53:22 AM
New to taper section, looks like a neat forum...

Looking to convert a ton of folders to FLAC from SHN and have not come across a good app yet... dbPowerAmp times out, and I cant seem to make command line arguments in Foobar2k to delete the source file. Is there another app out there that will process subfolders and overwrite the source?

Thanks much in advance!

Bri
Title: Re: Batch SHN -> FLAC?
Post by: Craig T on June 03, 2009, 10:56:27 AM
Trader's Little Helper?
http://tlh.easytree.org/
Title: Re: Batch SHN -> FLAC?
Post by: Bri on June 03, 2009, 11:05:07 AM
I'll have to give that one a spin! Thanks Craig!
Title: Re: Batch SHN -> FLAC?
Post by: SmokinJoe on June 03, 2009, 11:43:10 AM

I think this would work.... if you like commandline stuff.

put all the shn files in a directory, make a file "shn2flac.cmd" and put it in C:\windows (in your path)

mkdir flacs   // create a directory named flacs
for %i in (*.shn) do shorten -x %i %i.wav   // at this point you have gd1970-01-01d1t01.shn.wav
move *.wav flacs           // move the decompressed wave files to flac
cd flacs                        // change to that directory
rename *.wav   *.         // now you have a "flacs directory" of WAVE files wrongly named .shn
rename *.shn *.wav      // correct filenames
for %i in (*.wav) do flac %i
remove *.wav
cd ..

optionally add:
move flacs\*.flac .
remove *.shn
rmdir flacs

Title: Re: Batch SHN -> FLAC?
Post by: Bri on June 03, 2009, 12:22:20 PM
problem is, I do not want to lose the hierarchy... Thanks tho :)
Title: Re: Batch SHN -> FLAC?
Post by: vanark on June 03, 2009, 12:25:54 PM
I would guess someone has a shntool batch file that can do what you want.  I'd have to look around to see if I can find some of my old ones, but I haven't used them for years so I'd have to test them.

edit:

This is what I pulled from my archives.  Probably needs to be tweaked.

shntool conv -o cust ext=flac "{" flac -8 -o %%f - "}" *.shn
Title: Re: Batch SHN -> FLAC?
Post by: dorrcoq on June 03, 2009, 12:37:30 PM
New to taper section, looks like a neat forum...


HUH????? :)

I've always used foobar, never worried about it over-writing the existing SHN"s, just manually deleted them later.
Title: Re: Batch SHN -> FLAC?
Post by: F.O.Bean on June 03, 2009, 08:20:58 PM
Welcome to www.taperssection.com ;)
Title: Re: Batch SHN -> FLAC?
Post by: Bri on June 03, 2009, 08:27:24 PM
Welcome to www.taperssection.com ;)

thanks Bean! Wow you have alot of posts! ;)

Well, I almost got it, looks like Fubar2K is the best option. I found a place where you can add arguments to the flac exec, just need to sort it out ;)

"--delete-input-file -8 - -o %d" not working deleting input file for some raisin. :?
Title: Re: Batch SHN -> FLAC?
Post by: scotchman 732 on June 04, 2009, 06:46:42 PM
NCH Software Sound File Converter.   What it doesn't do is, overwrite the shn and just leaves the flac.  After all files have been converted, you will need to manually delete the shn's.  The simple trick to this is to sort all the files. Go to the last file after Flac and they should all be shn'.  Highlight and delete.

You can try the beta software at https://secure.nch.com.au/cgi-bin/register.exe?software=recordpad&svar=SSon

Hope this helps   ::)