How to H264-Live?

View: New views
13 Messages — Rating Filter:   Alert me  

How to H264-Live?

by ddprasad :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It being said that Live h264 now works with Red5 v0.9.0 RC2? Can anybody come up with simple example. I am trying to use lti-civil, xuggler but not getting suitable solution.

Please note that i am just a application developer. I can just develop applications once i have proper documentation. Also, I already have application running through previous versions.


Re: How to H264-Live?

by Thomas-128 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I tried using wirecast which can stream h264 over rtmp, but I couldn't
get it to publish on red5, and rtsp is not yet supported, so no red5
doesn't yet support h264 out of the box.

--
VOD & visioconference - http://www.digiprof.tv

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How to H264-Live?

by Andy Shaules :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Depending on whether you are willing to use flashMedia encoder. It does
support live h264 with red5

----- Original Message -----
From: "Thomas" <iamkenzo@...>
To: <red5@...>
Sent: Friday, November 06, 2009 9:38 AM
Subject: Re: [Red5] How to H264-Live?


>I tried using wirecast which can stream h264 over rtmp, but I couldn't
> get it to publish on red5, and rtsp is not yet supported, so no red5
> doesn't yet support h264 out of the box.
>
> --
> VOD & visioconference - http://www.digiprof.tv
>
> _______________________________________________
> Red5 mailing list
> Red5@...
> http://osflash.org/mailman/listinfo/red5_osflash.org
>


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How to H264-Live?

by Maciej Sawicki :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Nov 6, 2009 at 18:44, Andy Shaules <bowljoman@...> wrote:
> Depending on whether you are willing to use flashMedia encoder. It does
> support live h264 with red5
>
How about, feeding RED5 from named pipe? RTSP would be nice, but in my
project using named pipe (or similar method) would be good enough.

regards,
Maciek Sawicki

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How to H264-Live?

by Andy Shaules :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Yes, any IO point is potentially an avenue to create rtmp streams.

----- Original Message -----
From: "Maciej Sawicki" <viroos.pl@...>
To: <red5@...>
Sent: Friday, November 06, 2009 9:58 AM
Subject: Re: [Red5] How to H264-Live?


> On Fri, Nov 6, 2009 at 18:44, Andy Shaules <bowljoman@...> wrote:
>> Depending on whether you are willing to use flashMedia encoder. It does
>> support live h264 with red5
>>
> How about, feeding RED5 from named pipe? RTSP would be nice, but in my
> project using named pipe (or similar method) would be good enough.
>
> regards,
> Maciek Sawicki
>
> _______________________________________________
> Red5 mailing list
> Red5@...
> http://osflash.org/mailman/listinfo/red5_osflash.org
>

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How to H264-Live?

by Thomas-128 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Fri, Nov 6, 2009 at 6:44 PM, Andy Shaules <bowljoman@...> wrote:
> Depending on whether you are willing to use flashMedia encoder. It does
> support live h264 with red5
Is it possible to have authentication as well? Or would it be a hack
to add a token to the streaming string which red5 can then fetch and
use an the authentication token?


--
VOD & visioconference - http://www.digiprof.tv

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How to H264-Live?

by Dominick Accattato-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

using Xuggle, you can receive RTSP h.264 video with Red5.

On Fri, Nov 6, 2009 at 6:43 AM, ddprasad <ddprasad@...> wrote:

It being said that Live h264 now works with Red5 v0.9.0 RC2? Can anybody come
up with simple example. I am trying to use lti-civil, xuggler but not
getting suitable solution.

Please note that i am just a application developer. I can just develop
applications once i have proper documentation. Also, I already have
application running through previous versions.


--
View this message in context: http://old.nabble.com/How-to-H264-Live--tp26230481p26230481.html
Sent from the Red5 - English mailing list archive at Nabble.com.


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How to H264-Live?

by Thomas-128 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Good to know. And what about authentication? Is it possible to have
such client behave like a somehow regular Flash client?


--
VOD & visioconference - http://www.digiprof.tv

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How to H264-Live?

by Walter Tak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Can't say if auth works already but you can create a custom stream-name for
your clients to publish to Red5. On the server you check if the incoming
stream has a name that is known in your database (call to backend or using
the mysql-connector for example) and allow the stream to continue, or not.

How does this work in practise ?

1. potential h.264 streamer uses FME3 (on his own risk) ; he needs to setup
URL of your server, name of the stream etc ; to get the correct information
he :
2. logs in on your website, requests a valid stream-name which you generate
(e.g. afde4efa8174ccb) and store in your database together with the ID of
the user and the current date/time
3. user enters the streamname 'code' in FME3 and starts to publish
4. Red5 detects the incoming user
5. Red5 detects the incoming stream
6. Red5 checks the name against the backend (perform a http-request to
another backend-server or use a direct connection to a database)
7. User is allowed or not
8. Your application knows a) that a certain user requested a streamname and
b) knows he is currently connected to Red5 and streaming
9. Your public website creates a link, thumbnail, whatever on the website
with the name of the stream for viewer/subscribers.

Etc.

Piece of cake.

Walter

----- Original Message -----
From: "Thomas" <iamkenzo@...>
To: <red5@...>
Sent: Friday, 06 November 2009 21:44
Subject: Re: [Red5] How to H264-Live?


> Good to know. And what about authentication? Is it possible to have
> such client behave like a somehow regular Flash client?
>
>
> --
> VOD & visioconference - http://www.digiprof.tv
>
> _______________________________________________
> Red5 mailing list
> Red5@...
> http://osflash.org/mailman/listinfo/red5_osflash.org
>


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How to H264-Live?

by Thomas-128 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I have finally managed to stream to red5 using h264, and here is my
feedback: it's not good.

It obviously takes a huge amount of processing power, and although my
cores had some room left to breath, the playback in the flashplayer
was total crap by being very jerky. My cpu is a goold old Core2Duo
E6300 which is still a good cpu.

I do not understand how ustream can achieve very sharp images and
super smooth playback for a result close to real TV. Not all their
streams are that good, but I have seen some that were outstanding.

I know they allow people to use FMLE, but why is their playback so
smooth and not mine??? Is it because I am running the h264 encoder
(eats 50% cpu itself) and playing back the stream on the same machine?
(red5 is on another machine and barely uses a few cpu cycles)

I'll try tomorrow with a third machine so that the encoding machine
won't have to playback at the same time.

I just streaming myself to ustream but FMLE won't connect to their
server. Using a low quality streaming does work though...

--
VOD & visioconference - http://www.digiprof.tv

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How to H264-Live?

by dsgirard :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

thomas, 

I've been getting "quite good" results streaming h264 with FME 2.5 to red5...the one issue I encountered was broken a/v sync, resolved by setting a 2 second buffer in the flash client app.

granted, I haven't tried encoding and serving on the same machine, but when would you anyway, aside from testing? with a dedicated encoding machine I haven't run into CPU issues.

On Fri, Nov 6, 2009 at 4:53 PM, Thomas <iamkenzo@...> wrote:
I have finally managed to stream to red5 using h264, and here is my
feedback: it's not good.

It obviously takes a huge amount of processing power, and although my
cores had some room left to breath, the playback in the flashplayer
was total crap by being very jerky. My cpu is a goold old Core2Duo
E6300 which is still a good cpu.

I do not understand how ustream can achieve very sharp images and
super smooth playback for a result close to real TV. Not all their
streams are that good, but I have seen some that were outstanding.

I know they allow people to use FMLE, but why is their playback so
smooth and not mine??? Is it because I am running the h264 encoder
(eats 50% cpu itself) and playing back the stream on the same machine?
(red5 is on another machine and barely uses a few cpu cycles)

I'll try tomorrow with a third machine so that the encoding machine
won't have to playback at the same time.

I just streaming myself to ustream but FMLE won't connect to their
server. Using a low quality streaming does work though...

--
VOD & visioconference - http://www.digiprof.tv

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How to H264-Live?

by Walter Tak :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

My feedback ; don't encode and playback on the same machine.

Besides that don't speak negative about Red5 while the actual problem is on
your client PC. You write:

"It obviously takes a huge amount of processing power..."

and a few lines later:

"(red5 is on another machine and barely uses a few cpu cycles)"

Which obviously shows that it's an external problem.

You'd probably want to check if the encoding process isn't eating 100% of
one core (the maximum a single-threaded tool like the encoder probably can
handle) and in that case
it's obvious the encoding is topping out resulting in a choppy stream.

(50% usage in taskmanager basically means one core at the max, switch to
individual graphs per core for your 2 core CPU)

W.


----- Original Message -----
From: "Thomas" <iamkenzo@...>
To: <red5@...>
Sent: Saturday, 07 November 2009 01:53
Subject: Re: [Red5] How to H264-Live?


>I have finally managed to stream to red5 using h264, and here is my
> feedback: it's not good.
>
> It obviously takes a huge amount of processing power, and although my
> cores had some room left to breath, the playback in the flashplayer
> was total crap by being very jerky. My cpu is a goold old Core2Duo
> E6300 which is still a good cpu.
>
> I do not understand how ustream can achieve very sharp images and
> super smooth playback for a result close to real TV. Not all their
> streams are that good, but I have seen some that were outstanding.
>
> I know they allow people to use FMLE, but why is their playback so
> smooth and not mine??? Is it because I am running the h264 encoder
> (eats 50% cpu itself) and playing back the stream on the same machine?
> (red5 is on another machine and barely uses a few cpu cycles)
>
> I'll try tomorrow with a third machine so that the encoding machine
> won't have to playback at the same time.
>
> I just streaming myself to ustream but FMLE won't connect to their
> server. Using a low quality streaming does work though...
>
> --
> VOD & visioconference - http://www.digiprof.tv
>
> _______________________________________________
> Red5 mailing list
> Red5@...
> http://osflash.org/mailman/listinfo/red5_osflash.org
>


_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org

Re: How to H264-Live?

by setyr :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi Thomas ;

Technically, Red5 doesn't encode your upstream prior to serving streams to
its public clients,  the problem can only be somewhere within your encoding
machine/client

kindly
SeT

----- Original Message -----
From: "Thomas" <iamkenzo@...>
To: <red5@...>
Sent: Saturday, November 07, 2009 1:53 AM
Subject: Re: [Red5] How to H264-Live?


>I have finally managed to stream to red5 using h264, and here is my
> feedback: it's not good.
>
> It obviously takes a huge amount of processing power, and although my
> cores had some room left to breath, the playback in the flashplayer
> was total crap by being very jerky. My cpu is a goold old Core2Duo
> E6300 which is still a good cpu.
>
> I do not understand how ustream can achieve very sharp images and
> super smooth playback for a result close to real TV. Not all their
> streams are that good, but I have seen some that were outstanding.
>
> I know they allow people to use FMLE, but why is their playback so
> smooth and not mine??? Is it because I am running the h264 encoder
> (eats 50% cpu itself) and playing back the stream on the same machine?
> (red5 is on another machine and barely uses a few cpu cycles)
>
> I'll try tomorrow with a third machine so that the encoding machine
> won't have to playback at the same time.
>
> I just streaming myself to ustream but FMLE won't connect to their
> server. Using a low quality streaming does work though...
>
> --
> VOD & visioconference - http://www.digiprof.tv
>
> _______________________________________________
> Red5 mailing list
> Red5@...
> http://osflash.org/mailman/listinfo/red5_osflash.org
>

--------------------------------------------------------------------------------



No virus found in this incoming message.
Checked by AVG - www.avg.com
Version: 8.5.425 / Virus Database: 270.14.52/2485 - Release Date: 11/06/09
19:39:00


No virus found in this outgoing message.
Checked by AVG - www.avg.com
Version: 8.5.425 / Virus Database: 270.14.54/2488 - Release Date: 11/07/09 23:52:00

_______________________________________________
Red5 mailing list
Red5@...
http://osflash.org/mailman/listinfo/red5_osflash.org