search for: read_fram

Displaying 4 results from an estimated 4 matches for "read_fram".

Did you mean: read_frame
2009 Jun 14
3
python bindings to libtheora
...example how to read bbb_theora_325kbit.ogv, seek to 10s and convert the next 10s to a new a.ogv: -------------------- from theora import Theora, TheoraEncoder a = Theora("bbb_theora_325kbit.ogv") b = TheoraEncoder("a.ogv", a.width, a.height, quality=63) a.seek(time=10) while a.read_frame() and a.time < 20: A = a.get_frame_array() b.write_frame(A) ----------------------- And here is another example that shows an interactive usage in ipython, that reads tw.ogv, reads 2 frames, then gets the image data as a numpy array (this is the YCbCr colors), then ask to return it as...
2006 May 11
2
C++ Set_Metadata Problem
I refer to a problem that appeared on the flac list last August that was either solved off-list or abandoned. (http://lists.xiph.org/pipermail/flac/2005-August/000468.html) The problem is with using the C++ encoder classes, particularly the FLAC::Encoder::File:set_metadata function. JC said that the developers version of how to add a simple metadata block looked right, but it did not work for
2006 Oct 27
1
PATCH for seek bug (#1154585)
...on is well intentioned, and fine for non-seekable streams. However, seekable_stream_decoder uses this code as well, and once all the frames have been decoded, you can't seek anymore. The fix is to simply remove this block of code, so it can put the decoder into the state it needs to be in: ...READ_FRAME. For those who really need a patch, here it is: --- stream_decoder.c 2005-01-30 10:21:23.000000000 -0500 +++ stream_decoder.c 2006-10-27 23:51:11.000000000 -0400 @@ -1327,6 +1327,7 @@ FLAC__uint32 x; FLAC__bool first = true; +#if 0 /* If we know the total number of sam...
2009 Jun 15
0
python bindings update
...rom theora import Theora, test_files, VIDEO_DIR >>> t = Theora(test_files[2]) >>> print t <Ogg logical stream 11f68f2c is Theora 720x576 25.00 fps video, encoded frame content is 720x576 with 0x0 offset, aspect is 16:15> >>> t.read_frame() True [...] and so on. Then you can literally copy & paste any example from the documentation/docstrings and it will work. This is just to show that Python allows this kind of interactive exploration of the api and it makes it easy to play with theora. I am interested in all feedba...