Help - Search - Members - Calendar
Full Version: Oggdec Playback
Hydrogenaudio Forums > Lossy Audio Compression > Ogg Vorbis > Ogg Vorbis - General
boiling_ice2k4
hey,

Is it possible to use Oggdec to playback ogg vorbis files, instead of decoding it to wave? What commands would you use to accomplish this?
-
Peter Harris
QUOTE(boiling_ice2k4 @ Oct 22 2002 - 02:57 PM)
  Is it possible to use Oggdec to playback ogg vorbis files, instead of decoding it to wave?

Sure, it's possible, but why? Is there something wrong with ogg123?

QUOTE
What commands would you use to accomplish this?

oggdec filename.ogg -o - | sox - -r !soundcard sample rate! - resample > /dev/audio
(or something to that effect) should produce something reasonable.
john33
QUOTE(boiling_ice2k4 @ Oct 22 2002 - 08:57 PM)
hey,

  Is it possible to use Oggdec to playback ogg vorbis files, instead of decoding it to wave?  What commands would you use to accomplish this?
-

If you use my version of oggdec, available at the sites below, yes. The 'official' oggdec does not support playback.

The command line would be:
CODE

oggdec -p 10.ogg

There are other options you can use too.
CODE

OGGDEC.EXE - Copyright (c) 2002 John Edwards

Usage: oggdec [options] input.ogg [...]

OPTIONS
-h,  --help       Prints this help information.
-a,  --album      Use ReplayGain Album/Audiophile gain settings, OR
-r,  --radio      Use ReplayGain Track/Radio gain settings.
-d,  --dither X   Dither output, where X =.
              0   for       dither OFF (default).
              1   for       dither without Noise Shaping.
              2   for       dither with Light Noise Shaping.
              3   for       dither with Medium Noise Shaping.
              4   for       dither with Heavy Noise Shaping.
-p,  --play       Plays ogg files thru the soundcard using Windows audio, OR
-s,  --shuffle    Shuffles and then plays ogg files using Windows audio.
-o,  --stdout     Writes output to stdout in 16 bit ONLY. The format
                  options are ignored with this option.
PLAYBACK PRIORITY OPTIONS (ONE option ONLY may be used)
-c,  --class X    Set playback priority class, where X =
             0    for       NORMAL priority.
             1    for       HIGH priority (default).
             2    for       REALTIME priority.
FORMAT OPTIONS (ONE option ONLY may be used)
-b,  --bits  X    Set output sample format, where X =
             1    for       Unsigned 8 bit PCM data.
             2    for       16 bit PCM data (default).
             3    for       24 bit PCM data.
             4    for       32 bit PCM data.
             5    for       32 bit floats.

INPUT FILES
OggDec input files must be Ogg Vorbis I files with
a sample rate of 48000Hz, 44100Hz, 32000Hz, 24000Hz,
22050Hz, 16000Hz, 12000Hz, 11025Hz or 8000Hz.
Wildcards (?, *) can be used in the filename.

smile.gif
rjamorim
QUOTE(Peter Harris @ Oct 22 2002 - 05:41 PM)
Sure, it's possible, but why? Is there something wrong with ogg123?

It seems he wants a WIndows solution.
boiling_ice2k4
Thank you for the feedback! I'll try some of those options.

QUOTE(Peter Harris @ Oct 22 2002 - 12:41 PM)

Sure, it's possible, but why? Is there something wrong with ogg123?
QUOTE


I wouldn't mind using ogg123, but I don't have the knowledge or skill when it comes to compiling anything from the source code. If there was a precompiled version of ogg123, I'd be happy to use it
Peter Harris
QUOTE(rjamorim @ Oct 22 2002 - 03:46 PM)
It seems he wants a WIndows solution.

A Windows solution, eh?

In that case, my answer changes to 'No. Install WinAMP 2.81'.
rjamorim
QUOTE(Peter Harris @ Oct 22 2002 - 06:48 PM)
In that case, my answer changes to 'No. Install WinAMP 2.81'.

Actually, the answer is "yes". It surely IS possible to use OggDec (John33's version) to playback Ogg files.

Actually, it's much better than Xiph's official oggdec, since it also supports dithering, replaygain, playback priority and even shuffle when you playback a list of files (or with wildcards)
dev0
AFAIK there is no Win32 ogg123, becuase it wouldn't compile.

Oggdec is the Win32 cmd.line oggdecoder and is part of the official vorbis-tools package. Though john33s version (or his enhanched version, since oggdec is originally his program) should be used.

dev0
Slo Mo Snail
Are there any plans to submit john33's oggdec version to the Xiph people?
The only problem will be the win32 dependency but maybe one could move the win32 playback to ogg123 and make the remaining code more platform independent
Hanky
Also John33's OggdropXPd has an option to playback dropped files. I prefer Winamp however.
boiling_ice2k4
yes, I also prefer playback in winamp..but I have an old computer which only has DOS. It's a 486 100mhz with only 4MB of RAM. I was thinking of dedicating it just to playing ogg files. 650MB could still hold quite a few vorbis encoded CDs,

Thanks for the oggdec exe John33! smile.gif
john33
QUOTE(Slo Mo Snail @ Oct 28 2002 - 08:16 PM)
Are there any plans to submit john33's oggdec version to the Xiph people?
The only problem will be the win32 dependency but maybe one could move the win32 playback to ogg123 and make the remaining code more platform independent

No, no plans at the moment, there was some interest shortly before the release of 1.0, but that evaporated with the release of their own somewhat 'featureless' version! ( wink.gif ) In reality, it wouldn't take all that much effort to make my oggdec platform independent (at least, as between windows and linux).

Thanks for the interest, guys. smile.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.