<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 23: Realtime streams</title><link href="https://sourceforge.net/p/ffmpeg-php/feature-requests/23/" rel="alternate"/><link href="https://sourceforge.net/p/ffmpeg-php/feature-requests/23/feed.atom" rel="self"/><id>https://sourceforge.net/p/ffmpeg-php/feature-requests/23/</id><updated>2006-12-13T21:39:57Z</updated><subtitle>Recent changes to 23: Realtime streams</subtitle><entry><title>Realtime streams</title><link href="https://sourceforge.net/p/ffmpeg-php/feature-requests/23/" rel="alternate"/><published>2006-12-13T21:39:57Z</published><updated>2006-12-13T21:39:57Z</updated><author><name>Anonymous</name><uri>https://sourceforge.net/u/userid-None/</uri></author><id>https://sourceforge.neta26b4bb9c3f5cefa5477d8d299d736bf831cf5d8</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;it would be nice if it supported the opening of a realtime stream.&lt;/p&gt;
&lt;p&gt;for example, if you have a wintv150 pvr card, then /dev/video0 would be an mpeg2 stream.&lt;/p&gt;
&lt;p&gt;currently it *sort of* works, it takes about 3-5 seconds to open the "file" (device), and I can grab frames and turn them into images.&lt;/p&gt;
&lt;p&gt;I suggest, either creating a new class for handling realtime streams that implements the basics, and opens the connection as persistent...&lt;/p&gt;
&lt;p&gt;It should add a configurable buffer size for the stream.&lt;br /&gt;
getFrameCount and getDuration would be overridden to check the frame count and duration of the contents of the buffer.&lt;/p&gt;
&lt;p&gt;for accomplishing the same purpose it serves now, you could add 2 extra methods: &lt;br /&gt;
getLastFrame():  gets the last frame received in the buffer&lt;br /&gt;
getLastKeyFrame():  gets the last key frame received in the buffer&lt;/p&gt;
&lt;p&gt;in addition, I think another nice feature would be having an index member for the current position in the stream, along with rewind and fastforward type methods.&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>