Hello, In one of my recent assignments, I was asked to develop a ogg player. I am not able to find the right repository of the source code. There are few repositories on vorbis but I am not clear which one is the right one for Windows environment. If somebody has successfully compiled any ogg player ever, his ideas will be helpful to me. In one of the code set, I was able to compile the decoder_example and encoder_example but how to use them is still not clear. Any help in this regard will be highly appreciated. Regards Prashun Gupta -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20060819/a2e6ba71/attachment.htm
Prashun Gupta wrote:> Hello, > > In one of my recent assignments, I was asked to develop a ogg player. > > I am not able to find the right repository of the source code. There are few repositories on vorbis but I am not clear which one is the right one for Windows environment. > > If somebody has successfully compiled any ogg player ever, his ideas will be helpful to me. > > In one of the code set, I was able to compile the decoder_example and encoder_example but how to use them is still not clear. > > Any help in this regard will be highly appreciated. ><http://www.xiph.org/svn/> If I remember correctly the {decoder,encoder}_example read standard input and write to standard output. I don't know if you can do the necessary redirection on the Windows command line to make that useful. In Unix it would look like ./encoder_example < in.wav > out.ogg You should however be able to simply change the file handles used so they access files. It sounds like you've got trunk/vorbis and trunk/ogg these will let you build a basic player, the simplest thing to do is use libvorbisfile, have a look at vorbisfile_example.c to see how that's done. Finally, depending what you want to do, Illiminable's DirectShow filters might be more appropriate, see <http://www.illiminable.com/ogg/>. (These are also in svn as trunk/oggdsf) -- imalone
If you look at the code of my oggdec v1.9.2, the source is at rarewares.org, you'll find simple player routines for win32. John Prashun Gupta wrote:> *Hello,* > ** > *In one of my recent assignments, I was asked to develop a ogg player.* > ** > *I am not able to find the right repository of the source code. There > are few repositories on vorbis but I am not clear which one is the right > one for Windows environment.* > ** > *If somebody has successfully compiled any ogg player ever, his ideas > will be helpful to me.* > ** > *In one of the code set, I was able to compile the decoder_example and > encoder_example but how to use them is still not clear.* > ** > *Any help in this regard will be highly appreciated.* > ** > *Regards* > *Prashun Gupta* > > > ------------------------------------------------------------------------ > > _______________________________________________ > Vorbis-dev mailing list > Vorbis-dev@xiph.org > http://lists.xiph.org/mailman/listinfo/vorbis-dev > > > ------------------------------------------------------------------------ > > No virus found in this incoming message. > Checked by AVG Free Edition. > Version: 7.1.405 / Virus Database: 268.11.2/422 - Release Date: 17/08/2006
Hello, I am getting problem in getting problem in locating definition of ogg_uint64_t in typedef struct { const float* FilterCoeff; ogg_uint64_t Mask; double Add; float Dither; float ErrorHistory [2] [16]; // max. 2 channels, 16th order Noise shaping float DitherHistory [2] [16]; int LastRandomNumber [2]; } dither_t; Do anybody knows where it is defined. prashun ----- Original Message ----- From: "Prashun Gupta" <prashung@gmail.com> To: "John Edwards" <john.edwards33@ntlworld.com> Cc: <vorbis-dev@xiph.org> Sent: Monday, August 21, 2006 1:59 PM Subject: Re: [Vorbis-dev] Ogg Player Code> Dear John, > > Thanks for detailed explanation. > > If I am not troubling you, can you tar/zip this root and send it to me > removing any of your proprietary code. > I am extremely new to the things and may not locate so fast. > > I am in deep need of these things. > > Regards > Prashun > > > ----- Original Message ----- > From: "John Edwards" <john.edwards33@ntlworld.com> > To: "Prashun Gupta" <prashung@gmail.com> > Cc: <vorbis-dev@xiph.org> > Sent: Monday, August 21, 2006 1:44 PM > Subject: Re: [Vorbis-dev] Ogg Player Code > > > > Hi Prashun, > > > > I assume you already have the ogg and vorbis libs if you've managed to > > compile the examples? If not, you'll need the ogg lib, the vorbis lib > > and you'll also need vorbis-tools, IIRC. > > > > Create a root dir of ogg-vorbis, for example, and place all the others > > beneath that: > > ogg-vorbis > > | > > ------------------------------- > > | | | > > ogg vorbis vorbis-tools > > > > Add the oggdec code of mine as another dir in the vorbis-tools dir and > > it should build 'out-of-box' with the VC6 IDE. Otherwise you may need to > > create some makefiles. > > > > Good luck > > > > John > > > > Prashun Gupta wrote: > > > Hello John, > > > > > > Thanks!! This code is what I need but a few road blocks.. > > > > > > The source is putting error for few .h files like vorbis.h and ogg.h > > > mentioned in the code. > > > > > > Where to find these .h files. > > > > > > Any help will be higly appreciated. > > > > > > Regards > > > Prashun > > > > > > > > > ----- Original Message ----- > > > From: "John Edwards" <john.edwards33@ntlworld.com> > > > To: "Prashun Gupta" <prashung@gmail.com> > > > Cc: <vorbis-dev@xiph.org> > > > Sent: Sunday, August 20, 2006 4:15 AM > > > Subject: Re: [Vorbis-dev] Ogg Player Code > > > > > > > > >> If you look at the code of my oggdec v1.9.2, the source is at > > >> rarewares.org, you'll find simple player routines for win32. > > >> > > >> John > > >> > > >> Prashun Gupta wrote: > > >>> *Hello,* > > >>> ** > > >>> *In one of my recent assignments, I was asked to develop a ogg > player.* > > >>> ** > > >>> *I am not able to find the right repository of the source code.There> > >>> are few repositories on vorbis but I am not clear which one is the > right > > >>> one for Windows environment.* > > >>> ** > > >>> *If somebody has successfully compiled any ogg player ever, hisideas> > >>> will be helpful to me.* > > >>> ** > > >>> *In one of the code set, I was able to compile the decoder_exampleand> > >>> encoder_example but how to use them is still not clear.* > > >>> ** > > >>> *Any help in this regard will be highly appreciated.* > > >>> ** > > >>> *Regards* > > >>> *Prashun Gupta* > > >>> > > >>> > > > >>> ------------------------------------------------------------------------ > > >>> > > >>> _______________________________________________ > > >>> Vorbis-dev mailing list > > >>> Vorbis-dev@xiph.org > > >>> http://lists.xiph.org/mailman/listinfo/vorbis-dev > > >>> > > >>> > > > >>> ------------------------------------------------------------------------ > > >>> > > >>> No virus found in this incoming message. > > >>> Checked by AVG Free Edition. > > >>> Version: 7.1.405 / Virus Database: 268.11.2/422 - Release Date: > > > 17/08/2006 > > > > > > > > > >
Does <vorbis-dev@xiph.org> any body ever faced this .... I copied winmm.lib in the link directories of libraries still I am still facing the problem with the wav-out Do you know where to place the winmm.lib or whether I have to do something else. ave_out.obj : error LNK2019: unresolved external symbol __imp__waveOutReset@4 referenced in function _Set_WIN_Params wave_out.obj : error LNK2019: unresolved external symbol __imp__waveOutOpen@24 referenced in function _Set_WIN_Params wave_out.obj : error LNK2019: unresolved external symbol __imp__waveOutGetNumDevs@0 referenced in function _Set_WIN_Params wave_out.obj : error LNK2019: unresolved external symbol __imp__waveOutWrite@12 referenced in function _WIN_Play_Samples wave_out.obj : error LNK2019: unresolved external symbol __imp__waveOutPrepareHeader@12 referenced in function _WIN_Play_Samples wave_out.obj : error LNK2019: unresolved external symbol __imp__waveOutUnprepareHeader@12 referenced in function _free_memory wave_out.obj : error LNK2019: unresolved external symbol __imp__waveOutClose@4 referenced in function _WIN_Audio_close On 8/22/06, John Edwards <john.edwards33@ntlworld.com> wrote:> > Hi Prashun, > > It looks to me as though the required libraries are missing from the link. > > The project should have dependencies on the following projects: > > ogg_static > vorbis_static > vorbisfile_static > > You are missing those libs in the link and you also need to include > 'winmm.lib' in the link. > > regards > > John > > > Prashun Gupta wrote: > > Hello John, > > > > I am facing following problems of linking. Do you have any clue.. > > > > LINK : warning LNK4075: ignoring '/EDITANDCONTINUE' due to > '/INCREMENTAL:NO' > > specification > > oggdec.obj : error LNK2019: unresolved external symbol _ov_read_float > > referenced in function _main > > oggdec.obj : error LNK2019: unresolved external symbol _ov_serialnumber > > referenced in function _main > > oggdec.obj : error LNK2019: unresolved external symbol _ov_time_total > > referenced in function _main > > oggdec.obj : error LNK2019: unresolved external symbol _ov_comment > > referenced in function _main > > oggdec.obj : error LNK2019: unresolved external symbol _ov_clear > referenced > > in function _main > > oggdec.obj : error LNK2019: unresolved external symbol _ov_pcm_total > > referenced in function _main > > oggdec.obj : error LNK2019: unresolved external symbol _ov_seekable > > referenced in function _main > > oggdec.obj : error LNK2019: unresolved external symbol _ov_info > referenced > > in function _main > > oggdec.obj : error LNK2019: unresolved external symbol _ov_streams > > referenced in function _main > > oggdec.obj : error LNK2019: unresolved external symbol _ov_open > referenced > > in function _main > > vcedit.obj : error LNK2019: unresolved external symbol > _vorbis_info_clear > > referenced in function _vcedit_clear_internals > > vcedit.obj : error LNK2019: unresolved external symbol _ogg_sync_clear > > referenced in function _vcedit_clear_internals > > vcedit.obj : error LNK2019: unresolved external symbol _ogg_stream_clear > > referenced in function _vcedit_clear_internals > > vcedit.obj : error LNK2019: unresolved external symbol > _vorbis_comment_clear > > referenced in function _vcedit_clear_internals > > vcedit.obj : error LNK2019: unresolved external symbol > > _vorbis_synthesis_headerin referenced in function _vcedit_open_callbacks > > vcedit.obj : error LNK2019: unresolved external symbol > _ogg_stream_packetout > > referenced in function _vcedit_open_callbacks > > vcedit.obj : error LNK2019: unresolved external symbol > _ogg_stream_pagein > > referenced in function _vcedit_open_callbacks > > vcedit.obj : error LNK2019: unresolved external symbol > _vorbis_comment_init > > referenced in function _vcedit_open_callbacks > > vcedit.obj : error LNK2019: unresolved external symbol _vorbis_info_init > > referenced in function _vcedit_open_callbacks > > vcedit.obj : error LNK2019: unresolved external symbol _ogg_stream_init > > referenced in function _vcedit_open_callbacks > > vcedit.obj : error LNK2019: unresolved external symbol > _ogg_page_serialno > > referenced in function _vcedit_open_callbacks > > vcedit.obj : error LNK2019: unresolved external symbol _ogg_sync_pageout > > > referenced in function _vcedit_open_callbacks > > vcedit.obj : error LNK2019: unresolved external symbol _ogg_sync_wrote > > referenced in function _vcedit_open_callbacks > > vcedit.obj : error LNK2019: unresolved external symbol _ogg_sync_buffer > > referenced in function _vcedit_open_callbacks > > vcedit.obj : error LNK2019: unresolved external symbol _ogg_sync_init > > referenced in function _vcedit_open_callbacks > > vcedit.obj : error LNK2019: unresolved external symbol > _ogg_stream_pageout > > referenced in function _vcedit_write > > vcedit.obj : error LNK2019: unresolved external symbol _ogg_stream_flush > > referenced in function _vcedit_write > > vcedit.obj : error LNK2019: unresolved external symbol > _ogg_stream_packetin > > referenced in function _vcedit_write > > vcedit.obj : error LNK2019: unresolved external symbol > _oggpack_writeclear > > referenced in function __commentheader_out > > vcedit.obj : error LNK2019: unresolved external symbol _oggpack_bytes > > referenced in function __commentheader_out > > vcedit.obj : error LNK2019: unresolved external symbol _oggpack_write > > referenced in function __commentheader_out > > vcedit.obj : error LNK2019: unresolved external symbol > _oggpack_writeinit > > referenced in function __commentheader_out > > vcedit.obj : error LNK2019: unresolved external symbol > > _vorbis_packet_blocksize referenced in function __blocksize > > vcedit.obj : error LNK2019: unresolved external symbol _ogg_page_eos > > referenced in function __fetch_next_packet > > wave_out.obj : error LNK2019: unresolved external symbol > > __imp__waveOutReset@4 referenced in function _Set_WIN_Params > > wave_out.obj : error LNK2019: unresolved external symbol > > __imp__waveOutOpen@24 referenced in function _Set_WIN_Params > > wave_out.obj : error LNK2019: unresolved external symbol > > __imp__waveOutGetNumDevs@0 referenced in function _Set_WIN_Params > > wave_out.obj : error LNK2019: unresolved external symbol > > __imp__waveOutWrite@12 referenced in function _WIN_Play_Samples > > wave_out.obj : error LNK2019: unresolved external symbol > > __imp__waveOutPrepareHeader@12 referenced in function _WIN_Play_Samples > > wave_out.obj : error LNK2019: unresolved external symbol > > __imp__waveOutUnprepareHeader@12 referenced in function _free_memory > > wave_out.obj : error LNK2019: unresolved external symbol > > __imp__waveOutClose@4 referenced in function _WIN_Audio_close > > .\Debug/oggdec.exe : fatal error LNK1120: 41 unresolved externals > > > > > >-------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20060822/ed4ce48e/attachment.htm
Hi Prashun, There should be no need to copy the winmm library anywhere from its normal location. Simply add it as another library in the link and it should be found automatically. regards John Prashun Gupta wrote:> Dear John, > > I was able to remove most of the link errors by changing dependency and > order of build. > > I copied winmm.lib in the link directories of libraries still > I am still facing the problem with the wav-out > > Do you know where to place the winmm.lib or whether I have to do > something else. > > ave_out.obj : error LNK2019: unresolved external symbol > __imp__waveOutReset@4 referenced in function _Set_WIN_Params > > wave_out.obj : error LNK2019: unresolved external symbol > __imp__waveOutOpen@24 referenced in function _Set_WIN_Params > > wave_out.obj : error LNK2019: unresolved external symbol > __imp__waveOutGetNumDevs@0 referenced in function _Set_WIN_Params > > wave_out.obj : error LNK2019: unresolved external symbol > __imp__waveOutWrite@12 referenced in function _WIN_Play_Samples > > wave_out.obj : error LNK2019: unresolved external symbol > __imp__waveOutPrepareHeader@12 referenced in function _WIN_Play_Samples > > wave_out.obj : error LNK2019: unresolved external symbol > __imp__waveOutUnprepareHeader@12 referenced in function _free_memory > > wave_out.obj : error LNK2019: unresolved external symbol > __imp__waveOutClose@4 referenced in function _WIN_Audio_close >
Hi Prashun, I think the following indicates the usage ;) : F:\Testogg>oggdec -h OGGDEC.EXE - Copyright (c) 2002-2005 John Edwards Usage: oggdec [options] input.ogg [...] OPTIONS (upto THREE options ONLY may be used) -h, --help Prints this help information. -a, --album Use ReplayGain Album/Audiophile gain settings, OR -r, --radio Use ReplayGain Track/Radio gain settings. -m, --downmix Downmix multi-channel vorbis to stereo output. -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. F:\Testogg> No, I'm not on Yahoo Messenger, and you're welcome. regards John PS. I shall be away from early on 24 August until 10 September, so any mail received during that time will be unanswered until after my return. Prashun Gupta wrote:> Dear John, > > One of my team member was able to compile it on VC++ 6 > > I was trying on .Net hence the problem of name mangling was occuring. > > Now only the last help..How this exe will run a ogg file. What is the > command. > > Do you have yahoo messenger. Thanks for the help. > > Thanks > Prashun >
Possibly Parallel Threads
- chained files and winamp / vcedit
- Linker Error when compiling Speex decoder
- Transcoding ogg with curl, oggdec, ices2: problem after fallback due to oggdec
- Speex Questions <./Configure %install make [-enable-fixed-point] setting> and Encoding Times etc...
- patch to crosscompile with mingw32 on linux