* oggenc weirdness
@ Kerry Hoath
` Igor Gueths
` Geoff Shang
0 siblings, 2 replies; 5+ messages in thread
From: Kerry Hoath @ UTC (permalink / raw)
To: speakup
Since we're all talking about anything and everything at the moment, here's
one for the list to think on:
I am currently sampling some 4-track material I own to keep it
safe in case the tapes age or snap.
I get the wav files as I want them; (I can summarize to the list if
anyone cares with the scripts I wrote yesterday to make it all work)
and these aren't Jim's scripts, I wrote these ones with comments to aid
in maintainance.
I have a .wav file 22050 samples per second 16-bit little endian mono.
I try to oggenc this file with the following command:
oggenc -b32 side01.wav
and get a message that "mode initialization failed"
This used to work fine in 1.0rc2 but appears to have broken in 1.0rc3
Anyone else running 1.0rc3 and seen this behaviour?
If I don't specify -b32 I get an encoded file which averages 51kb/s which is far too
much bandwidth to waste on this stuff. At the moment I am left to mp3 the files
with lame -h -b32 side01.wav side01.mp3
which does work but I would preferr to use ogg. Must I downgrade to 1.0rc2 again?
Any insites would be apreciated.
Regards, Kerry.
--
Kerry Hoath: kerry@gotss.net kerry@gotss.eu.org or kerry@gotss.spice.net.au
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: oggenc weirdness
oggenc weirdness Kerry Hoath
@ ` Igor Gueths
` Kerry Hoath
` Geoff Shang
1 sibling, 1 reply; 5+ messages in thread
From: Igor Gueths @ UTC (permalink / raw)
To: speakup
Hi Carry. I think that mp3s are a good way to go. Wouldn't you prefer to try to sample the audio at 44100 khz? The only problem with that is that you might get some tape hiss or noise depending on the playing device you are using and the age of the tape (s). Again, you don't have to re-record the samples, but that's just my opinion on quality. Hope this helps.
----- Original Message -----
From: Kerry Hoath <kerry@gotss.net>
To: <speakup@braille.uwo.ca>
Sent: Sunday, February 24, 2002 1:20 AM
Subject: oggenc weirdness
> Since we're all talking about anything and everything at the moment, here's
> one for the list to think on:
> I am currently sampling some 4-track material I own to keep it
> safe in case the tapes age or snap.
> I get the wav files as I want them; (I can summarize to the list if
> anyone cares with the scripts I wrote yesterday to make it all work)
> and these aren't Jim's scripts, I wrote these ones with comments to aid
> in maintainance.
> I have a .wav file 22050 samples per second 16-bit little endian mono.
> I try to oggenc this file with the following command:
> oggenc -b32 side01.wav
> and get a message that "mode initialization failed"
> This used to work fine in 1.0rc2 but appears to have broken in 1.0rc3
> Anyone else running 1.0rc3 and seen this behaviour?
> If I don't specify -b32 I get an encoded file which averages 51kb/s which is far too
> much bandwidth to waste on this stuff. At the moment I am left to mp3 the files
> with lame -h -b32 side01.wav side01.mp3
> which does work but I would preferr to use ogg. Must I downgrade to 1.0rc2 again?
>
> Any insites would be apreciated.
>
> Regards, Kerry.
>
> --
> Kerry Hoath: kerry@gotss.net kerry@gotss.eu.org or kerry@gotss.spice.net.au
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: oggenc weirdness
` Igor Gueths
@ ` Kerry Hoath
` Igor Gueths
0 siblings, 1 reply; 5+ messages in thread
From: Kerry Hoath @ UTC (permalink / raw)
To: speakup
Sampling at 44100 is not a good idea at all, here is why.
Assume we have a 44100hz stream at 16 bits per sample so that is
88200 bytes per second. we want to compress that to 32 kilobits per second or
4000 bytes per second.
A quick devision shows a 22:1 compression is involved. At such
agressive compression settings lame downsamples by default and introduces noise
into the sample fromt he downsampling. This is agrivated by the mp3 encoding
process. If we start sampling at 22050 rather than 44100
then it is only a 11:1 compression ratio.
Also, mp3 is not free to use and has patent restrictions on its use.
ogg sounds better, is completely free and works well.
Below is the technical reason why you don't do 4-track tapes at 44100:
Take your average 4-track tape recorded at 15/16 inches per second.
This is half regular tape speed which is 1 and 7/8 inches per second.
On side 1 we have track 1 on the left channel and reversed track 4 on the right channel.
On side 2 we have track 2 on the left channel and track 3 reversed on the right channel.
the fastest way to sample these tapes is to do the following:
Sample side1 at 44100 16-bit stereo.
fiddle the wave file so that the header reads 22050 samples per second.
This halves the speed from normal tape speeds digitally and since no math
is involved we retain whatever quality we got into the sound card except see note below.
Split the wave file into left channel only track one and right channel only track 4.
Reverse the right channel. We have now got 2 tracks of aproximately 90
minutes in length but have only sampled for 45 minutes.
This means that if we sample both sides and slice them up we sample for 90
minutes and fiddle for 10 minutes to get 6 hours of wave data on disk.
Not bad at all.
The problem is that even though the niquist frequency of 44100 samples per second is 22050hz
most low-end soundcards don't record high frequencies say above 16khz too well
and some tape recorders don't play them well either.
This means that some of the top end is lost by sampling at double speed and
halving sample rate. This stuff is only spoken word so
the loss is not too great. Also lame puts a lowpass
polyphase filter on the wave data at about 7500hz anyway.
I could sample at 32000hz and half the rate to 16000 but I may loose more
high frequency component and would be incompatible with a lot of sound hardware that won't
play back 16khz sample rates.
Sampling on a 4-track machine would also preserve more quality but would take 4 times longer.
I just need to find a good card for the pc that is supported under Linux and that has good
quality analog inputs.
Sound blaster live cards tend to be a bit noisy in this regard. It's almost worth
dragging out the Gravis ultrasound max or the pas16 cards I have here.
The pas16 cards have the best line input i've heard on cheap cards but require
a dynamic microphone and do not provide phantom power so will
not run a condenser without a Microphone pre-amp.
Anyway I've ranted long enough :-)
Regards, Kerry.
On Sun, Feb 24, 2002 at 10:18:13AM -0500, Igor Gueths wrote:
> Hi Carry. I think that mp3s are a good way to go. Wouldn't you prefer to try to sample the audio at 44100 khz? The only problem with that is that you might get some tape hiss or noise depending on the playing device you are using and the age of the tape (s). Again, you don't have to re-record the samples, but that's just my opinion on quality. Hope this helps.
> ----- Original Message -----
> From: Kerry Hoath <kerry@gotss.net>
> To: <speakup@braille.uwo.ca>
> Sent: Sunday, February 24, 2002 1:20 AM
> Subject: oggenc weirdness
>
>
> > Since we're all talking about anything and everything at the moment, here's
> > one for the list to think on:
> > I am currently sampling some 4-track material I own to keep it
> > safe in case the tapes age or snap.
> > I get the wav files as I want them; (I can summarize to the list if
> > anyone cares with the scripts I wrote yesterday to make it all work)
> > and these aren't Jim's scripts, I wrote these ones with comments to aid
> > in maintainance.
> > I have a .wav file 22050 samples per second 16-bit little endian mono.
> > I try to oggenc this file with the following command:
> > oggenc -b32 side01.wav
> > and get a message that "mode initialization failed"
> > This used to work fine in 1.0rc2 but appears to have broken in 1.0rc3
> > Anyone else running 1.0rc3 and seen this behaviour?
> > If I don't specify -b32 I get an encoded file which averages 51kb/s which is far too
> > much bandwidth to waste on this stuff. At the moment I am left to mp3 the files
> > with lame -h -b32 side01.wav side01.mp3
> > which does work but I would preferr to use ogg. Must I downgrade to 1.0rc2 again?
> >
> > Any insites would be apreciated.
> >
> > Regards, Kerry.
> >
> > --
> > Kerry Hoath: kerry@gotss.net kerry@gotss.eu.org or kerry@gotss.spice.net.au
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup@braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
>
> _________________________________________________________
> Do You Yahoo!?
> Get your free @yahoo.com address at http://mail.yahoo.com
>
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
--
Kerry Hoath: kerry@gotss.net kerry@gotss.eu.org or kerry@gotss.spice.net.au
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: oggenc weirdness
` Kerry Hoath
@ ` Igor Gueths
0 siblings, 0 replies; 5+ messages in thread
From: Igor Gueths @ UTC (permalink / raw)
To: speakup
Hi Kerry. Now I see where you are going with this. Sorry for the lame opinion lol!
----- Original Message -----
From: Kerry Hoath <kerry@gotss.net>
To: <speakup@braille.uwo.ca>
Sent: Sunday, February 24, 2002 10:49 AM
Subject: Re: oggenc weirdness
> Sampling at 44100 is not a good idea at all, here is why.
> Assume we have a 44100hz stream at 16 bits per sample so that is
> 88200 bytes per second. we want to compress that to 32 kilobits per second or
> 4000 bytes per second.
> A quick devision shows a 22:1 compression is involved. At such
> agressive compression settings lame downsamples by default and introduces noise
> into the sample fromt he downsampling. This is agrivated by the mp3 encoding
> process. If we start sampling at 22050 rather than 44100
> then it is only a 11:1 compression ratio.
> Also, mp3 is not free to use and has patent restrictions on its use.
> ogg sounds better, is completely free and works well.
> Below is the technical reason why you don't do 4-track tapes at 44100:
>
> Take your average 4-track tape recorded at 15/16 inches per second.
> This is half regular tape speed which is 1 and 7/8 inches per second.
> On side 1 we have track 1 on the left channel and reversed track 4 on the right channel.
> On side 2 we have track 2 on the left channel and track 3 reversed on the right channel.
> the fastest way to sample these tapes is to do the following:
> Sample side1 at 44100 16-bit stereo.
> fiddle the wave file so that the header reads 22050 samples per second.
> This halves the speed from normal tape speeds digitally and since no math
> is involved we retain whatever quality we got into the sound card except see note below.
> Split the wave file into left channel only track one and right channel only track 4.
> Reverse the right channel. We have now got 2 tracks of aproximately 90
> minutes in length but have only sampled for 45 minutes.
> This means that if we sample both sides and slice them up we sample for 90
> minutes and fiddle for 10 minutes to get 6 hours of wave data on disk.
> Not bad at all.
> The problem is that even though the niquist frequency of 44100 samples per second is 22050hz
> most low-end soundcards don't record high frequencies say above 16khz too well
> and some tape recorders don't play them well either.
> This means that some of the top end is lost by sampling at double speed and
> halving sample rate. This stuff is only spoken word so
> the loss is not too great. Also lame puts a lowpass
> polyphase filter on the wave data at about 7500hz anyway.
> I could sample at 32000hz and half the rate to 16000 but I may loose more
> high frequency component and would be incompatible with a lot of sound hardware that won't
> play back 16khz sample rates.
> Sampling on a 4-track machine would also preserve more quality but would take 4 times longer.
> I just need to find a good card for the pc that is supported under Linux and that has good
> quality analog inputs.
> Sound blaster live cards tend to be a bit noisy in this regard. It's almost worth
> dragging out the Gravis ultrasound max or the pas16 cards I have here.
> The pas16 cards have the best line input i've heard on cheap cards but require
> a dynamic microphone and do not provide phantom power so will
> not run a condenser without a Microphone pre-amp.
> Anyway I've ranted long enough :-)
>
> Regards, Kerry.
> On Sun, Feb 24, 2002 at 10:18:13AM -0500, Igor Gueths wrote:
> > Hi Carry. I think that mp3s are a good way to go. Wouldn't you prefer to try to sample the audio at 44100 khz? The only problem with that is that you might get some tape hiss or noise depending on the playing device you are using and the age of the tape (s). Again, you don't have to re-record the samples, but that's just my opinion on quality. Hope this helps.
> > ----- Original Message -----
> > From: Kerry Hoath <kerry@gotss.net>
> > To: <speakup@braille.uwo.ca>
> > Sent: Sunday, February 24, 2002 1:20 AM
> > Subject: oggenc weirdness
> >
> >
> > > Since we're all talking about anything and everything at the moment, here's
> > > one for the list to think on:
> > > I am currently sampling some 4-track material I own to keep it
> > > safe in case the tapes age or snap.
> > > I get the wav files as I want them; (I can summarize to the list if
> > > anyone cares with the scripts I wrote yesterday to make it all work)
> > > and these aren't Jim's scripts, I wrote these ones with comments to aid
> > > in maintainance.
> > > I have a .wav file 22050 samples per second 16-bit little endian mono.
> > > I try to oggenc this file with the following command:
> > > oggenc -b32 side01.wav
> > > and get a message that "mode initialization failed"
> > > This used to work fine in 1.0rc2 but appears to have broken in 1.0rc3
> > > Anyone else running 1.0rc3 and seen this behaviour?
> > > If I don't specify -b32 I get an encoded file which averages 51kb/s which is far too
> > > much bandwidth to waste on this stuff. At the moment I am left to mp3 the files
> > > with lame -h -b32 side01.wav side01.mp3
> > > which does work but I would preferr to use ogg. Must I downgrade to 1.0rc2 again?
> > >
> > > Any insites would be apreciated.
> > >
> > > Regards, Kerry.
> > >
> > > --
> > > Kerry Hoath: kerry@gotss.net kerry@gotss.eu.org or kerry@gotss.spice.net.au
> > >
> > > _______________________________________________
> > > Speakup mailing list
> > > Speakup@braille.uwo.ca
> > > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
> >
> > _________________________________________________________
> > Do You Yahoo!?
> > Get your free @yahoo.com address at http://mail.yahoo.com
> >
> >
> > _______________________________________________
> > Speakup mailing list
> > Speakup@braille.uwo.ca
> > http://speech.braille.uwo.ca/mailman/listinfo/speakup
> >
>
> --
> Kerry Hoath: kerry@gotss.net kerry@gotss.eu.org or kerry@gotss.spice.net.au
>
> _______________________________________________
> Speakup mailing list
> Speakup@braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: oggenc weirdness
oggenc weirdness Kerry Hoath
` Igor Gueths
@ ` Geoff Shang
1 sibling, 0 replies; 5+ messages in thread
From: Geoff Shang @ UTC (permalink / raw)
To: speakup
On Sun, 24 Feb 2002, Kerry Hoath wrote:
> Since we're all talking about anything and everything at the moment, here's
> one for the list to think on:
> I am currently sampling some 4-track material I own to keep it
> safe in case the tapes age or snap.
> I get the wav files as I want them; (I can summarize to the list if
> anyone cares with the scripts I wrote yesterday to make it all work)
> and these aren't Jim's scripts, I wrote these ones with comments to aid
> in maintainance.
> I have a .wav file 22050 samples per second 16-bit little endian mono.
> I try to oggenc this file with the following command:
> oggenc -b32 side01.wav
> and get a message that "mode initialization failed"
> This used to work fine in 1.0rc2 but appears to have broken in 1.0rc3
> Anyone else running 1.0rc3 and seen this behaviour?
Hi Kerry:
Excuse me if you solved this. firstly, make sure you're running RC3 of
everything, libs and oggenc. Theory says that -b32 should work without
giving you errors. But! This is probably not what you want.
RC3 changed how some things were done. Vorbis until recently didn't give
you the rate you asked for, it picked a predefined mode that somewhat
aproximated the rate you entered. As of version 1.0RC3 however, it will
actually give you the rate you want, but this mode isn't as good as the
predefined modes. The modes are specified as a quality value that ranges
between 0.0 and 10.0 and can run to several decimal places. As a rough
guide, here's the aproximate average bitrate for the various VBR quality
settings for a 44.1khz stereo file:
-q 0 - 64 kbps
-q 1 - 80 kbps
-q 2 - 96 kbps
-q 3 - 112 kbps (default if not specified)
-q 4 - 128 kbps
-q 5 - 160 kbps (dramatic reduction in channel coupling at 5 and above)
-q 6 - 192 kbps
-q 7 - 224 kbps
-q 8 - 256 kbps
-q 9 - 320 kbps
-q 10 - 498 kbps
You will have noticed that -q 3.0 (i.e. aprox 112 kbps) is the default. It
is important to note that these are vorbis bit rates, not MP3 equivalents.
This should be obvious, but the true impact of this might not be. 112 kbps
is, in my experience, very good, and is generally considered to be
equivalent to 160 kbps MP3. On the occasions I've used RC3, I haven't been
able to hear any degradation at -q 3 and the smaller file size is nice.
These quality values don't yet scale properly for lower sampling rates
(this will finally be done in RC4), but the same principle applies. So, no
matter what you're
encoding, -q 0 will get you the lowest possible rate. Using RC3, -q 0 on
22khz mono will give you aprox. 32kbps. If quality matters to you, you
might want to go higher, perhaps to 1.0 or so. But hey, experiment and see
what you think.
Geoff.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~ UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
oggenc weirdness Kerry Hoath
` Igor Gueths
` Kerry Hoath
` Igor Gueths
` Geoff Shang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).