search for: video_bytesout

Displaying 2 results from an estimated 2 matches for "video_bytesout".

2004 Nov 16
0
metadata switches for ffmpeg2theora
...8208) +++ theorautils.c (working copy) @@ -32,8 +32,6 @@ #include "theorautils.h" -theoraframes_info info; - static double rint(double x) { if (x < 0.0) @@ -42,30 +40,30 @@ return (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_o...
2005 Oct 05
1
Simple encodig sample...
...tream of packets */ ogg_page og; /* one Ogg bitstream page. Vorbis packets are inside */ ogg_packet op; /* one raw packet of data for decode */ theora_state td; theora_info ti; theora_comment tc; int vkbps = 0; int ret; ogg_int64_t video_bytesout = 0; double timebase; FILE* outfile; outfile = fopen( "test.ogg","wb" ); if( outfile == NULL ) { fprintf( stderr, "Unable to open output file '%s'\n", "test.ogg" ); exit( 1 ); } srand( time( NULL )...