On 4/22/07, Dirk Meyer <[EMAIL PROTECTED]> wrote: > This is a proposal for the interface of kaa.record2. This is not > implemented yet, but if we agree to make it this way I will do > it. This doc does not cover how this is done in the internals of > kaa.record2.
> Next we want some parts from that channel. E.g. audio and video in one stream > and > teletext in another. > | video = device.get_stream(channel, 'audio,video') > | text = device.get_stream(channel, 'teletext') Fine, but for dvb programs having multiple audio streams it should be possible to select which specific stream to return: audio_en = device.get_stream (channe, "audio-en") > We now have two 'Stream' objects. What should we do? Let's say we want > to store the video to a file. > > | video.add_output('filewriter', filename='foo') [snip] > Or we add an encoder if we want: > | enc = video.add_output('encoder', video='h.264', audio='ac3', > container='mkv') > | enc.set_property('vbitrate' 2000) [snip] > We can add as many outputs as we like. The add_output function returns > either a 'Stream' or a 'Sink' object (names could be different). The > 'Sink' objects has an unlink() function to remove later. If a 'Stream' > has no outputs and is not referenced by python anymore, it will unlink > itself. Also, maybe Stream objects should support multiple outputs, for example if we want to record a show while watching it: sink = video.add_output ("xv") enc = video.add_output ("encoder", video="h264", audio="ac3", container="mkv") fs = enc.add_output ("filewriter", filename="foo.mkv") my 2 cents, Alessandro ------------------------------------------------------------------------- This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ _______________________________________________ Freevo-devel mailing list Freevo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/freevo-devel