HydrogenAudio

Lossy Audio Compression => Opus => Topic started by: polemon on 2013-07-12 01:39:59

Title: When does Opus come to SoX?
Post by: polemon on 2013-07-12 01:39:59
I use SoX for recording on Windows, mostly. It's the tool I find the easiest to use, and it has never let me down so far.

SoX doesn't seem to support Opus yet, however. I asked on the SoX mailing list about that some time ago, but all I got, was someone translating my question into Esperanto, and telling me to ask all further question in Esperanto as well. No answer as such, though.

Does anybody know when Opus support will come to SoX? I don't need it desperately, but the computers that do the recordings only run Windows, and on that, SoX is the only sound recording tool that makes sense to me. I'd like to play around a bit, see how well it works with my 8 hours long live recordings.
Title: When does Opus come to SoX?
Post by: Dynamic on 2013-07-12 07:34:20
I guess you could probably use sox as 'rec' to record 48kHz audio and direct it as WAV PCM or a similar raw stream but direct that output to stdout then direct that to opusenc as input. You could try testing that.
Title: When does Opus come to SoX?
Post by: Anakunda on 2013-07-13 00:41:52
I'm just curious if pre-resampling with SoX to 48khz is good enough, i.e. no internal resampling by libopus is made
Title: When does Opus come to SoX?
Post by: db1989 on 2013-07-13 00:45:07
Curious? Then, as usual, simply check http://src.infinitewave.ca/ (http://src.infinitewave.ca/). As you will see, SoX does pretty great, particularly at “VHQ”. I really doubt you need to worry. I presume the resampler in Opus is equally competent.
Title: When does Opus come to SoX?
Post by: saratoga on 2013-07-13 01:53:07
I presume the resampler in Opus is equally competent.


It uses the Xiph Speex resampler (also from that link), which is quite good.
Title: When does Opus come to SoX?
Post by: polemon on 2013-07-13 03:31:14
I guess you could probably use sox as 'rec' to record 48kHz audio and direct it as WAV PCM or a similar raw stream but direct that output to stdout then direct that to opusenc as input. You could try testing that.


It's actually what I do right now:

Code: [Select]
rec -t raw - | opusenc --raw - %filename%


It works OK, and all, but I still need to install the Opus tools, etc. On windows, that isn't exactly pleasant. That is, using the console in general, isn't a pleasant experience on Windows.
Title: When does Opus come to SoX?
Post by: itisljar on 2013-07-13 19:33:40
Why? Don't use console, use ConEmu