Displaying 20 results from an estimated 43 matches for "ogg_stream_init".
Did you mean:
_ogg_stream_init
2005 Oct 05
1
Simple encodig sample...
...I have no experience with theora so I would like
to know if my code is correct.
I tried to debug it with Valgrind and I found 4 possible memory leaks...
but I think they can be found in the original sample too (
encoder_example.c ) ... right?
( 1 about theora_encode_comment - row 195 )
( 3 about ogg_stream_init - row 133 )
Sorry for my english. Thanx in advance.
-Mat-
=== CODE ===
#define _GNU_SOURCE
#define _LARGEFILE_SOURCE
#define _LARGEFILE64_SOURCE
#define _FILE_OFFSET_BITS 64
#ifndef _REENTRANT
# define _REENTRANT
#endif
#include <math.h>
#include <stdio.h>
#include <stdlib.h>...
2020 Jul 22
2
How to debug a missing symbol with ThinLTO?
...hin
-mmacosx-version-min=10.9" LDFLAGS=-flto=thin ./configure
--disable-shared --enable-static
make -j20
Then try to link to the library in a small C++ program - I used this:
#include <iostream>
#include "ogg/ogg.h"
using namespace std;
int main()
{
ogg_stream_state os;
if (ogg_stream_init(&os, 123) == 0)
cout << "Initialized stream succesfully" << endl;
return 0;
}
And from the libogg directory I linked to it like this:
clang++ -o test -flto=thin test.cpp src/.libs/libogg.a -I include
undef: _ogg_stream_init
Undefined symbols for architecture x86_64:
&q...
2020 Jul 22
2
How to debug a missing symbol with ThinLTO?
Hello,
I am building libogg with clang (10.0.1) on macOS and if I pass
"-flto=thin" to C and LDFLAGS it will not link correctly claiming
missing symbols when linking to the archive (libogg.a).
undef: _ogg_stream_init
Undefined symbols for architecture x86_64:
"_ogg_stream_init", referenced from:
_main in lto.o
Removing lto=thin fixes the problem. Inspecting the AR libs with
llvm-nm I see the symbol there (but without address):
not working archive:
---------------- T _ogg_stream_init
working archive...
2020 Jul 22
2
How to debug a missing symbol with ThinLTO?
...; --disable-shared --enable-static
> make -j20
>
> Then try to link to the library in a small C++ program - I used this:
>
> #include <iostream>
> #include "ogg/ogg.h"
>
> using namespace std;
>
> int main()
> {
> ogg_stream_state os;
> if (ogg_stream_init(&os, 123) == 0)
> cout << "Initialized stream succesfully" << endl;
>
> return 0;
> }
>
> And from the libogg directory I linked to it like this:
>
> clang++ -o test -flto=thin test.cpp src/.libs/libogg.a -I include
>
> undef: _ogg_stream_...
2009 Jun 18
1
ogg_stream_reset() question
...tream once, and then reset it
just before reading codec headers from every new file. However, after
calling
ogg_stream_reset_serialno(ogg_stream_state *os, int serialno),
bos page is not pushed in stream since it calls
ogg_stream_reset(ogg_stream_state *os),
which set os->pageno to -1, while ogg_stream_init(ogg_stream_state
*os, int serialno) sets it to 0. If I call ogg_stream_reset(), and the
explicitly set os->pageno = 0, no problem, the consequent pages are
pushed into stream.
So the question - why ogg_stream_reset() sets pageno to -1 instead to
zero, if it does not make stream ready to accept...
2007 Oct 19
2
Debug the encoder_example
hi all,
i am trying to debug the encoder_example with gdb.
after the line number 669, it will go to a place "ogg_stream_init
(os=0xbff0ec84, serialno=1418647043) at framing.c:189"
but i couldn't find the file "framing.c" with in the "ibtheora-1.0alpha7"
directory.
please anyone can tell me where is this file
--
-----------
Regards,
Janaka Priyadarshana
-------------- next part --------...
2005 Dec 08
1
A few questions how to use libogg
...geout until
there are no more packets to be added?
2.) I assume I have call ogg_stream_pageout until no more pages can be
created and then call ogg_stream_flush if there are still bits left to
be 'paged'?
3.) Do I need to manually set the e_o_s of the last packet added?
4.) may I call ogg_stream_init again on a already used ogg_stream_state
struct to reuse it?
5.) Is it possible to start decoding a ogg_stream which has not yet been
fully constructed iaw there are still packet's added an pageout to be
called on the stream?
Thanks,
Arjan
2006 Aug 06
2
Speex + Ogg package
...udio_page);
return audio_page;
}
As for the decoder I have this.
//Incoming data from udp is on buffer
char *buffer=ogg_sync_buffer(&oy,4096);
memcpy(buffer,buff,len);
ogg_sync_wrote(&oy,len);
while(ogg_sync_pageout(&oy,&audio_page)>0)
{
if (stream_init == 0)
{
ogg_stream_init(&os, ogg_page_serialno(&audio_page));
stream_init = 1;
}
queue_page(&audio_page);
while(ogg_stream_packetout(&os,&op)>0)
{
int b;
ogg_stream_pagein(&os, &audio_page);
int len=(audio_page.body_len-4)/FRAMES_PACKET;...
2005 Feb 09
1
Trying to do windows encoding dll
...lude <windows.h>
#include "theora/theora.h"
theora_state enc_state;
int enc_width, enc_height;
ogg_stream_state enc_stream;
theora_state dec_state;
int dec_width, dec_height;
ogg_stream_state dec_stream;
__declspec (dllexport) void startenc(int width, int height, int bitrate)
{
ogg_stream_init(&enc_stream, 290482);
enc_width = width;
enc_height = height;
theora_info ti;
theora_info_init(&ti);
ti.width=width;
ti.height=height;
// must be /16
ti.frame_width=width;
ti.frame_height=height;
ti.offset_x=0;
ti.offset_y=0;
ti.colorspace=OC_CS_UNSPECIFIED;
ti.tar...
2008 Apr 29
2
More trival questions
...uot;);
return 0;
}
source = fopen(argv[1], "r");
if (feof(source) != 0) {
printf("Empty file\n");
fclose(source);
return 0;
}
ogg_sync_init(&the_ogg_sync_state);
ogg_stream_init(&the_ogg_stream_state, 0);
do {
if (ogg_sync_pageout(&the_ogg_sync_state, &the_ogg_page) == 1) {
printf("Decode Page\n");
send_to_my_decoder( the_ogg_page.body, the_ogg_page.body_len );...
2004 Nov 16
0
metadata switches for ffmpeg2theora
...eturn (double)(int)(x + 0.5);
}
-void theoraframes_init (){
- info.audio_bytesout = 0;
- info.video_bytesout = 0;
+void theoraframes_init (theoraframes_info *info){
+ info->audio_bytesout = 0;
+ info->video_bytesout = 0;
/* yayness. Set up Ogg output stream */
srand (time (NULL));
- ogg_stream_init (&info.vo, rand ());
+ ogg_stream_init (&info->vo, rand ());
- if(!info.audio_only){
- ogg_stream_init (&info.to, rand ()); /* oops, add one ot the above */
- theora_encode_init (&info.td, &info.ti);
- theora_info_clear (&info.ti);
+ if(!info->audio_only){
+ o...
2020 Jul 22
2
How to debug a missing symbol with ThinLTO?
...0
>>
>> Then try to link to the library in a small C++ program - I used this:
>>
>> #include <iostream>
>> #include "ogg/ogg.h"
>>
>> using namespace std;
>>
>> int main()
>> {
>> ogg_stream_state os;
>> if (ogg_stream_init(&os, 123) == 0)
>> cout << "Initialized stream succesfully" << endl;
>>
>> return 0;
>> }
>>
>> And from the libogg directory I linked to it like this:
>>
>> clang++ -o test -flto=thin test.cpp src/.libs/libogg.a -I includ...
2020 Jul 23
2
How to debug a missing symbol with ThinLTO?
...the library in a small C++ program - I used this:
>>>
>>> #include <iostream>
>>> #include "ogg/ogg.h"
>>>
>>> using namespace std;
>>>
>>> int main()
>>> {
>>> ogg_stream_state os;
>>> if (ogg_stream_init(&os, 123) == 0)
>>> cout << "Initialized stream succesfully" << endl;
>>>
>>> return 0;
>>> }
>>>
>>> And from the libogg directory I linked to it like this:
>>>
>>> clang++ -o test -flto=thin test....
2015 Oct 17
1
Why does this code not generate a valid opus file?
...g_stream_state os;
ogg_page og;
FILE* fout = fopen("/tmp/trivial.opus", "wb");
if ( fout == 0 ) {
printf( "Error opening output file.\n" );
return -1;
}
//**************
//Initialize the stream
srand(0);
ogg_stream_init(&os,rand());
//**************
//Create the header
//*****************
struct OggHeader headerContent = {
{'O', 'p', 'u', 's', 'H', 'e', 'a', 'd'},
1, //Version
2, //Channels
0, /...
2012 Oct 19
3
How to cross-compile opus-tools?
...s_multistream_encoder_ctl'
/home/user/source/opus-tools/src/opusenc.c:641: undefined reference to `opus_strerror'
/home/user/source/opus-tools/src/opusenc.c:659: undefined reference to `opus_multistream_encoder_ctl'
/home/user/source/opus-tools/src/opusenc.c:712: undefined reference to `ogg_stream_init'
/home/user/source/opus-tools/src/opusenc.c:727: undefined reference to `ogg_stream_packetin'
/home/user/source/opus-tools/src/opusenc.c:729: undefined reference to `ogg_stream_flush'
/home/user/source/opus-tools/src/opusenc.c:746: undefined reference to `ogg_stream_packetin'
/home/...
2009 May 12
2
compile error of libtheora example
...nt_init'
player_example.c:(.text+0xe47): undefined reference to `theora_info_init'
player_example.c:(.text+0xe86): undefined reference to `ogg_page_bos'
player_example.c:(.text+0xeb1): undefined reference to `ogg_page_serialno'
player_example.c:(.text+0xec3): undefined reference to `ogg_stream_init'
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...
2006 Aug 06
0
Speex + Ogg package
...r I have this.
>
> //Incoming data from udp is on buffer
> char *buffer=ogg_sync_buffer(&oy,4096);
> memcpy(buffer,buff,len);
> ogg_sync_wrote(&oy,len);
> while(ogg_sync_pageout(&oy,&audio_page)>0)
> {
> if (stream_init == 0)
> {
> ogg_stream_init(&os, ogg_page_serialno(&audio_page));
> stream_init = 1;
> }
> queue_page(&audio_page);
>
> while(ogg_stream_packetout(&os,&op)>0)
> {
> int b;
> ogg_stream_pagein(&os, &audio_page);
> int le...
2017 Apr 03
1
Chained Vorbis Stream Distorting
Hi All,
I'm relatively new to Ogg and Vorbis and I've hit a pretty puzzling issue,
and I'm wondering if a veteran could help me out.
I'm attempting to decode a chained live Ogg Vorbis stream. The primary
issue is that the source does not exactly follow validation (I have no
control of this). The stream switches from a prerecorded segment, to a live
segment, back to a prerecorded
2004 Aug 06
0
DarkIce make problem
...: *** [all-recursive] Error 1
> make[1]: Leaving directory `/usr/src/download/darkice-0.6'
> make: *** [all-recursive-am] Error 2
Are you sure you've done `make install' for lame, libogg, and
libvorbis? When you run ./configure, you should get the following lines:
checking for ogg_stream_init in -logg... yes
checking for vorbis_info_init in -lvorbis... yes
checking for vorbis_encode_init in -lvorbisenc... yes
checking for lame_init in -lmp3lame... yes
If any of these say "no" rather than yes, then the build process won't be
able to find your libs for that package. I...
2004 Aug 06
1
ultra-preliminary C++ wrapper for ogg & vorbis
Hi.
I'm working on a very simple C++ wrapper for parts of libogg and
libvorbis; I thought I would expose it for initial comments and the
generally curious.
No conveniences, no frills. No helpful higher-level abstractions. Just
a translation from ogg_method_foo(ogg_method* data) to classes that hold
the ogg_stream_state etc., so you may type mypage.bos() instead of