search for: theora_clear

Displaying 15 results from an estimated 15 matches for "theora_clear".

2007 May 25
2
Cleaning app
Hello all, When I'm doing something like: yuv_buffer yuv; theora_decode_YUVout(&td,&yuv); I'm guessing a bunch of stuff gets newed/malloced for yuv.y, yuv.u, and yuv.u. Who is responsible for deleting/freeing that stuff? Cheers, Kos.
2005 Feb 09
1
Trying to do windows encoding dll
...ight; yuv_enc.v=yuvframe+enc_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=...
2006 Aug 06
0
Newbie: How to rewind a videostream (long)
...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_time(); } But I got a crash when trying to re...
2009 May 12
2
compile error of libtheora example
...player_example.c:(.text+0x1d69): undefined reference to `vorbis_comment_clear' player_example.c:(.text+0x1d75): undefined reference to `vorbis_info_clear' player_example.c:(.text+0x1d8a): undefined reference to `ogg_stream_clear' player_example.c:(.text+0x1d96): undefined reference to `theora_clear' player_example.c:(.text+0x1da2): undefined reference to `theora_comment_clear' player_example.c:(.text+0x1dae): undefined reference to `theora_info_clear' player_example.c:(.text+0x1dba): undefined reference to `ogg_sync_clear' collect2: ld ?? 1 i've search in google but there...
2004 Feb 06
0
Bug in src/player_example.c
...ment 'internal_encoder' (and maybe others) is initialised to NULL. This declaration doesn't guarantee that condition and this turned out to be the cause of problems I was experiencing in my player. A simple memset() did the trick; not the tidiest of solutions but I couldn't use theora_clear() from libtheora because this makes NULLness assumptions on the structure as well. Maybe a modification to theora_decode_init() to clear the appropriate fields? -- Cheers, Jay http://www.evilrealms.net/ - Systems Administrator & Developer http://www.imperial.ac.uk/ - 3rd year CS student -...
2005 Aug 06
0
[Fwd: Re: Force keyframe creation]
...a frame and then > setting it back. But to do this would I need to call > 'theora_encode_init' again? Is this safe? > > Basically, what's the best way to arbitrarily force the creation of a > keyframe within an encoding session? Calling it again (with a corresponding theora_clear first) would be okay, except that it also resets the granule positions applied to the packets. Not the end of the world, as you could fix those up yourself before passing them on to the Ogg layer, but you'd have to know what you're doing. There also may be some mucking around in the interna...
2004 Nov 16
0
metadata switches for ffmpeg2theora
...o.vi); +void theoraframes_close (theoraframes_info *info){ + 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); - ogg_stream_clear (&info.to); - theora_clear (&info.td); + ogg_stream_clear (&info->to); + theora_clear (&info->td); - if (info.outfile && info.outfile != stdout) - fclose (info.outfile); + if (info->outfile && info->outfile != stdout) + fclose (info->outfile); } Index: theorautils.h ===========...
2005 Aug 05
3
decoder init/clear
Enabling the following function in tests/noop.c: noop_test_decode () { theora_info ti; theora_state th; theora_info_init (&ti); theora_decode_init (&th, &ti); theora_clear (&th); theora_info_clear (&ti); } segfaults. The cause is that theora_decode_init() expects a theora_info structure which was previously initialized by passing actual bitstream data through theora_decode_header(), as documented in theora.h: /** * Initialize a theora_state handle for d...
2004 Oct 09
3
Encoder not linking on win32?
...m signed to unsigned chars in a couple places) 6) Linked my application and it failed to find the following functions: _theora_encode_tables _theora_encode_comment _theora_encode_header _theora_encode_init _theora_encode_packetout _theora_encode_YUVin _theora_encoder_clear referenced in function _theora_clear For some reason all the unlinkable functions have underscore prefixes, even though my code has none. Were any changes made to the encoding function prototypes since 1.0a3? Thanks, I'm really eager to try out the new code! -david
2005 Oct 05
1
Simple encodig sample...
...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; }
2009 Jul 08
2
Theora 1.1 rate controller
Hello everyone, I'm currently developing an adaptive videoconferencing application based on Ekiga which uses TFRC as a congestion control mechanism to adapt the video encoding rate according to the quality of the network experienced. My goal was to use the open-source Theora codec for video transmission. Unfortunately, it seemed that Theora 1.0 did not properly implement any correct CBR mode.
2005 Nov 11
0
[PATCH] icecast video preview 2
...+ stats_event (ogg_info->mount, "video_preview", NULL); +#endif stats_event (ogg_info->mount, "frame_rate", 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 (...
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
2005 Nov 11
1
[PATCH] icecast video preview
Hi. Here it is my patch to put a video preview of a theora stream in status.xsl. I just added a: <video-preview>1</video-preview> parameters in icecast.xml.in that control the previewing function. It encodes a png in $webroot/$mountname.tmp and then move it to $webroot/$mountname.png As for now it saves a frame every theora keyframe, which is probably too heavy for the server but
2006 Oct 06
0
V4L + Theora small app...
...; fwrite( tOGGpage.body, 1, tOGGpage.body_len, pfOGGclip ); } OGG_OpenClip_quit: if( iRet < -1 ) fclose( pfOGGclip ); return iRet; } int OGG_CloseClip( void ) { printf( "+++ OGG_CloseClip() \n" ); ogg_stream_clear( &tOGGstreamState ); theora_clear( &tTheoraState ); if( pfOGGclip != NULL ) { fclose( pfOGGclip ); pfOGGclip = NULL; } return 0; } int OGG_PutFrame( void ) { ogg_page tOGGpageTmp; ogg_packet tOGGpacketTmp; memcpy( ucYUVframe, pucV4Lbuffer, iVideoX * iVideoY * 3 / 2 ); theor...