SRC yet again... - Gearslutz.com

Gearslutz.com

All Advertisers
Go Back   Gearslutz.com > The Forums > Mastering forum


SRC yet again...

New Reply New Reply Thread Tools Search this Thread
Old 24th October 2008   #1
Lives for gear
 
taturana's Avatar
 
Joined: Sep 2006
Location: Rio de Janeiro, Brazil
Posts: 4,057

Thread Starter
Verified Member
SRC yet again...

After using R8brain (free and pro) for a while for SRC, i decided to try SoX and really liked the results... the sound actually seems clearer ... especially hf... i think from the src comparison chart i would guess that it has to do with a better lpf algo...

it's a bit awkward since it's a command line program...the good thing is that it's multi platform ...mac, linux and windows and it's freeware...

does anyone have experience with it? or tips? or know of any interface to make it easier to work with?
taturana is online now   Reply With Quote
Old 25th October 2008   #2
Lives for gear
 
Cellotron's Avatar
 
Joined: Aug 2004
Location: Brooklyn, New York
Posts: 3,638

Verified Member
The test results are certainly impressive with it. Thanks for the link - I hadn't heard of this before. Downloading now - it would certainly be nice to find a front end gui for it though.

Best regards,
Steve Berson
Cellotron is offline   Reply With Quote
Old 25th October 2008   #3
Lives for gear
 
taturana's Avatar
 
Joined: Sep 2006
Location: Rio de Janeiro, Brazil
Posts: 4,057

Thread Starter
Verified Member
Quote:
Originally Posted by Cellotron View Post
The test results are certainly impressive with it. Thanks for the link - I hadn't heard of this before. Downloading now - it would certainly be nice to find a front end gui for it though.

Best regards,
Steve Berson
I am thinking of writing a simple Batch file... to make it easier... but haven't got down to it yet....
taturana is online now   Reply With Quote
Old 27th October 2008   #4
Gear Head
 
evac's Avatar
 
Joined: Sep 2003
Location: Lawrence, KS
Posts: 34

gui

they link to this GUI on the SOX site: Studio: Sound Editor
It's written in Tcl/Tk which will be easier to get working on Mac than Win, but I assume the latter is possible.

Tcl/Tk 8.0
__________________
Bassnode Mastering
evac is offline   Reply With Quote
Old 27th October 2008   #5
Lives for gear
 
taturana's Avatar
 
Joined: Sep 2006
Location: Rio de Janeiro, Brazil
Posts: 4,057

Thread Starter
Verified Member
found this one for win32 and going to install it to test...

t@b Media Converter (GUI for sox, mencoder) for win32 download page
taturana is online now   Reply With Quote
Old 27th October 2008   #6
Lives for gear
 
taturana's Avatar
 
Joined: Sep 2006
Location: Rio de Janeiro, Brazil
Posts: 4,057

Thread Starter
Verified Member
i tried the gui but it does not work at least not for src..... too bad....
taturana is online now   Reply With Quote
Old 28th October 2008   #7
Lives for gear
 
Cellotron's Avatar
 
Joined: Aug 2004
Location: Brooklyn, New York
Posts: 3,638

Verified Member
Quote:
Originally Posted by taturana View Post
I am thinking of writing a simple Batch file... to make it easier... but haven't got down to it yet....
Well if you came up with a front end for Windows that was functional for batching sample rate conversions using the SoX algoirthm I'd certainly would be willing to pay something for it. I figure many who would otherwise be ponying up for something like r8brain Pro would be willing to do the same.

Best regards,
Steve Berson
Cellotron is offline   Reply With Quote
Old 28th October 2008   #8
Gear addict
 
Joined: Mar 2008
Posts: 321

Quote:
Originally Posted by taturana View Post
i tried the gui but it does not work at least not for src..... too bad....
Same here...
sanddigger1 is offline   Reply With Quote
Old 28th October 2008   #9
Lives for gear
 
neilwilkes's Avatar
 
Joined: Sep 2005
Location: London, England
Posts: 931

Quote:
Originally Posted by Cellotron View Post
Well if you came up with a front end for Windows that was functional for batching sample rate conversions using the SoX algoirthm I'd certainly would be willing to pay something for it. I figure many who would otherwise be ponying up for something like r8brain Pro would be willing to do the same.

Best regards,
Steve Berson
Being an owner of R8Brain Pro, I can certainly say that if there was a better option, I would pay for it.
Not that there is anything wrong with what I am currently using, but if there actually was a better option I would be a fool not to look at it seriously.
Command line is too much of a PITA, and brings back far too many bad memories of early DVD-A days when all authoring was done to scripts as there was no GUI.....it makes me shudder to even remember it all.
__________________

Mixing,Mastering & Post Production
Surround Specialists (all formats)
Blu-Ray (Pure Audio Blu Ray & HDMV authoring)
DVD-Audio/DVD-Video Authoring (Music, Film & TV)
neilwilkes is offline   Reply With Quote
Old 28th October 2008   #10
Lives for gear
 
taturana's Avatar
 
Joined: Sep 2006
Location: Rio de Janeiro, Brazil
Posts: 4,057

Thread Starter
Verified Member
I have found several guis for mac and linux but the only one so far for windows was the t@b one... and it does not work for that purpose... i guess it's more directed towards audio and video file conversion...


so far i've been dumping all files to be converted in the root directory of my computer and i cut and paste the command line command, just switching the names in the process... still it is a PITA!

i like the sound though... and i just about got used to using it that way... soon somebody is going to make a better gui for it... but SoX is quite cool...

the typical command line argument for src would be...

sox filename.wav -r 44100 filenamenew.wav

i still haven't found out if there is a way to change src quality in SoX, so if anybody knows that answer please chime in...
taturana is online now   Reply With Quote
Old 28th October 2008   #11
Lives for gear
 
Nordenstam's Avatar
 
Joined: Aug 2005
Location: Norway
Posts: 1,741

Verified Member
Socks?


Quote:
Originally Posted by taturana View Post
the typical command line argument for src would be...

sox filename.wav -r 44100 filenamenew.wav
Created litterally thousands of .bat files when 4Dos ruled, can hardly remember anything now!

IIRC, the "parameter input" is "%1" "%2" etc.

If that is so, a src.bat with
"sox %1.wav -r 44100 %1new.wav"
would make it possible to type "src filename" without extension and have the rest filled in automatically.

Worth a try..
Nordenstam is offline   Reply With Quote
Old 28th October 2008   #12
Lives for gear
 
taturana's Avatar
 
Joined: Sep 2006
Location: Rio de Janeiro, Brazil
Posts: 4,057

Thread Starter
Verified Member
Quote:
Originally Posted by Lupo View Post
Socks?




Created litterally thousands of .bat files when 4Dos ruled, can hardly remember anything now!

IIRC, the "parameter input" is "%1" "%2" etc.

If that is so, a src.bat with
"sox %1.wav -r 44100 %1new.wav"
would make it possible to type "src filename" without extension and have the rest filled in automatically.

Worth a try..
Yeah... it's funny but every once in a while it's cool to know your DOS...

I used to have the old IBM DOS technical reference manual... from the time IBM had a building just for writing manuals... e.. i made me quite a few batch files too!

make that .bat like you said and create a shortcut in the desktop... not that hard really...thanks for the tip

And searching GS about SoX... i did learn a bit about the Red Sox... eh
taturana is online now   Reply With Quote
Old 28th October 2008   #13
Gear interested
 
Joined: Oct 2008
Posts: 7

Quote:
Originally Posted by taturana View Post
so far i've been dumping all files to be converted in the root directory of my computer and i cut and paste the command line command, just switching the names in the process... still it is a PITA!

i like the sound though... and i just about got used to using it that way... soon somebody is going to make a better gui for it... but SoX is quite cool...

the typical command line argument for src would be...

sox filename.wav -r 44100 filenamenew.wav

i still haven't found out if there is a way to change src quality in SoX, so if anybody knows that answer please chime in...
Sox has a zillion options and sometimes more than one way of achieving the same thing, so hang on to your hats...

These two commands:

sox filename.wav -r 44100 filenamenew.wav
sox filename.wav filenamenew.wav rate 44100

behave the same but with the second version you can add a quality option, e.g.

sox filename.wav filenamenew.wav rate -v 44100

changes the quality from 'high' (for 16-bit mastering) to 'very high' (for 24-bit).

AFAIK, there is no GUI front end for sox :-( but, I think creating a batch file shouldn't be too hard; use notepad to create say 44100.bat:

cd %~dp0
mkdir converted
FOR %%A IN (%*) DO sox %%A "converted/%%~nxA" rate -v 44100
pause

Put this in the same folder as sox.exe, then you can drag and drop files onto the batch file; the converted files end up in a folder called converted.

FYI, a new version of sox with more SRC options (minimum phase, bandwidth setting, etc.) is imminent -- there's a release candidate available.

-bandpass
bandpass is offline   Reply With Quote
Old 28th October 2008   #14
Lives for gear
 
taturana's Avatar
 
Joined: Sep 2006
Location: Rio de Janeiro, Brazil
Posts: 4,057

Thread Starter
Verified Member
Quote:
Originally Posted by bandpass View Post
Sox has a zillion options and sometimes more than one way of achieving the same thing, so hang on to your hats...

These two commands:

sox filename.wav -r 44100 filenamenew.wav
sox filename.wav filenamenew.wav rate 44100

behave the same but with the second version you can add a quality option, e.g.

sox filename.wav filenamenew.wav rate -v 44100

changes the quality from 'high' (for 16-bit mastering) to 'very high' (for 24-bit).

AFAIK, there is no GUI front end for sox :-( but, I think creating a batch file shouldn't be too hard; use notepad to create say 44100.bat:

cd %~dp0
mkdir converted
FOR %%A IN (%*) DO sox %%A "converted/%%~nxA" rate -v 44100
pause

Put this in the same folder as sox.exe, then you can drag and drop files onto the batch file; the converted files end up in a folder called converted.

FYI, a new version of sox with more SRC options (minimum phase, bandwidth setting, etc.) is imminent -- there's a release candidate available.

-bandpass
Thank you very much.... coool stuff...
taturana is online now   Reply With Quote
Old 9th November 2008   #15
Gear interested
 
Joined: Oct 2008
Posts: 7

Quote:
Originally Posted by bandpass View Post
FYI, a new version of sox with more SRC options (minimum phase, bandwidth setting, etc.) is imminent -- there's a release candidate available.
It's been released:

Quote:
  • *Processing chain:
    • *now supports any number of input files
      *now allows multiple effects chains, multiple input pipes and, in some cases, multiple output files
      *initial support for Mac OSX audio IO
      *better support for large (2G/4G) files.
    *New effects:
    • *(ISO 226) loudness control
      *RIAA vinyl EQ
      *pitch bending
    *Enhanced effects:
    • *rate: minimum/intermediate/linear phase, custom bandwidth
      *dither: noise shaping
      *mcompand: now with Linkwitz-Riley crossover.
    *Various other small fixes/improvements.
SoX-home: SoX - Sound eXchange | HomePage

-bandpass
bandpass is offline   Reply With Quote
Old 9th November 2008   #16
kjg
Lives for gear
 
Joined: May 2008
Location: Amsterdam, NL
Posts: 937

Thank you bandpass.
kjg is offline   Reply With Quote
Old 10th November 2008   #17
Lives for gear
 
taturana's Avatar
 
Joined: Sep 2006
Location: Rio de Janeiro, Brazil
Posts: 4,057

Thread Starter
Verified Member
thanks for that...

btw... really liked that batch file example...
taturana is online now   Reply With Quote
Old 10th November 2008   #18
Lives for gear
 
Nordenstam's Avatar
 
Joined: Aug 2005
Location: Norway
Posts: 1,741

Verified Member
Finally did some tests with this little gem..

Can't hear a big difference to R8Brain and don't think it could stand a blind test.. But it sure makes for different measurements. Here's something like the graphs on the src.infinitewave.ca page, zoomed in on the 22-44kHz area:



Original file was a linear 1 to 96000 Hz sweep at 192000 Hz, downsampled to 44100. R8Brain settings are as indicated in pic, while Sox was left at default setting as used in the supplied drag'n'drop batch file. The original signal disappears above the 22050Hz ceiling where the orange area ends, the rest as seen in R8Brain file is aliasing which suddenly stops at 44100. (anyone knows more about that?)

Please notice that the signal level in this test is zoomed to absurdity! The aliasing on the R8Brain is around -160 to -170 dB, lower than just about any other gear or DSP processing. Have nothing against R8Brain, been a happy user and can't complain. Though when the choice is there and affordable, I'll always take the cleanest route.. It's surprising to find the free SOX utility to perform so well. Especially since it's screaming fast too!

Thanks for the excellent program.


Regards,

Andreas Nordenstam
Nordenstam is offline   Reply With Quote
Old 10th November 2008   #19
Lives for gear
 
taturana's Avatar
 
Joined: Sep 2006
Location: Rio de Janeiro, Brazil
Posts: 4,057

Thread Starter
Verified Member
Quite a great program... i agree...

i tested the new version with the linear phase and very HQ src and it's flawless... and as you pointed out... very quick...

one more for open source... very nice...

and thanks for the tests Lupo...

Quote:
Originally Posted by Lupo View Post
Finally did some tests with this little gem..

Can't hear a big difference to R8Brain and don't think it could stand a blind test.. But it sure makes for different measurements. Here's something like the graphs on the src.infinitewave.ca page, zoomed in on the 22-44kHz area:



Original file was a linear 1 to 96000 Hz sweep at 192000 Hz, downsampled to 44100. R8Brain settings are as indicated in pic, while Sox was left at default setting as used in the supplied drag'n'drop batch file. The original signal disappears above the 22050Hz ceiling where the orange area ends, the rest as seen in R8Brain file is aliasing which suddenly stops at 44100. (anyone knows more about that?)

Please notice that the signal level in this test is zoomed to absurdity! The aliasing on the R8Brain is around -160 to -170 dB, lower than just about any other gear or DSP processing. Have nothing against R8Brain, been a happy user and can't complain. Though when the choice is there and affordable, I'll always take the cleanest route.. It's surprising to find the free SOX utility to perform so well. Especially since it's screaming fast too!

Thanks for the excellent program.


Regards,

Andreas Nordenstam
taturana is online now   Reply With Quote
Old 10th November 2008   #20
Gear interested
 
Joined: Oct 2008
Posts: 7

Quote:
Originally Posted by taturana View Post
i tested the new version with the linear phase and very HQ...
Just worth pointing out that the previous version of SoX had the filter steepness fixed at 'steep' (=99% bandwidth); with the new version, the default is 95% bandwidth but you can still have steep by adding -s (or steeper still with -b percentage). But of course, too much steepness can cause excessive filter ringing -- hence the change to a slightly more conservative default.

If you know anything about filter impulse responses and want to see how some of the options affect this, there's a page here with some graphs.

-bandpass
bandpass is offline   Reply With Quote
Old 11th November 2008   #21
Lives for gear
 
taturana's Avatar
 
Joined: Sep 2006
Location: Rio de Janeiro, Brazil
Posts: 4,057

Thread Starter
Verified Member
Quote:
Originally Posted by bandpass View Post
Just worth pointing out that the previous version of SoX had the filter steepness fixed at 'steep' (=99% bandwidth); with the new version, the default is 95% bandwidth but you can still have steep by adding -s (or steeper still with -b percentage). But of course, too much steepness can cause excessive filter ringing -- hence the change to a slightly more conservative default.

If you know anything about filter impulse responses and want to see how some of the options affect this, there's a page here with some graphs.

-bandpass
I just converted a bunch of files with the -L option.. apparently from the graphic it appears to be the best option... the results were great...

What would you consider to be the best setting for SRC in a mastering situation ? (the very best quality conversion...)
taturana is online now   Reply With Quote
Old 11th November 2008   #22
Lives for gear
 
idylldon's Avatar
 
Joined: Nov 2003
Location: Idyllwild, CA
Posts: 2,611

What's the best command to change a 48, 88.1, or 96K 24-bit file to 44.1/16 bit and retain the highest quality? I know, RTFM, and I will unless some kind soul who knows a LOT more about this stuff than I do takes pity on me.

Cheers,
--
Don
__________________
"What is essential is invisible to the eye." -- Antoine de Saint-Exupéry
idylldon is offline   Reply With Quote
Old 11th November 2008   #23
Lives for gear
 
taturana's Avatar
 
Joined: Sep 2006
Location: Rio de Janeiro, Brazil
Posts: 4,057

Thread Starter
Verified Member
Quote:
Originally Posted by idylldon View Post
What's the best command to change a 48, 88.1, or 96K 24-bit file to 44.1/16 bit and retain the highest quality? I know, RTFM, and I will unless some kind soul who knows a LOT more about this stuff than I do takes pity on me.

Cheers,
--
Don
I think it would be best to convert to 24bit 44.1 and then dither to 16bit... theorywise...that is.

i am currently using the supplied batch file with the -L command (linear phase), any other suggestions?
taturana is online now   Reply With Quote
Old 11th November 2008   #24
Gear interested
 
Joined: Sep 2008
Posts: 14

Hi,
I used R8b for quite a while. But Izotope RX advanced is the winner for me now.

Has anyone compared SoX with Izotope?
luiztornaghi is offline   Reply With Quote
Old 11th November 2008   #25
Lives for gear
 
taturana's Avatar
 
Joined: Sep 2006
Location: Rio de Janeiro, Brazil
Posts: 4,057

Thread Starter
Verified Member
Quote:
Originally Posted by luiztornaghi View Post
Hi,
I used R8b for quite a while. But Izotope RX advanced is the winner for me now.

Has anyone compared SoX with Izotope?
They are probably both really good and the difference is very small if there's one... but if you want you can send me a small file to convert and compare...

fala luiz... já masterizei um disco na Visom contigo...quando ainda era na barra, vários anos atrás... do BRAU... eu até levei o computador... vc deve lembrar... e ...abs....
taturana is online now   Reply With Quote
Old 11th November 2008   #26
Lives for gear
 
UnderTow's Avatar
 
Joined: Mar 2006
Location: the Netherlands
Posts: 3,953

Verified Member
Quote:
Originally Posted by taturana View Post
i am currently using the supplied batch file with the -L command (linear phase), any other suggestions?
From the manual: "By default, all algorithms have a ‘linear’ phase response". So I guess for most purposes, the -v option should be enough.

Alistair
__________________
Alistair Johnston - TV & Film Post, Mastering, Sound Design
--
"The first principle is that you must not fool yourself -- and you are the easiest person to fool" -- Richard P. Feynman

"There's a sucker born every minute" -- P.T. Barnum
UnderTow is offline   Reply With Quote
Old 11th November 2008   #27
Gear interested
 
Joined: Oct 2008
Posts: 7

Quote:
Originally Posted by taturana View Post
I think it would be best to convert to 24bit 44.1 and then dither to 16bit... theorywise...that is.

i am currently using the supplied batch file with the -L command (linear phase), any other suggestions?
Resampling is a series of compromises so there's no one true answer for all situations, but the following rules of thumb should cover most people's needs for 99% of the time:

Phase setting: if resampling to < 40k, use intermediate phase (-I), otherwise use linear phase (-L, or don't specify; linear phase is the default).

Quality setting: if resampling (or changing speed, as it amounts to the same thing) at/to > 16 bit depth (i.e. most commonly 24-bit), use VHQ (-v), otherwise, use HQ (-h, or don't specify).

Bandwidth setting: don't change from the default setting (95%).

If you're mastering to 16-bit, you also need to add 'dither' (and maybe noise-shaping) after the rate.

Time for some examples:

sox any-file -b 16 outfile rate 44100 dither
(mastering for CDDA)

sox any-file -b 16 outfile rate -I 22050 dither

sox 24-bit-file outfile rate -v 88200
(outfile bit depth unchanged at 24-bit)

Lesson over for today

-bandpass
bandpass is offline   Reply With Quote
Old 11th November 2008   #28
Lives for gear
 
idylldon's Avatar
 
Joined: Nov 2003
Location: Idyllwild, CA
Posts: 2,611

Thanks for the help!

Cheers,
--
Don
idylldon is offline   Reply With Quote
Old 12th November 2008   #29
Lives for gear
 
taturana's Avatar
 
Joined: Sep 2006
Location: Rio de Janeiro, Brazil
Posts: 4,057

Thread Starter
Verified Member
thanks for that...
taturana is online now   Reply With Quote
Old 9th March 2011   #30
Gear nut
 
Joined: Mar 2004
Posts: 111

Send a message via AIM to thedug Send a message via MSN to thedug Send a message via Yahoo to thedug Send a message via Skype™ to thedug
I thought I would open up this old thread to see what folks are thinking on this topic lately.

The R8BrainPro graphs sure do "look" alot better than others.

Also, the new wavelab crystal converter looks like a close 2nd.
thedug is offline   Reply With Quote
New Reply New Reply Submit Thread to Facebook Facebook  Submit Thread to Twitter Twitter  Submit Thread to LinkedIn LinkedIn 



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Similar Threads
Thread Thread starter Forum Replies Last Post
Best SRC for osx? rtb197 Mastering forum 18 16th May 2008 08:39 AM
What is the best SRC out there ? djanogil Mastering forum 7 8th January 2008 01:15 AM
New SRC discussion George Necola Mastering forum 14 30th September 2007 07:06 PM
SRC and Dither miditus Mastering forum 6 26th July 2007 12:43 PM
SRC shoot out Jules So much gear, so little time! 10 7th February 2003 11:34 PM


All times are GMT +1. The time now is 01:23 PM.

Home - Search Forum - Contact Us - Terms Of Use - Advertise on Gearslutz - All Advertisers - Archive - Top
 
 
Powered by vBulletin®
Gearslutz.com LTD - UK Company Number 7597610.
Registered Office - 35 Ballards Lane, London, N3 1XW.
Hosted by Nimbus Hosting.

SEO by vBSEO ©2010, Crawlability, Inc.