You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Kaspar Fischer <hb...@rapsak.com> on 2009/04/11 12:10:28 UTC

HTTP pseudo streaming for Wicket

I need to stream H264 .mp4 movies to a Flash video player (JW Player)  
and want to support HTTP pseudo streaming, i.e., the user should be  
able to seek within the movie. Does anybody know of a Wicket  
implementation for this, something like xmoov-php [1] for Java with a  
corresponding Wicket component?

The video itself lies in a JackRabbit repository, not directly on the  
file system.

Red5 [2] offers streaming and a lot more. However, I need a solution  
that also works in low memory situations and from the Red5 specs [2]  
it seems that this might be difficult.

Regards,
Kaspar
--

[1] http://xmoov.com/xmoov-php/
[2] http://code.google.com/p/red5/
[3] http://jira.red5.org/confluence/display/docs/Chapter+11.+System+Requirements+For+Red5

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: HTTP pseudo streaming for Wicket

Posted by Kaspar Fischer <hb...@rapsak.com>.
Ok, thanks. I think what you are saying holds for FLV streaming, but MP4
streaming looks more complicated:

   http://www.longtailvideo.com/support/forum/General-Chat/15793/pseudo-stream-mp4-

It seems, as Jeremey pointed out, that lighttpd can do that. (I am  
looking
for a Tomcat-only solution.)

Kaspar

On 25.05.2009, at 23:13, Matej Knopp wrote:

> I'm not sure why there should be any logic regarding mp4 on the
> server. I don't know how exactly flash mp4 players work but the player
> should be able to request the exact byte offset and length from the
> server. Content-Range header basically provides random access to
> remote files which should be enough for streaming playback with
> seeking.
>
> -Matej
>
> On Mon, May 25, 2009 at 10:00 PM, Kaspar Fischer <hb...@rapsak.com>  
> wrote:
>> Sorry: the link I gave is already outdated; a new version is  
>> available:
>>
>>  http://h264.code-shop.com/trac/wiki
>>
>> P.S. Unfortunately I need a solution for Tomcat as I am hosting at  
>> a Tomcat
>> provider.
>>
>> On 25.05.2009, at 22:57, Kaspar Fischer wrote:
>>
>>> Thanks, Matej, for the pointer. I have not read a lot about MP4  
>>> Pseudo
>>> Streaming but as far as I currently understand it, the server  
>>> needs to
>>> analyse the MP4 file (its meta data, actually) in order to know  
>>> which part
>>> of the file to return -- the latter task can then be done using you
>>> Streamer.java. For instance,
>>>
>>>
>>>  http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Introduction-Version1
>>>
>>> analyses the MP4 file in order to get from a time-input ("start  
>>> playing at
>>> 00:01:23") to a file offset. Does anymore have or know of Java  
>>> code/port for
>>> the MP4/h264 pseudo-streaming and is willing to share it?
>>>
>>> Kaspar
>>>
>>> On 13.04.2009, at 21:10, Matej Knopp wrote:
>>>
>>>> If you want to support http streaming you need to implements
>>>> servlet/filter that supports Content-Range and Accept-Range  
>>>> headers.
>>>> You can take a look at
>>>>
>>>> http://code.google.com/p/brix-cms/source/browse/trunk/brix-core/src/main/java/brix/plugin/site/resource/Streamer.java
>>>> to get the idea.
>>>>
>>>> -Matej
>>>>
>>>> On Mon, Apr 13, 2009 at 6:16 PM, Jeremy Thomerson
>>>> <je...@wickettraining.com> wrote:
>>>>>
>>>>> I think lighttpd does this - although I've never personally used  
>>>>> it.  I
>>>>> just
>>>>> remember it form some research I was doing on a similar subject.
>>>>> http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd
>>>>>
>>>>> --
>>>>> Jeremy Thomerson
>>>>> http://www.wickettraining.com
>>>>>
>>>>>
>>>>>
>>>>> On Sat, Apr 11, 2009 at 5:10 AM, Kaspar Fischer <hb...@rapsak.com>  
>>>>> wrote:
>>>>>
>>>>>> I need to stream H264 .mp4 movies to a Flash video player (JW  
>>>>>> Player)
>>>>>> and
>>>>>> want to support HTTP pseudo streaming, i.e., the user should be  
>>>>>> able to
>>>>>> seek
>>>>>> within the movie. Does anybody know of a Wicket implementation  
>>>>>> for
>>>>>> this,
>>>>>> something like xmoov-php [1] for Java with a corresponding Wicket
>>>>>> component?
>>>>>>
>>>>>> The video itself lies in a JackRabbit repository, not directly  
>>>>>> on the
>>>>>> file
>>>>>> system.
>>>>>>
>>>>>> Red5 [2] offers streaming and a lot more. However, I need a  
>>>>>> solution
>>>>>> that
>>>>>> also works in low memory situations and from the Red5 specs [2]  
>>>>>> it
>>>>>> seems
>>>>>> that this might be difficult.
>>>>>>
>>>>>> Regards,
>>>>>> Kaspar
>>>>>> --
>>>>>>
>>>>>> [1] http://xmoov.com/xmoov-php/
>>>>>> [2] http://code.google.com/p/red5/
>>>>>> [3]
>>>>>>
>>>>>> http://jira.red5.org/confluence/display/docs/Chapter+11.+System+Requirements+For+Red5
>>>>>>
>>>>>> ---------------------------------------------------------------------
>>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>>
>>>>>>
>>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: HTTP pseudo streaming for Wicket

Posted by Matej Knopp <ma...@gmail.com>.
I'm not sure why there should be any logic regarding mp4 on the
server. I don't know how exactly flash mp4 players work but the player
should be able to request the exact byte offset and length from the
server. Content-Range header basically provides random access to
remote files which should be enough for streaming playback with
seeking.

-Matej

On Mon, May 25, 2009 at 10:00 PM, Kaspar Fischer <hb...@rapsak.com> wrote:
> Sorry: the link I gave is already outdated; a new version is available:
>
>  http://h264.code-shop.com/trac/wiki
>
> P.S. Unfortunately I need a solution for Tomcat as I am hosting at a Tomcat
> provider.
>
> On 25.05.2009, at 22:57, Kaspar Fischer wrote:
>
>> Thanks, Matej, for the pointer. I have not read a lot about MP4 Pseudo
>> Streaming but as far as I currently understand it, the server needs to
>> analyse the MP4 file (its meta data, actually) in order to know which part
>> of the file to return -- the latter task can then be done using you
>> Streamer.java. For instance,
>>
>>
>>  http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Introduction-Version1
>>
>> analyses the MP4 file in order to get from a time-input ("start playing at
>> 00:01:23") to a file offset. Does anymore have or know of Java code/port for
>> the MP4/h264 pseudo-streaming and is willing to share it?
>>
>> Kaspar
>>
>> On 13.04.2009, at 21:10, Matej Knopp wrote:
>>
>>> If you want to support http streaming you need to implements
>>> servlet/filter that supports Content-Range and Accept-Range headers.
>>> You can take a look at
>>>
>>> http://code.google.com/p/brix-cms/source/browse/trunk/brix-core/src/main/java/brix/plugin/site/resource/Streamer.java
>>> to get the idea.
>>>
>>> -Matej
>>>
>>> On Mon, Apr 13, 2009 at 6:16 PM, Jeremy Thomerson
>>> <je...@wickettraining.com> wrote:
>>>>
>>>> I think lighttpd does this - although I've never personally used it.  I
>>>> just
>>>> remember it form some research I was doing on a similar subject.
>>>> http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd
>>>>
>>>> --
>>>> Jeremy Thomerson
>>>> http://www.wickettraining.com
>>>>
>>>>
>>>>
>>>> On Sat, Apr 11, 2009 at 5:10 AM, Kaspar Fischer <hb...@rapsak.com> wrote:
>>>>
>>>>> I need to stream H264 .mp4 movies to a Flash video player (JW Player)
>>>>> and
>>>>> want to support HTTP pseudo streaming, i.e., the user should be able to
>>>>> seek
>>>>> within the movie. Does anybody know of a Wicket implementation for
>>>>> this,
>>>>> something like xmoov-php [1] for Java with a corresponding Wicket
>>>>> component?
>>>>>
>>>>> The video itself lies in a JackRabbit repository, not directly on the
>>>>> file
>>>>> system.
>>>>>
>>>>> Red5 [2] offers streaming and a lot more. However, I need a solution
>>>>> that
>>>>> also works in low memory situations and from the Red5 specs [2] it
>>>>> seems
>>>>> that this might be difficult.
>>>>>
>>>>> Regards,
>>>>> Kaspar
>>>>> --
>>>>>
>>>>> [1] http://xmoov.com/xmoov-php/
>>>>> [2] http://code.google.com/p/red5/
>>>>> [3]
>>>>>
>>>>> http://jira.red5.org/confluence/display/docs/Chapter+11.+System+Requirements+For+Red5
>>>>>
>>>>> ---------------------------------------------------------------------
>>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>>
>>>>>
>>>>
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: HTTP pseudo streaming for Wicket

Posted by Kaspar Fischer <hb...@rapsak.com>.
Sorry: the link I gave is already outdated; a new version is available:

   http://h264.code-shop.com/trac/wiki

P.S. Unfortunately I need a solution for Tomcat as I am hosting at a  
Tomcat provider.

On 25.05.2009, at 22:57, Kaspar Fischer wrote:

> Thanks, Matej, for the pointer. I have not read a lot about MP4  
> Pseudo Streaming but as far as I currently understand it, the server  
> needs to analyse the MP4 file (its meta data, actually) in order to  
> know which part of the file to return -- the latter task can then be  
> done using you Streamer.java. For instance,
>
>  http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Introduction-Version1
>
> analyses the MP4 file in order to get from a time-input ("start  
> playing at 00:01:23") to a file offset. Does anymore have or know of  
> Java code/port for the MP4/h264 pseudo-streaming and is willing to  
> share it?
>
> Kaspar
>
> On 13.04.2009, at 21:10, Matej Knopp wrote:
>
>> If you want to support http streaming you need to implements
>> servlet/filter that supports Content-Range and Accept-Range headers.
>> You can take a look at
>> http://code.google.com/p/brix-cms/source/browse/trunk/brix-core/src/main/java/brix/plugin/site/resource/Streamer.java
>> to get the idea.
>>
>> -Matej
>>
>> On Mon, Apr 13, 2009 at 6:16 PM, Jeremy Thomerson
>> <je...@wickettraining.com> wrote:
>>> I think lighttpd does this - although I've never personally used  
>>> it.  I just
>>> remember it form some research I was doing on a similar subject.
>>> http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd
>>>
>>> --
>>> Jeremy Thomerson
>>> http://www.wickettraining.com
>>>
>>>
>>>
>>> On Sat, Apr 11, 2009 at 5:10 AM, Kaspar Fischer <hb...@rapsak.com>  
>>> wrote:
>>>
>>>> I need to stream H264 .mp4 movies to a Flash video player (JW  
>>>> Player) and
>>>> want to support HTTP pseudo streaming, i.e., the user should be  
>>>> able to seek
>>>> within the movie. Does anybody know of a Wicket implementation  
>>>> for this,
>>>> something like xmoov-php [1] for Java with a corresponding Wicket  
>>>> component?
>>>>
>>>> The video itself lies in a JackRabbit repository, not directly on  
>>>> the file
>>>> system.
>>>>
>>>> Red5 [2] offers streaming and a lot more. However, I need a  
>>>> solution that
>>>> also works in low memory situations and from the Red5 specs [2]  
>>>> it seems
>>>> that this might be difficult.
>>>>
>>>> Regards,
>>>> Kaspar
>>>> --
>>>>
>>>> [1] http://xmoov.com/xmoov-php/
>>>> [2] http://code.google.com/p/red5/
>>>> [3]
>>>> http://jira.red5.org/confluence/display/docs/Chapter+11.+System+Requirements+For+Red5
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>>
>>>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: HTTP pseudo streaming for Wicket

Posted by Kaspar Fischer <hb...@rapsak.com>.
Thanks, Matej, for the pointer. I have not read a lot about MP4 Pseudo  
Streaming but as far as I currently understand it, the server needs to  
analyse the MP4 file (its meta data, actually) in order to know which  
part of the file to return -- the latter task can then be done using  
you Streamer.java. For instance,

   http://h264.code-shop.com/trac/wiki/Mod-H264-Streaming-Introduction-Version1

analyses the MP4 file in order to get from a time-input ("start  
playing at 00:01:23") to a file offset. Does anymore have or know of  
Java code/port for the MP4/h264 pseudo-streaming and is willing to  
share it?

Kaspar

On 13.04.2009, at 21:10, Matej Knopp wrote:

> If you want to support http streaming you need to implements
> servlet/filter that supports Content-Range and Accept-Range headers.
> You can take a look at
> http://code.google.com/p/brix-cms/source/browse/trunk/brix-core/src/main/java/brix/plugin/site/resource/Streamer.java
> to get the idea.
>
> -Matej
>
> On Mon, Apr 13, 2009 at 6:16 PM, Jeremy Thomerson
> <je...@wickettraining.com> wrote:
>> I think lighttpd does this - although I've never personally used  
>> it.  I just
>> remember it form some research I was doing on a similar subject.
>> http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd
>>
>> --
>> Jeremy Thomerson
>> http://www.wickettraining.com
>>
>>
>>
>> On Sat, Apr 11, 2009 at 5:10 AM, Kaspar Fischer <hb...@rapsak.com>  
>> wrote:
>>
>>> I need to stream H264 .mp4 movies to a Flash video player (JW  
>>> Player) and
>>> want to support HTTP pseudo streaming, i.e., the user should be  
>>> able to seek
>>> within the movie. Does anybody know of a Wicket implementation for  
>>> this,
>>> something like xmoov-php [1] for Java with a corresponding Wicket  
>>> component?
>>>
>>> The video itself lies in a JackRabbit repository, not directly on  
>>> the file
>>> system.
>>>
>>> Red5 [2] offers streaming and a lot more. However, I need a  
>>> solution that
>>> also works in low memory situations and from the Red5 specs [2] it  
>>> seems
>>> that this might be difficult.
>>>
>>> Regards,
>>> Kaspar
>>> --
>>>
>>> [1] http://xmoov.com/xmoov-php/
>>> [2] http://code.google.com/p/red5/
>>> [3]
>>> http://jira.red5.org/confluence/display/docs/Chapter+11.+System+Requirements+For+Red5
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>>> For additional commands, e-mail: users-help@wicket.apache.org
>>>
>>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: HTTP pseudo streaming for Wicket

Posted by Matej Knopp <ma...@gmail.com>.
If you want to support http streaming you need to implements
servlet/filter that supports Content-Range and Accept-Range headers.
You can take a look at
http://code.google.com/p/brix-cms/source/browse/trunk/brix-core/src/main/java/brix/plugin/site/resource/Streamer.java
 to get the idea.

-Matej

On Mon, Apr 13, 2009 at 6:16 PM, Jeremy Thomerson
<je...@wickettraining.com> wrote:
> I think lighttpd does this - although I've never personally used it.  I just
> remember it form some research I was doing on a similar subject.
> http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd
>
> --
> Jeremy Thomerson
> http://www.wickettraining.com
>
>
>
> On Sat, Apr 11, 2009 at 5:10 AM, Kaspar Fischer <hb...@rapsak.com> wrote:
>
>> I need to stream H264 .mp4 movies to a Flash video player (JW Player) and
>> want to support HTTP pseudo streaming, i.e., the user should be able to seek
>> within the movie. Does anybody know of a Wicket implementation for this,
>> something like xmoov-php [1] for Java with a corresponding Wicket component?
>>
>> The video itself lies in a JackRabbit repository, not directly on the file
>> system.
>>
>> Red5 [2] offers streaming and a lot more. However, I need a solution that
>> also works in low memory situations and from the Red5 specs [2] it seems
>> that this might be difficult.
>>
>> Regards,
>> Kaspar
>> --
>>
>> [1] http://xmoov.com/xmoov-php/
>> [2] http://code.google.com/p/red5/
>> [3]
>> http://jira.red5.org/confluence/display/docs/Chapter+11.+System+Requirements+For+Red5
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: HTTP pseudo streaming for Wicket

Posted by Jeremy Thomerson <je...@wickettraining.com>.
I think lighttpd does this - although I've never personally used it.  I just
remember it form some research I was doing on a similar subject.
http://blog.lighttpd.net/articles/2006/03/09/flv-streaming-with-lighttpd

--
Jeremy Thomerson
http://www.wickettraining.com



On Sat, Apr 11, 2009 at 5:10 AM, Kaspar Fischer <hb...@rapsak.com> wrote:

> I need to stream H264 .mp4 movies to a Flash video player (JW Player) and
> want to support HTTP pseudo streaming, i.e., the user should be able to seek
> within the movie. Does anybody know of a Wicket implementation for this,
> something like xmoov-php [1] for Java with a corresponding Wicket component?
>
> The video itself lies in a JackRabbit repository, not directly on the file
> system.
>
> Red5 [2] offers streaming and a lot more. However, I need a solution that
> also works in low memory situations and from the Red5 specs [2] it seems
> that this might be difficult.
>
> Regards,
> Kaspar
> --
>
> [1] http://xmoov.com/xmoov-php/
> [2] http://code.google.com/p/red5/
> [3]
> http://jira.red5.org/confluence/display/docs/Chapter+11.+System+Requirements+For+Red5
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>

Re: HTTP pseudo streaming for Wicket

Posted by Peter Thomas <pt...@gmail.com>.
I've been doing some work on the RTMP protocol recently and have this
open-source project up: http://flazr.com/

Right now it is a client-side piece, but should be easy to add server-side
as well in case that is what you want.  It is definitely much lighter than
Red5.  If you see potential or have questions, feel free to mail me
directly.

On Sat, Apr 11, 2009 at 4:10 AM, Kaspar Fischer <hb...@rapsak.com> wrote:

> I need to stream H264 .mp4 movies to a Flash video player (JW Player) and
> want to support HTTP pseudo streaming, i.e., the user should be able to seek
> within the movie. Does anybody know of a Wicket implementation for this,
> something like xmoov-php [1] for Java with a corresponding Wicket component?
>
> The video itself lies in a JackRabbit repository, not directly on the file
> system.
>
> Red5 [2] offers streaming and a lot more. However, I need a solution that
> also works in low memory situations and from the Red5 specs [2] it seems
> that this might be difficult.
>
> Regards,
> Kaspar
> --
>
> [1] http://xmoov.com/xmoov-php/
> [2] http://code.google.com/p/red5/
> [3]
> http://jira.red5.org/confluence/display/docs/Chapter+11.+System+Requirements+For+Red5
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>