Hello,
First off, please don't ask development questions directly from a
single developer. I tend to answer emails only a few times a month.
You will get much faster help by asking on IRC (#vorbis on freenode)
or on the vorbis mailing list (vorbis at xiph.org or
vorbis-dev at xiph.org).
I am cc:inf vorbis-dev at xiph.org; please continue discussion there.
> Initially i was not able to provide input to encoder_example file. So i
took
> one wave file(16bit, 44.1KHz) and used it as an argument input to
> encoder_example. Instead of taking the input from stdin i took it using a
> file pointer. I opened the files in binary mode.
> After this for an input of 26Mb (wav file) it gave an output of 70kb (ogg
> file).
The output appears to be much too small to be a correct Vorbis file
unless the input was mostly silence. The encoder_example.c program
will also only accept 44kHz stereo 16-bit. In any case, something in
your build or modification appears to have failed.
Your processor is an XScale ARMv5 processor, so you probably want to
be using the Tremor source base in any case (Integer-only, runs well
on ARM). You can find it in our SVN repository at
http://svn.xiph.org/trunk/Tremor
> Now I am not able to play this file anywhere or do I have to use the
> decoder_example.
If it is generated correctly, it is a normal Vorbis file. It should
play anywhere.
> I tried to give it directly but it didnot work.
Then something is wrong. decoder_example also takes input on stdin,
and sends raw 44.1/16/stereo/le PCM to stdout.
> Ialso want
> to know the significance of other file like "seeking_example" ,
> "vorbisfile_example" and "chaining_example".
These are all simple example programs that show minimal use of the
libraries for encoding, decoding, seeking, decoding using the
'vorbisfile' library (which is what most people want to use for
decoding), and chained stream handling.
> Please help me.
> Tell me the steps in which i should try to run the complete file.
You are already modifying source before even verifying a normal build
is succeeding. I suggest building libvorbis or Tremor unmodified and
seeing if you can get that to work properly before proceeding.
Monty
Xiph.Org