Displaying 20 results from an estimated 200 matches similar to: "Fw: ov_open failing with all files"
2002 Dec 09
2
ov_open/ov_test weirdness
Hi,
I've been playing with a little player, and it seems I can't ov_open a file
twice?
heres a snipit...
<p>#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <vorbis/vorbisfile.h>
OggVorbis_File vf;
FILE *f = NULL;
int main(int argc, char **argv)
{
char *file = NULL;
int err = 0;
if(argc < 2) {
2004 Feb 11
1
Problem using 'ov_open()'...
OK, I've been developing a small class that I can use in virtually any
application to load and decode OGG files. Everything works fine until it
reaches the line with the call to ov_open, then the application freezes and
has to be killed. This is a single-threaded Win32 app. Below is both the
structure that gets passed around, and my entire OGG class. Maybe one of
you can figure this out.
2005 Aug 05
1
debugging question.
Hi,
I am using libvorbis-1.0.1 and I am trying to debug the example decoder
(examples/decoder_example.c) using gdb. I have compiled the source tree
for debug and can single step through the program.
However i am facing the following problem (which I think is more of C
than vorbis)
1. after single steppig I finally arrive at the function shown below
(in file lib/info.c)
static int
2001 Feb 18
2
Access Violation in ov_open
If I do something similar to the below ov_open always causes an access
violation.
The call to fopen is successful.
Can anybody tell me why? (and how to fix it?)
OggVorbis_File vf;
int eof=0;
int current_section;
FILE *fd = fopen("c:\\test.ogg","rb");
if (!fd){
AfxTrace("fopen failed\n");
exit(0);
}
if(ov_open(fd, &vf, NULL, 0) < 0) {
2003 Jul 23
3
ov_open returning OV_EBADHEADER
Hi there.
I'm having this problem when trying to open the stream to play it. What I'm
doing is the following:
archivo_original = fopen(Archivo.c_str(), "r");
if (archivo_original == NULL) {
if (EventLog)
EventLog->WriteString(Format("No se pudo abrir el archivo %s",
ARRAYOFCONST((Archivo))));
WaveOut->Stop();
return;
}
2005 Jun 14
3
lack of detail for exception in ov_open
I am having one frustrating time trying to decipher why ov_read is failing in my MFC/C++ application, and I see in Google results that others have had difficulty as well. These google discussions generally involve libraries, dll's and linking options, as though there are perhaps some basic incompatibilities between ogg vorbis and win32 and/or MFC/C++. Very confusing.
If I pass fopen a
2007 Oct 19
1
tcltk: help with tkmenubutton
I am struck here. What magic inchantation is required with tkmenubutton?
I am converting the examples of Perl/Tk from page...
http://gd.tuwien.ac.at/languages/perl/Hajji-Perlkurs/part4/tkperl.html
... to R's tcltk.
But I don't know how to convert one line in this example:
library(tcltk)
# create a main window
mw <- tktoplevel()
# a menu consists of a horizontal menubar,
# with
2001 Mar 01
2
ov_time_seek to 0s fails... AGAIN
Hello everybody, I sent something about this before, but this bug is still
there, so...
If you call
ov_time_seek(vf, 0);
it will fail, returning OV_EFAULT (from ov_pcm_seek_page). I think this must
be a bug, because seeking to 0 seconds *should* be OK.
Another thing, when ov_time_seek fails with OV_EFAULT, you cannot continue
playing
(because of the goto seek_error). This is not clear from
2010 Jan 06
1
Initializing vorbis using ov_open_callbacks fail with OV_ENOTVORBIS. But why?
Dear members,
since two weeks I am stuck, trying to demux a physical ogg stream
(theora and vorbis) and play the audio part using vorbisfile.
I hope that one of you can give me a hint or point me to additional
documentation.
I used ogg.h and vorbisfile.h.
The way so far:
- initializing an ogg_sync_state
- inserting data to sync_state using ogg_sync_buffer
- when whole page found
2001 Feb 04
2
Am I missing something?
Hey all,
If my understanding is right, there's a serious big in vorbisfile.c, in
the routine _fetch_headers(), which will only show up when comment
packet spans multiple pages. The code to read the first 3 Vorbis
packets ogg_stream_pagein() once, then calls ogg_stream_packetout().
The problem is that ogg_stream_pagein() only adds a single page to the
ogg stream state, whereas
2001 Oct 31
0
vorbisfile weirdness
Hi!
I'm trying to write a vorbis plugin for my MP3/Music/Media player
(http://elmp-tng.sourceforge.net). I'm using vorbisfile, and
ov_open_callbacks() (to interface with my VFS layer). The problem is the
same using plain ov_open() though...
Some files play perfectly, while others (most) fail. ov_open returns
OV_EBADHEADER. The really strange thing is that both ogg123, and the
simple test
2002 Mar 14
2
Ogg in MP4 file, Unexpected result from _vorbis_unpack_books
Hi.
I'm trying to implement Ogg/Vorbis support for the MPEG4IP project.
The goal is to support Ogg/Vorbis audio for MPEG-4 streaming.
So far I have managed to make the encoder save Ogg packets as an Audio
object in an .mp4 file. As a side effect, it can also save Ogg pages in
an .ogg file playable by xmms, but that's no big deal.
So what I'm doing is this. First the init part.
a)
2002 Dec 27
1
ov_open throws exception (Compiler VC7)
Hi
I try to load an ogg file with the vorbisfile library like this:
FILE *f = fopen("test.ogg", "rb");
if(!f) ...;
ov_open(f, &vf, 0, 0);
But ov_open always throws an exception. Im pretty sure its a compiler
problem because the same code worked on VC6. Im compiling my programm with
the multithreaded dll option as mentioned on the mailing list bevor.
Does anybody know if
2003 Feb 27
1
ov_open from memory
Hi folks,
i would like to know if it is valid to load a whole .ogg file into memory
and call ov_open like this:
ov_open(NULL, &OggVorbisFile, pRawData, RawDataLen);
An other question is, is it valid to copy some ogg files into one (resource)
file, position the filehandle and use ov_read to read only the ogg file
which starts at the current position of the file handle? (In other words,
does
2005 Jun 30
2
Reading from memory and ov_open
Hi,
I've been working with oggvorbis-win32sdk-1.0.1 and have a
semi-hypothetical question.
Let's suppose that, for whatever reason, I've allocated a block of
memory, and I've loaded into this memory a perfectly valid ogg vorbis
file.
Now I'd like to decode this vorbis data, but I'm stuck calling ov_open()
because I don't have a FILE*, I have a block of memory. (This
2004 Dec 05
1
ov_open error !
#include <stdio.h>
#include "vorbis/codec.h"
#include "vorbis/vorbisfile.h"
#include <io.h>
#include <fcntl.h>
#pragma comment(lib, "vorbisfile_d")
int main(int argc, char **argv)
{
FILE *fp;
OggVorbis_File obf;
if(argc < 1)
return -1;
if((fp = fopen("f:\\testogg.ogg", "rb")) == NULL)
{
printf("Open Files
2004 Apr 06
1
ov_open fails on Version 1.0.1
Hi,
I've just got around to moving from version 1.0 to 1.0.1. Now when I run
my program, at least on Windoze, (haven't tried Linux yet), I get an Access
Exception on the ov_open. Nothing else has changed. All I did was replace
the lib and dll files that are in the win32sdk zip and re-build all, so
it's the same the project files for for both builds.
Here the snippet of code that
2005 Jun 17
1
ov_open fails on Version 1.0.1
Eddie,
I have been reviewing vorbis list postings, because I have been spinning my wheels for a week, trying to make a simple insertion of ogg vorbis decoding (vorbisfile) in the audio class of my MFC/C++ program. I just read your thread from April 2004.
Question: Do you have anything you could send me, since I assume you succeeded in getting results? And/or could you take a look at what I
2002 Apr 24
2
ov_open error
Hi,
I put together a small a Visual C++ 6.0 project that uses the code from
vorbisfile_example.c. I open an ogg file in binary mode and when ov_open
gets called, it always fails. I then put together another project and
compiled vorbisfile so I could see where the error was occuring. It is
happening in _fetch_headers when it calls ogg_stream_packetout. The return
values is -1, which means there
2005 May 23
1
Why does ov_open fail?
hello everyone.
after reading through the api manual of the ogg vorbis win32 sdk, i
tried to implement a very simple comment reader in visual c++. but for
some reason the very first operation to initialize the OggVorbis_File
struct keeps failing and i can't figure out why. is there anything i
might not have considered? The memory exception seems to happen deep
within the calling tree of