Displaying 13 results from an estimated 13 matches for "vorbis_synthesis_headerin".
2002 Mar 14
2
Ogg in MP4 file, Unexpected result from _vorbis_unpack_books
...to a)
Now on the playing side playing the generated MP4 file, the encoder gets
handed chunks of data as they were handed over to the MP save routine.
a) get the first ogg packet (the header), adjust the packet pointer
a1) run vorbis_info_init
a2) run vorbis_comment_init
a3) call vorbis_synthesis_headerin using the first packet
b) get the second packet (the header_comment), adjust the packet pointer
b1) call vorbis_synthesis_headerin using the second packet
c) get the third packet (the code book), adjust the packet pointer
b1) call vorbis_synthesis_headerin using the third packet
Here...
2007 Sep 25
2
ignoring audio in player_example
...s to remove the test for vorbis:
/* identify the codec: try theora */
if(!theora_p && theora_decode_header(&ti,&tc,&op)>=0){
/* it is theora */
memcpy(&to,&test,sizeof(test));
theora_p=1;
}else if(!vorbis_p && vorbis_synthesis_headerin(&vi,&vc,&op)>=0){
/* it is vorbis */
memcpy(&vo,&test,sizeof(test));
vorbis_p=1;
}else{
/* whatever it is, we don't care about it */
ogg_stream_clear(&test);
}
I simply commented out the "else if (! v...
2005 Sep 14
2
Fwd: Newbie q: decoupling vorbis from ogg
...stion. I'm trying to write an OS X
AudioCodec for Vorbis using libvorbis. I'm confused about the
libvorbis dependency on libogg. I thought the vorbis spec didn't
require ogg as the container, but the libvorbis API requires ogg data
structures in various synthesis layer functions like
vorbis_synthesis_headerin. Is this library only intended to be used
with ogg containers or is there a way to use it without ogg?
Thanks,
-n8
--
>>>-- Nathaniel Gray -- Caltech Computer Science ------>
>>>-- Mojave Project -- http://mojave.cs.caltech.edu -->
2001 Sep 22
3
retrieving "instant" bitrate without vo_open?
ok, I'm aware that vo_open cant be used at the same time as other functions
such as ogg_sync_wrote, ogg_sync_pageout, ogg_stream_pagein,
ogg_stream_packetout and vorbis_synthesis_headerin. In order to get
information from the bitstream i've been using this method because it's fast
and doesn't require decoding of the stream. But, i can only retrieve the
average bitrate of the ogg stream with the vorbis_info struct. I tried using
vo_open but could only retrieve gar...
2009 May 12
2
compile error of libtheora example
...player_example.c:(.text+0xed9): undefined reference to `ogg_stream_pagein'
player_example.c:(.text+0xef1): undefined reference to
`ogg_stream_packetout'
player_example.c:(.text+0xf18): undefined reference to
`theora_decode_header'
player_example.c:(.text+0xf6d): undefined reference to
`vorbis_synthesis_headerin'
player_example.c:(.text+0xfa9): undefined reference to `ogg_stream_clear'
player_example.c:(.text+0xfbd): undefined reference to `ogg_sync_pageout'
player_example.c:(.text+0x102f): undefined reference to
`theora_decode_header'
player_example.c:(.text+0x10a2): undefined reference to...
2005 Sep 27
2
Stream "Saving" and Excerpting...
....
Now, I didn't write the code that does this (it's some python mess), but
I'm rewriting the assembler part and starting from the source code for
"vcut". The problem with that is that "vcut" seems to use several API
calls not documented in the API documentation...
vorbis_synthesis_headerin()
vorbis_synthesis_init()
vorbis_block_init()
I'm also wondering if I'm going about this all wrong, since there doesn't
seem to be any easy way to do what I'm doing. All the API calls seem to be
centered on encoding and decoding, rather than simply cutting and splicing
encoded pac...
2001 Jan 26
1
[fwd] Ogg123 crash report on EV4 Multia
...b/libc.so.6.1
(gdb) backtrace
#0 0x20000833908 in chunk_free () from /lib/libc.so.6.1
#1 0x20000833504 in chunk_alloc () from /lib/libc.so.6.1
#2 0x20000834b60 in __libc_calloc () from /lib/libc.so.6.1
#3 0x20000239f60 in _vorbis_unpack_books () from /usr/lib/libvorbis.so.0
#4 0x2000023a59c in vorbis_synthesis_headerin () from /usr/lib/libvorbis.so.0
#5 0x20000484784 in _fetch_headers () from /usr/lib/libvorbisfile.so.0
#6 0x20000484d28 in _open_seekable () from /usr/lib/libvorbisfile.so.0
#7 0x20000485698 in ov_open_callbacks () from /usr/lib/libvorbisfile.so.0
#8 0x2000048722c in ov_open () from /usr/lib/li...
2001 Feb 04
2
Am I missing something?
...etch_headers() is here:
i=0;
while(i<3){
ogg_stream_pagein(&vf->os,og_ptr);
while(i<3){
int result=ogg_stream_packetout(&vf->os,&op);
if(result==0)break;
if(result==-1){
ret=OV_EBADHEADER;
goto bail_header;
}
if((ret=vorbis_synthesis_headerin(vi,vc,&op))){
goto bail_header;
}
i++;
}
if(i<3)
if(_get_next_page(vf,og_ptr,1)<0){
ret=OV_EBADHEADER;
goto bail_header;
}
}
return 0;
Also, notice that ogg_stream_packetout() is called in a loop, but no
reading can happen duri...
2018 Mar 17
0
r19427 missing from tremor git repo
....
Reject multiple headers of the same type.
And r19426 refers to:
commit c761e218422b7f656635466fea013d9b4ba686f3
Author: Tim Terriberry <tterribe at xiph.org>
Date: Wed Jan 7 03:16:56 2015 +0000
Reject multiple headers of the same type.
A common application pattern is to call vorbis_synthesis_headerin()
and count how many times it succeeds.
If you feed it multiple valid comment headers, they will all
succeed, meaning you can be fooled into think you have a valid
Vorbis file despite never seeing a setup header.
This patch makes libvorbis reject multiple headers of the same...
2006 Aug 25
0
Incompability between libvorbis and tremor from svn?
Hi,
I'm experiencing a serious problem when trying to replace libvorbis with
tremor (from svn):
premitting that I don't want to use the ov_* functions, calling
vorbis_synthesis_headerin()
on the 3 initial packets works with libvorbis but immediately fails with
tremor.
At first sight it seems that the function in tremor either receives a
leading \n before every header
(that shouldn't be there, IIUC), or that it should be there but the
function doesn't like it.
Can some...
2009 Mar 15
1
Add vorbis_dsp_init() ?
Hi,
This mozilla bug report is a crash triggered by a Vorbis file with
corrupt headers:
https://bugzilla.mozilla.org/show_bug.cgi?id=481601
The patch to fix the crash adds a new vorbis_dsp_init() function to
libvorbis, and calls
that from fs_vorbis_init() in libfishsound:
https://bug481601.bugzilla.mozilla.org/attachment.cgi?id=366150
The public function it adds is:
void
2002 Aug 06
0
Getting a GUI to work with Vorbis code
...putFile,"Error reading first page of Ogg bitstream
data.\n");
exit(1);
}
if(ogg_stream_packetout(&os,&op)!=1){
/* no page? must not be vorbis */
fprintf(outputFile,"Error reading initial header packet.\n");
exit(1);
}
if(vorbis_synthesis_headerin(&vi,&vc,&op)<0){
/* error case; not a vorbis header */
fprintf(outputFile,"This Ogg bitstream does not contain Vorbis "
"audio data.\n");
exit(1);
}
printf("We're sure we're Vorbis.\n");
/* At this poi...
2006 Oct 09
1
Vorbis primitive API examples (LONG)
...for packet numbers as a dropped packet will
// mess up the running packetCount total (which should be removed eventually)
*/
if (ogg_packet_get_packetno(op) <= LAST_VORBIS_HEADER_PACKET) {
// Currently decoding inside the vorbis headers (first three packets)
v_rv0 = vorbis_synthesis_headerin(vi, vc, op);
dprintf("Header decode: %d %p %p %p\n", v_rv0, vi, vc, op);
if (ogg_packet_get_packetno(op) == LAST_VORBIS_HEADER_PACKET) {
/*
// WARNING! DO NOT CALL vorbis_synthesis_init BEFORE YOU HAVE
// PROCESSED **ALL** THE HEADERS. FAILURE TO DO SO WILL CAUSE...