Displaying 20 results from an estimated 24 matches for "ov_info".
Did you mean:
pv_info
2004 Feb 19
3
Channels set to zero?
I seem to have run into a slight problem in my decode/cache routine. For some reason, my ov_info struct is saying that the channels in the bitstream are zero. Is this normal for certain files, and zero signifies something, or is something wrong? The ov_info struct DOES get filled (it isn't NULL), but channels gets set to zero. This of course can cause problems while calculating the buff...
2000 Dec 13
2
ov_clear segfaults?
...>OggVorbis thing. As a test to get me
going, I've just written a quick routine that dumps info about the file
test.ogg in the current directory.
The problem arises when I call ov_clear. I get a segfault everytime. Note
that I am *not* doing any decoding (ov_read) at all, just ov_comment and
ov_info. Should I only call ov_clear if I have called ov_read?
If I comment out the ov_clear, everything works fine. This is good, as it
means I'm on the right track and I at least *partially* know what I'm
doing. :)
Here's the code [try and ignore all the Java required stuff]:
#include <...
2003 Mar 02
1
ov_pcm_total() returns always 0 after ov_open_callbacks()...
Hi Folks,
i implemented the required callback funktions to open an ogg file from
memory.
Now ov_pcm_total() returns always 0, strange thing about is that
ov_pcm_total does not call any of the callback funktions.
I also like to mention that ov_info (which uses the read and seek callback
funktions) delivers correct values. Thats why i doubt that there's an error
in (the rather simple) callback funktions...
Is it valid to call ov_pcm_total() on an ogg file that was opened with
ov_open_callbacks()?
If it is not: How can i calculate the size...
2003 Apr 01
3
Access Violation when calling ov_clear
I get an access violation when calling ov_clear(). I know ov_open() worked because I used ov_info to get the sampling rate and number of channels in the .ogg file. I also know the FILE pointer and the OggVorbis_File structure are still in scope (they're member variables of the same class my deconstructor is in (where ov_clear() is called)). Anyone have any ideas? I opened the file using...
2017 Apr 06
2
Zero length reported.
...f
if (ov_open_callbacks (stdin, &vf, NULL, 0, OV_CALLBACKS_NOCLOSE) < 0)
{
fprintf (stderr, "Input does not appear to be an Ogg bitstream.\n");
exit (1);
}
{
char** ptr = ov_comment (&vf, -1)->user_comments;
vorbis_info* vi = ov_info (&vf, -1);
while (*ptr)
{
fprintf (stderr, "%s\n", *ptr);
++ptr;
}
fprintf (stderr, "\nBitstream is %d channel, %ldHz\n", vi->channels, vi->rate);
fprintf (stderr, "Encoded by: %s\n\n", ov_comm...
2017 Apr 06
2
Zero length reported.
...f
if (ov_open_callbacks (stdin, &vf, NULL, 0, OV_CALLBACKS_NOCLOSE) < 0)
{
fprintf (stderr, "Input does not appear to be an Ogg bitstream.\n");
exit (1);
}
{
char** ptr = ov_comment (&vf, -1)->user_comments;
vorbis_info* vi = ov_info (&vf, -1);
while (*ptr)
{
fprintf (stderr, "%s\n", *ptr);
++ptr;
}
fprintf (stderr, "\nBitstream is %d channel, %ldHz\n", vi->channels, vi->rate);
fprintf (stderr, "Encoded by: %s\n\n", ov_comm...
2003 Dec 14
1
Bride of vorbisfile questions
...e the best way to find out if a given logical
stream is valid vorbis? ov_test and ov_open will fail if the first stream
isn't vorbis (bit of a pain, that, as subsequant streams could be vorbis. Not
way to work around it without abandoning libvorbisfile, I think). I've tried
checking for ov_info returning NULL on the remaining streams but it returns a
struct packed with nonsense anyway. Any better solutions?
Thanks,
John
--- >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-...
2003 Jul 29
2
Uncompressed size in bytes
Hi!
I would like to decompress an ogg vorbis file from the memory to the
memory.
I wrote my own callbacks for it (Why isn't there callback functions for
it? Just for void* data, and a size_t size).
Now I can read the ogg file from the memory but I don't know the total
size of the uncompressed data (I would like to decompress the data at
once).
How can I get the bitstream decompressed
2003 Sep 14
6
ov_clear(&vorbis) segfaults?
...n I try to ov_clear the vorbis
file, it segfaults.
I can attach or otherwise make availible some demo source code, but for
now I'll just pull out relevant lines:
//BEGIN PSEUDO CODE
OggVorbis_File vorbis;
vorbis_info *info;
if(ov_open(infile, &vorbis, NULL, 0) != 0) error();
if((info = ov_info(&vorbis, -1)) == NULL) error();
if((availible_chunks[tint]->len = ov_pcm_total(&vorbis, -1)) ==
OV_EINVAL) error();
while((tulong = ov_read(&vorbis, tuint8p, 4096, endian, 2, 1,
&bitstream)) != 0) dothings_withdata(); //While not end.
if(ov_clear(&vorbis) != 0) error(); //S...
2004 Sep 07
3
Introducing ov_open_callbacksp and ov_clearp
...almOS and the libvorbisfile must be
compiled in ARM whereas calling code is in 68K. This implies that the
interface ov_open_callback is not usable because the OggVorbis_File *vf must
point to something in the target architecture (ARM) whereas the caller
cannot do that.
As well as for this I need a ov_info_basic function so that no internal
structure is returned (which seems to me a somewhat bad design because
you'll get stuck with that: each time an internal modification will occur,
outer code may have to be fixed or re-compiled).
I propose to add that to vorbisfile.h:
/* same as ov_clear but f...
2017 Apr 11
1
[Vorbis-dev] Zero length reported.
...KS_NOCLOSE) < 0)
>> {
>> fprintf (stderr, "Input does not appear to be an Ogg bitstream.\n");
>> exit (1);
>> }
>>
>> {
>> char** ptr = ov_comment (&vf, -1)->user_comments;
>> vorbis_info* vi = ov_info (&vf, -1);
>>
>> while (*ptr)
>> {
>> fprintf (stderr, "%s\n", *ptr);
>> ++ptr;
>> }
>>
>> fprintf (stderr, "\nBitstream is %d channel, %ldHz\n", vi->channels, vi->rate)...
2017 Apr 07
0
Fwd: [Vorbis-dev] Zero length reported.
...in, &vf, NULL, 0, OV_CALLBACKS_NOCLOSE) < 0)
> {
> fprintf (stderr, "Input does not appear to be an Ogg bitstream.\n");
> exit (1);
> }
>
> {
> char** ptr = ov_comment (&vf, -1)->user_comments;
> vorbis_info* vi = ov_info (&vf, -1);
>
> while (*ptr)
> {
> fprintf (stderr, "%s\n", *ptr);
> ++ptr;
> }
>
> fprintf (stderr, "\nBitstream is %d channel, %ldHz\n", vi->channels, vi->rate);
> fprintf (stderr, &...
2001 Nov 12
1
Vorbisfile: non-seekable
Hi,
I use the following code:
if (ov_open(NULL, &vf, const_cast<char*>(reinterpret_cast<const
char*>(get_data())), get_size()) < 0)
error = 0x100;
else
{
vorbis_info* vi = ov_info(&vf, -1);
Cvirtual_file f;
const int cb_samples = ov_pcm_total(&vf, -1);
const bool seekable = ov_seekable(&vf);
So all data is already in memory and passed to ov_open.
This stream is not seekable. Why not?
And shouldn't it be seekable?
Olaf van der Spek
Almere, Holland
O...
2003 Sep 22
1
vorbisfile for Mac Classic
...iph.org?)
I just downloaded "SDK for MacOS9" and tried to
compile the "vorbisfile_example.c" sample with
CodeWarrior for Mac 8 on a Mac OS 9.2 machine. I
included the libOgg and libVorbis libraries in my
project, but the linker cannot file ov_clear(),
ov_read(), ov_pcm_total(), ov_info(), ov_comment() and
ov_open(). I looked at the Windows SDK and noticed
that there are far more library files in that package,
including a vorbisfile.lib.
Is it possible that the MacOS9 SDK doesn't include a
vorbisfile lib? Is this by design?
Thanks,
--jr
<p>____________________________...
2005 Nov 01
2
predictability of buffer size for decoding
...y about 5k. The buffer was a little less than 10% too small. I "solved" that by padding the result with an extra 20 percent. However, I have been told that I should be able to rely on the value of ov_pcm_total.
char* m_pDataVorbis;
. . .
OggVorbis_File vf;
. . .
vorbis_info* vi = ov_info(&vf,-1);
. . .
int pcmTotal = ov_pcm_total(&vf, -1);
m_pDataVorbis = new char[pcmTotal * vi->channels * 2];
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/vorbis-dev/attachments/20051101/33d6782e/attachment.html
2004 Apr 06
1
ov_open fails on Version 1.0.1
...bis. File ignored
'%s'\n", fileName);
return 0;
}
if (!ov_seekable(&vf)) {
fprintf(stderr, "File is not seekable. File ignored '%s'\n",
fileName);
ov_clear(&vf);
return 1;
}
vorbisInfo = ov_info(&vf, 0);
The failure is on the ov_open and is an "Access Violation".
Any ideas what happened between 1.0 and 1.01 that might cause this.
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from this list, send a...
2004 Feb 18
1
Precache an entire OGG?
...if(pFile == NULL)
return NULL;
if((pData = (pSOUNDDATA)malloc(sizeof(sSOUNDDATA))) == NULL)
return NULL;
pData->Length = ov_pcm_total(&sOVFile, -1);
if((pData->Buffer = (char*)malloc(pData->Length)) == NULL)
{
free(pData);
return NULL;
}
pOVInfo = ov_info(&sOVFile, -1);
pData->Frequency = pOVInfo->rate;
if(pOVInfo->channels == 1)
pData->Channels = 0x1101;
else
pData->Channels = 0x1103;
numStreams = ov_streams(&sOVFile);
StreamID = 0;
Location = 0;
while(StreamID < numStreams)
{
Size = ov_pcm_t...
2002 Dec 27
1
Vorbisgain in ogg123
I'm considering patching my copy of ogg123 to support vorbisgain tags. Is
there any interest in folding this sort of patch into the main line ogg123?
Has anyone done this already (or to another command line ogg player)?
John
--- >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
2004 Apr 17
1
Reading OGG embedded in a pack file
...from the middle of a stream?
callbacks.tell_func = sdl_tell_func;
callbacks.close_func = sdl_close_func;
if ( ov_open_callbacks( pStream, &vf, NULL, 0, callbacks)==0 )
{
// Valid OGG data, so do some code here to read it in...
// Get our OGG info
info = ov_info( &vf, -1 );
}
}
After looking at the documentation I thought I could change the 4th parameter to be the offset into the stream for where my sub file (inside the pack file) is located. This did not work. It took about 10 seconds for the function to return so I am guessing it was seeking t...
2001 Aug 29
2
Byte-width of a bitstream, cabbages, and other things
...d b) human hearing can barely cope with
16-bit sound, but still I''m curious.
Also, has any more work been done on the VorbisEnc documentation? I can easily
dig through the oggenc source, but if there's more recent documentation...
While I have your attention, I keep getting a 0L from ov_info() as the
version. How should I read that? As "Codec Version 1" or "Codec Version 0"?
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>
--- >8 ----
List archives: http://www.xiph.org/archives/
Ogg project homepage: http://www.xiph.org/ogg/
To unsubscribe from th...