[vorbis-dev] mpg123 with ogg decoder...

kcarnold at yahoo.com kcarnold at yahoo.com
Fri Sep 1 03:37:52 PDT 2000



On Fri, Sep 01, 2000 at 10:39:49AM +0200, Roman Razilov wrote:
> > On Thu, Aug 31, 2000 at 10:16:04AM +0200, Roman Razilov wrote:
> > > I'm building a car audio player based on Cajun projekt (
> > > http://cajun.sourceforge.net ). It uses remote control interface of
> > mpg123
> > > for control play.. I'd prefer to use vorbis format for ripping my CD's
> > but,
> > > I still have some music in mp3 format only.. Did anybody consider to put
> > > vorbis decoder in mpg123, so it can play al this 4 formats. Or it's
> > better
> > > to switch to freeamp ?
> > 
> > Why don't you try ogg123? (vorbis/vorbis-tools/) If you really need mpg123
> > command-line compatibility, the needed code changes are pretty simple
> > because
> > it's separated from the Vorbis libraries.
> 	[Roman Razilov]  
> 	First, Cajun uses Remote-control interface do load/start/stop mpegs
> in mpg123, it does not starts/kills  mpg123 each time you need to jump to
> another track -> no latency / gap between songs, it even forks and buffers
> output, so if I starts decode even playing of previous track is not
> finished, I can play MP3 filled CD in my old 4x CDROM without any gap
> between songs, another problem, I want mpg and ogg decoder use same output
> buffer / device pipeline. Using external buffer could be a solution, but wat
> about 22kHz coded files ? and still a problem of track gap.. 
> 	 I think the best solution is to add ogg support to mpg123 ( I think
> it's easier as add remote control & mpg decode to ogg123 ).
> 	mpg123 is oft used for "embedded" jukeboxes ( like Cajun, Irmp etc.
> ) due it's remotecontrol interface. 

Adding multiple-format decoding to any one player without plugins is almost
certainly a mess. My suggestion would be to build in a little more smarts into
the remote controller to detect whether or not it is a Vorbis or MP3 (could be
just by extension, or if the frontend's buffering system can handle it, a
magic detection like file(1)). ogg123 could relatively easily be adapted to use
a remote control interface similar to mpg123 (although the concept of the
frame would of course be different, since Vorbis is VBR); as I have said in the
recent past, just provide an interface and I'll implement it; it won't be that
hard.

Kenneth

--- >8 ----
List archives:  http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a message to 'vorbis-dev-request at xiph.org'
containing only the word 'unsubscribe' in the body.  No subject is needed.
Unsubscribe messages sent to the list will be ignored/filtered.



More information about the Vorbis-dev mailing list