search for: fps_numerator

Displaying 20 results from an estimated 24 matches for "fps_numerator".

2008 Nov 04
1
[PATCH] liboggz: Update Dirac granulepos definition
...ere is this in Ogg Dirac? - keyframe_granule_shift = (char) ((header[40] & 0x03) << 3); - keyframe_granule_shift |= (header[41] & 0xe0) >> 5; - */ - keyframe_shift = keyframe_granule_shift; - #ifdef DEBUG - printf ("Got dirac fps %d/%d, keyframe_shift %d\n", - fps_numerator, fps_denominator, keyframe_shift); + printf ("Got dirac fps %d/%d, granule_shift %d\n", + info->fps_numerator, info->fps_denominator, granule_shift); #endif - oggz_set_granulerate (oggz, serialno, (ogg_int64_t)info->fps_numerator, + /* the granulerate is twice the...
2010 Jun 14
4
Live Stream Encoding
...= 0; th_info_init(&ti); ti.frame_width = ((480 + 15) >>4)<<4; ti.frame_height = ((320 + 15)>>4)<<4; ti.pic_width = 480; ti.pic_height = 320; ti.pic_x = 0; ti.pic_y = 0; ti.fps_numerator = 30; ti.fps_denominator = 1; ti.aspect_numerator = 0; ti.aspect_denominator = 0; ti.colorspace = TH_CS_UNSPECIFIED; ti.pixel_fmt = TH_PF_422; ti.target_bitrate = -1; ti.quality = 48; ti.keyframe_granule...
2008 Nov 04
0
[PATCH] liboggz: Fix Dirac bitstream parsing
...;interlaced = 0; } + } else { /* no custom scan_format, use the preset value */ + info->interlaced = dirac_source_sampling[video_format]; } + /* field order is set by video_format and cannot be custom */ + info->top_field_first = dirac_top_field_first[video_format]; info->fps_numerator = dirac_frate_tbl[dirac_vidfmt_frate[video_format]].fps_numerator;
2009 May 04
2
data alignment issue on ARM
Hi, Can anyone familiar with data alignment issues on ARM give me some advice about this bug?: https://bugzilla.mozilla.org/show_bug.cgi?id=483912 The relevant code is in liboggz HEAD at: http://git.xiph.org/?p=liboggz.git;a=blob;f=src/liboggz/oggz_auto.c;h=ebb825c348298dc352a54d6925ce74ed707bbc3a;hb=HEAD#l138 cheers, Conrad.
2009 Jul 07
1
Estimate bytes per second from th_info-settings
...way to estimate the number of bytes per second from the information passed in the th_info-struct to the Theora encoder's th_encode_alloc()? I'm trying to be able to give users a rough estimate of the file size needed to encode with the setting provided to th_info-struct (frame width/height, fps_numerator/fps_denominator, target_bitrate and quality). -- Bjoern _________________________________________________________________ NY Windows Live Messenger med nye fede funktioner. Hent den her! http://download.live.com/messenger
2005 Mar 02
1
Patch that fixes distortions during static scenes
...b.UnitFragments; i++ ){ if ( cpi->pb.display_fragments[i] ){ @@ -862,8 +862,8 @@ /* Set key frame data rate target; this is nominal keyframe size */ cpi->Configuration.KeyFrameDataTarget = (c->keyframe_data_target_bitrate * - c->fps_numerator / - c->fps_denominator ) / 8; + c->fps_denominator / + c->fps_numerator ) / 8; /* Note the height and width in the pre-processor control structure. */ cpi-&...
2010 Mar 25
2
Questions about encoder parameters.
...s after that. One of the problems is probably that I send wrong parameters to theora for encoding. I had some problem understanding what the intention of these parameters are. I will therefore ask some questions about some of the parameters in the th_info structure: th_info info; info.fps_numerator = 10; info.fps_denominator = 1; My understanding is that this is the framerate, and that the parameters above means 10 frames per second, Is that right? info.aspect_denominator = 0; info.aspect_numerator = 0; Here I use the default, and hope that is OK. info.keyframe_granule_sh...
2004 Oct 02
2
Theora decode problem
...e. I'm not sure what I'm doing wrong. Here's my encryption initialization: theora_info_init(&m_ti); m_ti.width=176; m_ti.height=144; m_ti.frame_width=176; m_ti.frame_height=144; m_ti.offset_x=0; m_ti.offset_y=0; m_ti.fps_denominator=(ogg_uint32_t)1000000.0; m_ti.fps_numerator=10 * m_ti.fps_denominator; //10 is 10 frames per second m_ti.aspect_numerator=1; m_ti.aspect_denominator=1; m_ti.colorspace=OC_CS_UNSPECIFIED; m_ti.target_bitrate=0; // 0 if we are specifying quality m_ti.quality=5; // from 0 to 10, 10 is highest quality but higher files m_ti.dr...
2008 Nov 04
3
[PATCH] liboggz: Fix Dirac bitstream parsing
Quite a while ago, the specification was modified to change the way the nondefault scan format was signalled; this patch fixes that. Index: liboggz/dirac.c =================================================================== --- liboggz/dirac.c (revision 3759) +++ liboggz/dirac.c (working copy) @@ -122,6 +122,10 @@ 1, 9, 10, 9, 10, 9, 10, 4, 3, 7, 6, 4, 3, 7, 6, 2, 2, 7, 6, 7, 6, }; +
2005 Feb 17
1
Fix a bug that causes the encoder to spend way to many bits on keyframes
...encoder_toplevel.c (revision 8940) +++ encoder_toplevel.c (working copy) @@ -862,8 +862,8 @@ /* Set key frame data rate target; this is nominal keyframe size */ cpi->Configuration.KeyFrameDataTarget = (c->keyframe_data_target_bitrate * - c->fps_numerator / - c->fps_denominator ) / 8; + c->fps_denominator / + c->fps_numerator ) / 8; /* Note the height and width in the pre-processor control structure. */ cpi-&...
2007 Jan 06
7
FFmpeg Theora encoding patch
Hi, Attached is my patch to add theora encoding to ffmpeg's libavcodec (by using libtheora). I am requesting help to fix the bug I mention below and am seeking general comments before I submit the patch properly. Files encoded using this encoder have a problem playing in VLC. The files will not play unless "Drop late frames" has been unticked in the advanced video settings.
2006 Oct 06
0
V4L + Theora small app...
...= iVideoX; tTheoraInfo.height = iVideoY; tTheoraInfo.frame_width = FRAME_WIDTH; tTheoraInfo.frame_height = FRAME_HEIGHT; tTheoraInfo.offset_x = iFrameOffsetX; tTheoraInfo.offset_y = iFrameOffsetY; tTheoraInfo.fps_numerator = iVideoFPSnum; tTheoraInfo.fps_denominator = iVideoFPSden; tTheoraInfo.aspect_numerator = iVideoAspNum; tTheoraInfo.aspect_denominator = iVideoAspDen; tTheoraInfo.colorspace = OC_CS_UNSPECIFIED; tTheoraInfo.pixelformat = OC_PF_420; tTheo...
2003 May 22
6
resolution issues
...) that Theora should support arbitrary pixel sizes (presently it is limited to multiples of 16 both horizontally and vertically). It is felt that this can be achieved with minimal pain by adding four values to the page header, immediately following the present width & height parameters (before fps_numerator & fps_denominator): pixel_width, pixel_height, x_offset, and y_offset (or somesuch). The existing width & height parameters specify (in 16x16 units as they do now) the encoded frame size, which will always be a multiple of 16x16 blocks. The new parameters should specify a rectangle within...
2004 May 20
0
theora header bitmap for alpha3
...t; 4 | PICW: frame_width | 12-15 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | PICH: frame_height | 16-19 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | PICX: offset_x| PICY: offset_y| FRN: fps_numerator | 20-23 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | FRD: fps_denominator | 24-27 +-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+-+ | | PARN: aspect_numerator | 28-31 +-+-...
2005 Nov 03
1
CPU usage while encoding...
Hi all. In my test application I saw that the encoding process with Theora is too CPU expensive ( compared to FFmpeg - MP4 ) ... Perhaps I'm using wrong parameters: ti.fps_numerator = fps * 11 + 1; // var framerate ti.fps_denominator = 11; ti.aspect_numerator = 1; ti.aspect_denominator = 1; ti.colorspace = OC_CS_ITU_REC_470BG; // OC_CS_UNSPECIFIED; ti.pixelformat = OC_PF_420; ti.target_bitrate = 0;...
2008 Feb 15
2
Seeking to granules in discontinuous streams
On 15-Feb-08, at 6:44 AM, ogg.k.ogg.k@googlemail.com wrote: > Well, it doesn't quite work because the second part of the gpos is > an offset, > rather than absolute, and the precision we shed on one, we need to > recover > on the other one, to keep the ability to timestamp events at the > correct > granularity. It would have worked if the second part was absolute
2010 Jun 04
2
OGGZ Seeking in Theora
Dear all I'm aware that there have been several discussions about the seeking issue and I'm sorry to bring this up again. To solve the problem with Inter-Frame garbage, a seek to the previous keyframe has to be made. The keyframe number should be extracted from the granulepos of the frame where we want to seek to. I hope I understood the theory - unfortunately a few questions have
2005 Sep 07
1
encoder settings
...0; videostream->ti.width = video_x; videostream->ti.height = video_y; videostream->ti.frame_width = frame_x; videostream->ti.frame_height = frame_y; videostream->ti.offset_x = frame_x_offset; videostream->ti.offset_y = frame_y_offset; videostream->ti.fps_numerator = refreshrate * 1000000; videostream->ti.fps_denominator = 10 * 100000; videostream->ti.aspect_numerator = 0; videostream->ti.aspect_denominator = 0; videostream->ti.colorspace = OC_CS_UNSPECIFIED; videostream->ti.target_bitrate = video_r; videostream->ti...
2006 Aug 06
0
Newbie: How to rewind a videostream (long)
...std::cout << "Ogg logical stream " << theoraStreamState.serialno << " is Theora " << theoraInfo.width << "x" << theoraInfo.height << " " << ((double)theoraInfo.fps_numerator/theoraInfo.fps_denominator) << " fps video " << " Encoded frame content is size: " <<theoraInfo.frame_width << "x" << theoraInfo.frame_height << " offset: " << theoraInf...
2008 Feb 18
0
Seeking to granules in discontinuous streams
...ds is: Current method (from libtheora's toplevel.c): ogg_int64_t iframe=granulepos>>pbi->keyframe_granule_shift; ogg_int64_t pframe=granulepos-(iframe<<pbi->keyframe_granule_shift); return (iframe+pframe)* ((double)pbi->info.fps_denominator/pbi->info.fps_numerator); Proposed method (from libkate's kate_granule.c): base=granulepos>>ki->granule_shift; offset=(granulepos-(base<<ki->granule_shift))>>ki->granule_shift2; return base*(kate_float)ki->gps_base_denominator/ki->gps_base_numerator +offset*(kate_float)ki...