[Red5] About streaming "on demand"... ffmpeg-php thumbnails
Shucky
shuckinjive at comcast.net
Sat Jul 1 01:03:01 EDT 2006
This is my first red5 forum post so please tell me if I am doing this
correctly. I've been getting VBScript errors when I try to login to the
shocksites website.
Regarding a screenshot or thumbnail generated on the server-side... Adam
Procter has a cool ffmpeg example/download on the osflash.org/Red5 website
and while I was installing it and ffmpeg, I found and installed ffmpeg-php
http://ffmpeg-php.sourceforge.net/ . ffmpeg-php is a php extension that
can grab a video's metadata(duration, bitrate, etc...) AND can return frames
of videos as image files... that's thumbnail creation! I've only used it
to grab metadata but I'm going to try to create thumbnail images next...
Here's a link to the api. http://ffmpeg-php.sourceforge.net/apidoc.php. A
friend mentioned that in the past he had used ffmpeg to grab thumbnails of
flv-streams on fcs. I'll ask him about that too.
-J
----- Original Message -----
>
> Message: 2
> Date: Thu, 29 Jun 2006 16:10:01 +0200
> From: Yasar ?zdemir <oezdemir at pragmatik.ids-mannheim.de>
> Subject: Re: [Red5] About streaming "on demand"
> To: <Red5 at osflash.org>
> Message-ID: <000001c69b85$b5f07c30$4302000a at pc315m>
> Content-Type: text/plain; charset="iso-8859-1"
>
...
> And another feature-request: Is it possible to request a jpg or another
> screenshot of the flv from the server? ?and force the browser to download
> the screenshot?
>
>
>
> Best regards & sorry for nerving,
>
> Yasar
>
>
>
>
>
> -----Urspr?ngliche Nachricht-----
> Von: Red5-bounces at osflash.org [mailto:Red5-bounces at osflash.org] Im Auftrag
> von Steven Gong
> Gesendet: Montag, 26. Juni 2006 12:50
> An: Red5 at osflash.org
> Betreff: Re: [Red5] About streaming "on demand"
>
>
>
>
>
> On 6/26/06, Yasar ?zdemir <oezdemir at pragmatik.ids-mannheim.de> wrote:
>
> Hi,
>
>
> I am very new to red5 and Java. Anyhow, I found it easy to get into it.
> First of all, thank you all to making this job!!!
>
>
> My Background:
> I have a website, where users can upload their flv videos and share them
> with the community. So I need an "on demand"-server. The client should be
> able to stream small preview pieces of large flv files by giving start and
> stop positions.
>
>
> Now my question:
> I used the oflaDemo for my purposes and made some modifications on it. The
> netStream works very well. When I call "onMetaData" in the flash client,
> there returns some info like "duration" and "fps" and all.
>
> 1. What does the netStream.play(filename) call on the server, because I
> haven't got any function for that in my application?
> 2. Where is the procedure on the server that sends the metadata?
> 3. And how can I call it from my java Server-Side-Application?
> 4. Can you point me a direction, how I can change the streaming progress
> to
> start streaming at a specific time position and stop after a while? (Using
> the Metadata?)
>
>
> The play() function takes actually four params. That is play(flvName,
> start,
> length, flushPlaylist). The first param is mandatory and the rest are not.
> The default value for start is 0, length is -1 and flushPlaylist is true.
> So
> if you want to play at a specific time with a specific length, just
> specify
> the "start" and "length".
>
>
>
> Maybe I am not skilled enough to do that all, but I can learn it (when
> somebody shows me where I can start). For now I even don't know where the
> stream is exactly handled on the red5 and how I can change it...
>
> Thank you very very much for helping and for working open source!!!
>
> Regards,
> Jascha
>
>
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org <mailto:Red5 at osflash.org>
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
>
>
> --
> Best Regards
> Steven Gong
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://osflash.org/pipermail/red5_osflash.org/attachments/20060629/8f4b82a3/attachment-0001.htm
>
> ------------------------------
>
> Message: 3
> Date: Thu, 29 Jun 2006 11:36:17 -0300
> From: "Ronnie Brito" <ronniefbrito at gmail.com>
> Subject: Re: [Red5] About streaming "on demand"
> To: Red5 at osflash.org
> Message-ID:
> <2af7a6b80606290736t6d6b2befqa9dd1229e2ce0a7a at mail.gmail.com>
> Content-Type: text/plain; charset="windows-1252"
>
> "And another feature-request: Is it possible to request a jpg or another
> screenshot of the flv from the server? ?and force the browser to download
> the screenshot?"
>
> this would be a very usefull function
> could be used on whiteboard applications too
>
> On 6/29/06, Yasar ?zdemir <oezdemir at pragmatik.ids-mannheim.de> wrote:
>>
>> Hi,
>>
>>
>>
>> ns.play() doesnt work proper with the start and length parameters. When I
>> make:
>>
>>
>>
>> ns = new NetStream(nc);
>>
>> videoContainer.attachVideo(ns);
>>
>> ns.play(fName,50,5);
>>
>>
>>
>>
>>
>> First of all, the start and length parameters are completely ignored: It
>> starts always at position 0 with -1 length.
>>
>> Second: ns.seek() doesn't work anymore, when I set start and length in
>> ns.play()
>>
>>
>>
>> Do I something wrong there?
>>
>>
>>
>> And don't you think a server-side solution will be more stable?
>>
>> I could call a class like ns.call("cut",videoname,start,length); and the
>> server will prepare the stream for me. Isn't that possible?
>>
>>
>>
>> And another feature-request: Is it possible to request a jpg or another
>> screenshot of the flv from the server? ?and force the browser to download
>> the screenshot?
>>
>>
>>
>> Best regards & sorry for nerving,
>>
>> Yasar
>>
>>
>>
>>
>>
>> -----Urspr?ngliche Nachricht-----
>> *Von:* Red5-bounces at osflash.org [mailto:Red5-bounces at osflash.org] *Im
>> Auftrag von *Steven Gong
>> *Gesendet:* Montag, 26. Juni 2006 12:50
>> *An:* Red5 at osflash.org
>> *Betreff:* Re: [Red5] About streaming "on demand"
>>
>>
>>
>>
>>
>> On 6/26/06, *Yasar ?zdemir* <oezdemir at pragmatik.ids-mannheim.de> wrote:
>>
>> Hi,
>>
>>
>> I am very new to red5 and Java. Anyhow, I found it easy to get into it.
>> First of all, thank you all to making this job!!!
>>
>>
>> My Background:
>> I have a website, where users can upload their flv videos and share them
>> with the community. So I need an "on demand"-server. The client should be
>> able to stream small preview pieces of large flv files by giving start
>> and
>> stop positions.
>>
>>
>> Now my question:
>> I used the oflaDemo for my purposes and made some modifications on it.
>> The
>>
>> netStream works very well. When I call "onMetaData" in the flash client,
>> there returns some info like "duration" and "fps" and all.
>>
>> 1. What does the netStream.play(filename) call on the server, because I
>> haven't got any function for that in my application?
>> 2. Where is the procedure on the server that sends the metadata?
>> 3. And how can I call it from my java Server-Side-Application?
>> 4. Can you point me a direction, how I can change the streaming progress
>> to
>> start streaming at a specific time position and stop after a while?
>> (Using
>> the Metadata?)
>>
>>
>> The play() function takes actually four params. That is play(flvName,
>> start, length, flushPlaylist). The first param is mandatory and the rest
>> are
>> not.
>> The default value for start is 0, length is -1 and flushPlaylist is true.
>> So if you want to play at a specific time with a specific length, just
>> specify the "start" and "length".
>>
>>
>>
>> Maybe I am not skilled enough to do that all, but I can learn it (when
>> somebody shows me where I can start). For now I even don't know where the
>> stream is exactly handled on the red5 and how I can change it...
>>
>> Thank you very very much for helping and for working open source!!!
>>
>> Regards,
>> Jascha
>>
>>
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>>
>>
>> --
>> Best Regards
>> Steven Gong
>>
>> _______________________________________________
>> Red5 mailing list
>> Red5 at osflash.org
>> http://osflash.org/mailman/listinfo/red5_osflash.org
>>
>>
>>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL:
> http://osflash.org/pipermail/red5_osflash.org/attachments/20060629/1de99596/attachment.htm
>
> ------------------------------
>
> _______________________________________________
> Red5 mailing list
> Red5 at osflash.org
> http://osflash.org/mailman/listinfo/red5_osflash.org
>
>
> End of Red5 Digest, Vol 10, Issue 64
> ************************************
More information about the Red5
mailing list