[mythtv] Ticket #8206 Pseudostreaming for Mythweb

Vitold vitold.md at vitou.com
Fri Jun 11 09:28:07 UTC 2010


On Fri, 11 Jun 2010 15:32:42 +1000, Chris Adams <rocket at extremelan.net>
wrote:
> On Fri, Jun 11, 2010 at 2:20 PM, MarcT <myrdhn at gmail.com> wrote:
>>
>>
>> -----Original Message-----
>> From: mythtv-dev-bounces at mythtv.org
>> [mailto:mythtv-dev-bounces at mythtv.org]
>> On Behalf Of Vitold
>> Sent: Thursday, June 10, 2010 7:41 PM
>> To: mythtv-dev at mythtv.org
>> Subject: [mythtv] Ticket #8206 Pseudostreaming for Mythweb
>>
>> Hi,
>>
>> I've just tried to updated my Ticket in Trak to find out that it has
been
>> locked.
>> This plugin add the seek feature to mythweb.
>>
>> Has anyone tried the first patch ?
>>
>>
>> Vitold
>> _______________________________________________
>>
>> Since I updated ~3 days ago, seeking is working for me using the
>> flowplayer.
>> You just have to let it cache enough of the show to allow you to seek
>> forward. You can also seek backwards from your current position because
>> it
>> is already cached as well.
>> Not sure if this is what your patch was supposed to do as I see no
notes
>> in
>> the ticket of how it is supposed to work.
>>
>> MarcT
>>
> 
> The patch makes seeking happen via server request instead of from the
> cache. Not sure if it's smart enough to use cached data where
> available though.
> 
> The start URL parameter contains a number. One problem though - the
> only info I've found online about ffmpeg's "-ss" parameter suggest its
> format is hh:mm:ss:cc, but the regex being used is "(\d+)$", which
> won't match colons. Is a conversion needed in there?
> _______________________________________________
> mythtv-dev mailing list
> mythtv-dev at mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-dev

Hi,

No conversion is needed for FFMpeg's -ss parameter
"-ss position'
Seek to given time position in seconds. hh:mm:ss[.xxx] syntax is also
supported."
http://www.ffmpeg.org/ffmpeg-doc.html

The pseudo streaming plugin query apache for the flv file with the start
parameter (offest in second), Ex:
https://192.168.1.3:443//mythweb/pl/stream/1140/1275762300.flv?start=2897

When you seek, the flowplayer extention check if the seeked part is
already cached, or we need to request from the server. It makes the player
behave like youtube seeking.

  
mythpseudostreaming/flowplayer.mythpseudostreaming/src/actionscript/org/flowplayer/pseudostreaming/PseudoStreamProvider.as:
line 73:

    override protected function doSeek(event:ClipEvent,
netStream:NetStream, seconds:Number):void {
        log.info("doSeek");
        var target:Number = clip.start + seconds;
        if (isInBuffer(target)) {  
            log.debug("seeking inside buffer, target " + target + "
seconds");
            netStream.seek(target - _bufferStart);
        } else {                                  

           log.debug("doSeek: seeking, target " + target + " seconds");
           serverSeek(netStream, target);
        }
    }




More information about the mythtv-dev mailing list