Displaying 20 results from an estimated 31 matches for "ogg_stream_clear".
2009 May 12
2
compile error of libtheora example
...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
`ogg_stream_packetout'
player_example.c:(.text+0x1112): undefined referen...
2007 Sep 25
2
ignoring audio in player_example
...));
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 (! vorbis_p &&" line.
Unfortunately, the resulting executable displayed a green rectangle and,
when interrupted, crashes. Clearly I am doing something very wrong!
Any thoughts? I'm quite new to Theora....
2006 Aug 06
0
Newbie: How to rewind a videostream (long)
...a frame
and uploading it to the graphics card when the scene is drawn. The example
file dump_video.c gave me most of what I needed.
...But I can't seem to handle end-of-stream very well. I would like to be
able to rewind. First I tried the brute force method:
if (videoStream.eof())
{
ogg_stream_clear (&theoraStreamState);
theora_clear (&theoraState);
theora_comment_clear (&theoraComment);
theora_info_clear (&theoraInfo);
ogg_sync_clear (&oggSyncState);
videoStream.clear();
videoStream.close();
init_the_movie_like_it_was_inited_the_first_ti...
2007 Apr 14
0
Discontinuous stream support in libogg1
...0 = continuous, 1 = discontinuous */
} ogg_stream_state;
@@ -176,6 +177,7 @@
/* Ogg BITSTREAM PRIMITIVES: general ***************************/
extern int ogg_stream_init(ogg_stream_state *os,int serialno);
+extern int ogg_stream_setdiscont(ogg_stream_state *os);
extern int ogg_stream_clear(ogg_stream_state *os);
extern int ogg_stream_reset(ogg_stream_state *os);
extern int ogg_stream_reset_serialno(ogg_stream_state *os,int serialno);
Index: src/framing.c
===================================================================
--- src/framing.c (revision 12848)
+++ src/framing....
2005 Feb 09
1
Trying to do windows encoding dll
..._width*enc_height*5/4;
theora_encode_YUVin(&enc_state,&yuv_enc);
ogg_packet opacket;
theora_encode_packetout(&enc_state,0,&opacket);
ogg_stream_packetin(&enc_stream,&opacket);
}
}
__declspec (dllexport) void stopenc()
{
theora_clear(&enc_state);
ogg_stream_clear(&enc_stream);
}
__declspec (dllexport) void startdec(int width, int height, int bitrate)
{
ogg_stream_init(&dec_stream, 290482);
dec_width = width;
dec_height = height;
theora_info ti;
theora_info_init(&ti);
ti.width=width;
ti.height=height;
// must be /16
ti.frame_wi...
2004 Nov 01
1
compile libvorbis using mingw?
...ndefined reference to
`ogg_page_serialno'
.libs/vorbisfile.o(.text+0x23e):vorbisfile.c: undefined reference to
`ogg_sync_reset'
.libs/vorbisfile.o(.text+0x29b):vorbisfile.c: undefined reference to
`ogg_sync_reset'
.libs/vorbisfile.o(.text+0x314):vorbisfile.c: undefined reference to
`ogg_stream_clear'
.libs/vorbisfile.o(.text+0x39e):vorbisfile.c: undefined reference to
`ogg_sync_clear'
.libs/vorbisfile.o(.text+0x6a9):vorbisfile.c: undefined reference to
`ogg_stream_reset_serialno'
.libs/vorbisfile.o(.text+0x6f6):vorbisfile.c: undefined reference to
`ogg_stream_init'
.libs/vor...
2004 Nov 16
0
metadata switches for ffmpeg2theora
...+ info->akbps = rint (info->audio_bytesout * 8. / info->audiotime * .001);
+ print_stats(info, info->audiotime);
video=0;
- info.audioflag = 1;
+ info->audioflag = 1;
flushloop=1;
}
if(e_o_s)
@@ -322,16 +320,16 @@
}
}
-void theoraframes_close (){
- ogg_stream_clear (&info.vo);
- vorbis_block_clear (&info.vb);
- vorbis_dsp_clear (&info.vd);
- vorbis_comment_clear (&info.vc);
- vorbis_info_clear (&info.vi);
+void theoraframes_close (theoraframes_info *info){
+ ogg_stream_clear (&info->vo);
+ vorbis_block_clear (&info->vb);
+ vo...
2015 Oct 17
1
Why does this code not generate a valid opus file?
...in(&os,&header_comm);
//***************
//Write everything out.
while(1){
int result=ogg_stream_flush(&os,&og);
if(result==0)break;
fwrite(og.header,1,og.header_len,fout);
fwrite(og.body,1,og.body_len,fout);
}
//And clean up.
ogg_stream_clear(&os);
fclose(fout);
printf("Done.\n");
return 0;
}
//Sincerely
Daniel Armyr
Beginner opus user
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.xiph.org/pipermail/opus/attachments/20151017/a0c223b1/attachment-0001.htm
2006 Nov 06
0
[PATCH] Re: Strangeness with OggFlac files
...cket.e_o_s
is sufficient to close the stream. The forced ogg_stream_flush()
is required.
Maybe these two actions can be carried out in the function
FLAC__ogg_encoder_aspect_finish() which currently only does this:
void FLAC__ogg_encoder_aspect_finish(FLAC__OggEncoderAspect *aspect)
{
(void)ogg_stream_clear(&aspect->stream_state);
/*@@@ what about the page? */
}
I could investigate this further, but I'm really busy over the next
couple of days. I wouldn't be able to look at this until this weekend
or possibly the next.
Erik
--
+---------------------------------------------------...
2009 Jun 18
1
ogg_stream_reset() question
Hi Ogg experts!
My current work is catenating packets from several ogg files to the
one long stream, so I'd like to create stream 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
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
1999 Nov 07
2
Vorbis status
Hello folks,
This is a ping to see what folks are up to and planning to work on in the near
future. I'm mostly just curious....
Personal goals in the next week:
Handle any incoming bugs on the vorbisfile API/library
Hone the LPC approximation routines a bit more.
Get the command line player functional (Mike Whitson is also planning to put
some time in here).
Verify that I understand the
2013 Aug 18
1
vorbis_info_clear important?
Hi,
I'm using a Windows development component which uses vorbis.dll, ogg.dll,
vorbisenc.dll for encoding a file. When finishing a recording, the
component runs these functions...
ogg_stream_clear(OggSS);
vorbis_block_clear(VBlock);
vorbis_dsp_clear(Vdsp);
vorbis_comment_clear(VComm);
vorbis_info_clear(VInfo);
I'm occasionally receiving a hang in the function vorbis_info_clear(vinfo)
which goes to 100% CPU indefinitely. I've tried different compiles of
vorbis.dll wi...
2001 Sep 02
0
Encoding process
...ream_packetin()
26 while not end of stream:
27 get page from stream: -- ogg_stream_pageout()
28 if no page available:
29 break
30 write page to file
31 if nothing written:
32 fatal error
33 check if end of stream -- ogg_page_eos()
34 clear stream -- ogg_stream_clear()
35 clear block -- vorbis_block_clear()
36 clear dsp -- vorbis_dsp_clear
37 clear info -- vorbis_info_clear()
---
First of all, is the above correct? If not please let me know.
Second, I want to partition the above process into multiple functions i.e., so
that the "forever:" part on li...
2006 Nov 06
3
[PATCH] Re: Strangeness with OggFlac files
--- Erik de Castro Lopo <erikd-flac@mega-nerd.com> wrote:
> Erik de Castro Lopo wrote:
>
> > Josh et al,
> >
> > I've been tracking down a problem with generating OggFlac files.
>
> <snip>
>
> > I have looked into this and suspect that the
> FLAC__stream_encoder_finish()
> > function needs to finish off the stream using a call to
2008 Apr 29
2
More trival questions
...);
}
buffer = ogg_sync_buffer(&the_ogg_sync_state, BUF_SIZE);
bytes_actually_read = fread(buffer, 1, BUF_SIZE, source);
ogg_sync_wrote(&the_ogg_sync_state, bytes_actually_read);
} while (feof(source) == 0 );
ogg_stream_clear( &the_ogg_stream_state );
ogg_sync_clear( &the_ogg_sync_state );
fclose(source);
return 1;
}
>>>
$ ./a.out 320x240.ogg | head -20
Decode Page
Magic!
Decode Packet
not a header
Decode Page
Magic!
Decode Packet
not a header
Decode Page
not a header
Decode P...
2008 Aug 28
0
Error while cross compiling libvorbis 1.2.0
...cketout'
decoder_example.o(.text+0x114): undefined reference to `ogg_sync_pageout'
decoder_example.o(.text+0x138): undefined reference to `ogg_sync_buffer'
decoder_example.o(.text+0x168): undefined reference to `ogg_sync_wrote'
decoder_example.o(.text+0x238): undefined reference to `ogg_stream_clear'
decoder_example.o(.text+0x268): undefined reference to `ogg_sync_pageout'
decoder_example.o(.text+0x288): undefined reference to `ogg_sync_buffer'
decoder_example.o(.text+0x2c0): undefined reference to `ogg_sync_wrote'
decoder_example.o(.text+0x30c): undefined reference to `ogg_str...
2005 Oct 05
1
Simple encodig sample...
...vkbps = rint( video_bytesout * 8. / timebase * .001 );
fprintf( stderr, "\r %d:%02d:%02d.%02d video:
%dkbps ", hours, minutes, seconds, hundredths, vkbps );
}
if( ret == STREAM_EOD )
break;
}
/* clear out state */
ogg_stream_clear( &to );
theora_clear( &td );
fclose( outfile );
free( yuvframe );
fprintf( stderr, "\r \ndone.\n\n" );
return 0;
}
2005 Nov 11
0
[PATCH] icecast video preview 2
..., NULL);
stats_event (ogg_info->mount, "frame_size", NULL);
+
+
+#ifdef WITH_PNG
+ free_video_preview (theora -> video_preview);
+ theora_clear(&theora -> td);
+#endif
theora_info_clear (&theora->ti);
theora_comment_clear (&theora->tc);
ogg_stream_clear (&codec->os);
@@ -112,8 +127,32 @@
ERROR0 ("Not enough header packets");
return NULL;
}
- if (theora_packet_iskeyframe (&packet))
- has_keyframe = 1;
+ if (theora_packet_iskeyframe (&packet)) {
+#ifdef WITH_PNG
+...
2005 Nov 11
2
[PATCH] icecast video preview 2
Updated version of video preview covering frame writing every 3 keyframe
and a xsl typo.
Best regards :)
kysucix
--
Make things as simple as possible, but no simpler. - Albert Einstein