Old 13th August 2009, 00:00   #1
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
NSV + Flash = yes

Hello,

Just to give the heads up, I completed the alpha code to publish NSV streams on red5.

So far AAC is supported, and I am working out the video stuff if I can.

yes wowza can also pull icecast aac streams but now so can red5 AND red5 can connect with nsv cap directly. Plus it can forward the stream to a real dnas server for YP listing.

The code should be released very very soon.
Smelter is offline   Reply With Quote
Old 13th August 2009, 00:42   #2
sankt
Moderator
 
sankt's Avatar
 
Join Date: Apr 2003
Location: www.ScenicRadio.com
Posts: 2,970
If you are successful in streaming NSV audio and video with red 5 - will it be possible to render the nsv / flash stream with a flash player ?

Scenic Television is your ambient window to the world - - Television.ScenicRadio.com
sankt is offline   Reply With Quote
Old 13th August 2009, 00:45   #3
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Yes, I am already rendering aac audio using mean and lean repackage;

I am looking at making video work now.

I am playing with flash player, not winamp
Smelter is offline   Reply With Quote
Old 13th August 2009, 07:14   #4
streamer45
Member
 
Join Date: Jul 2006
Location: Italy
Posts: 93
Quote:
Originally posted by Smelter
Yes, I am already rendering aac audio using mean and lean repackage;

I am looking at making video work now.

I am playing with flash player, not winamp
If you succeed Smelter, this could be a new start for NSV.
Keep up the great work you're doing.
streamer45 is offline   Reply With Quote
Old 13th August 2009, 08:39   #5
Jkey
Forum King
 
Join Date: Jul 2004
Location: E*arth
Posts: 3,032
if you pull this off i promise i will never bother you about red5 again
Jkey is offline   Reply With Quote
Old 13th August 2009, 16:46   #6
slavas
Major Dude
 
Join Date: Apr 2003
Location: kaimas šalia Anykščių
Posts: 680
heh was having idea to do the same, as I looked at flexSDK and didnt see any options/documentation to do other way receive NSV with VP6 and make flash decoders render them
slavas is offline   Reply With Quote
Old 13th August 2009, 21:06   #7
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Video works but as expected, it is upside down.

However, remember that this is flash and one line of code will flip the video output however you please.

So To reiterate Nsv with video is playing with flash player now here in the lab. A few time keeping things to handle but woo hoo ! Where is JohnRockntv1 when you need a big WOOHOO?
Smelter is offline   Reply With Quote
Old 13th August 2009, 21:24   #8
wildex999
Senior Member
 
wildex999's Avatar
 
Join Date: Jan 2007
Location: Norway
Posts: 397
Heyyyy, Sounds like you have come a long way =D
Does it decode both VP6 and H264? Also, what does the flipping do for hardware support?

Anyway, can't wait to see a release

EDIT: Oh, forgot to mention: If you're going full out with this, you must remember to get in Subtitles and multiple audio tracks too
wildex999 is offline   Reply With Quote
Old 13th August 2009, 21:35   #9
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
It will do h264 if the avcvideo packet is constructed versus the normal flv packet.

Hardware works regardless of the flip.

I just dump the aux channels a the moment. I am only supporting nsvcap now.
Smelter is offline   Reply With Quote
Old 14th August 2009, 22:00   #10
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Who is running aac + vp6 stream regularly?

Who wants to be the test case?
Smelter is offline   Reply With Quote
Old 15th August 2009, 05:43   #11
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Ok red5 is doing 5 things now.

1. nsv encoder direct connection with flash player output
2. nsv subscribe to dnas flash player output
3. winamp dsp encoder direct connection to flash player output
4. dnas subscribe to audio only aac with flash player output.

and 5, the original function that started this branch, icecast subscribing to aac stream with flash output.
Smelter is offline   Reply With Quote
Old 15th August 2009, 07:20   #12
streamer45
Member
 
Join Date: Jul 2006
Location: Italy
Posts: 93
Quote:
Originally posted by Smelter
Who is running aac + vp6 stream regularly?

Who wants to be the test case?

I regularly run h264+aac
but if you need some test, I might help you.
streamer45 is offline   Reply With Quote
Old 15th August 2009, 10:32   #13
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
might be up....

http://www.thebitstream.com/radio_tacoma.html
Smelter is offline   Reply With Quote
Old 15th August 2009, 12:10   #14
streamer45
Member
 
Join Date: Jul 2006
Location: Italy
Posts: 93
Quote:
Originally posted by Smelter
might be up....

http://www.thebitstream.com/radio_tacoma.html
Cool
If it will work with h264 it'll be amazing
streamer45 is offline   Reply With Quote
Old 15th August 2009, 13:23   #15
Jkey
Forum King
 
Join Date: Jul 2004
Location: E*arth
Posts: 3,032
I take back anything bad i ever said about you smelter
Jkey is offline   Reply With Quote
Old 18th August 2009, 06:11   #16
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,218
Quote:
Originally posted by Jkey
I take back anything bad i ever said about you smelter
Me too

although, if anyone asks, I'd say jkey made me say it!

Of course ... I still say bad things about red5 - just for the giggles

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 18th August 2009, 14:32   #17
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
If anyone is serious about getting some action and want me to set you up with this, hit me on a P.M.

You can wait for the the functions and sample code to be added to the red5 trunk and D.I.Y. or you can get started with me now. My rates are very reasonable.
Smelter is offline   Reply With Quote
Old 18th August 2009, 15:43   #18
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,218
Quote:
Originally posted by Smelter
My rates are very reasonable.
about 128kbit?

boom tish

I've spent a couple of hours trying to achieve the same result using haxe

stream from nsv to haxe (nekovm) - check
stream from haxe (nekovm) to flash - well ... there's data flowing, but no pic or sound, no errors either

I think I need to solve the pickle matrix

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 18th August 2009, 16:23   #19
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
http://www.adobe.com/devnet/flv/pdf/...t_spec_v10.pdf

YOu have to pull frame data out of nsv container and put it in flv container, and you need to parse the aac data to get time-span values for the frames. Then you need to serialize the flv data to rtmp packets. After that then you can create a rtmp port in haxe for flash player to connect to and after the flash player requests the stream, begin sending the data.

Smelter is offline   Reply With Quote
Old 18th August 2009, 16:28   #20
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Here is the rtmp spec you need to 'talk' to flash player.

http://www.adobe.com/devnet/rtmp/pdf...cation_1.0.pdf

You have a long row to hoe, my friend.

Smelter is offline   Reply With Quote
Old 18th August 2009, 16:55   #21
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,218
yeah, the aac is proving to be difficult

not sure about the video either ... doesn't the handshake need to be "correct" for flash player to stream vp6 (and aac for that matter) anyway - I don't think I have the handshake quite right

oh, the rtmp side of things is all fine

the AAC sequence header thing has me totally going round the bend at the moment - my linux box died a horrible death, much of my aac "knowledge" was on it

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 18th August 2009, 18:06   #22
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Hmm really, you are parsing nsv in to flv?

Wow, good job, although I figure you still have a couple months to go.... There are quite a few project out there to copy from, so maybe sooner, but I expect later if at all. Prove me wrong
Smelter is offline   Reply With Quote
Old 19th August 2009, 00:56   #23
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,218
Quote:
Originally posted by Smelter
Hmm really, you are parsing nsv in to flv?
Parsing is such a relative word

Currently, I'm successfully processing the incoming NSV, identifying in each frame the aux data (ignored for now), video data and audio data - that was easy - I could at this stage very easily output raw VP6 data and raw aac data (actually, it's ADTS, but that's another story)

Quote:
Originally posted by Smelter
Wow, good job, although I figure you still have a couple months to go.... There are quite a few project out there to copy from, so maybe sooner, but I expect later if at all. Prove me wrong
I haven't found anything that specifically handles NSV to FLV - knowing the specs of both is a start though

My main concern at the moment is trying to ascertain if I have the handshaking right

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 19th August 2009, 01:03   #24
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Im talking about handshaking. As far as nsv->flv, unless anyone else is holding back, Im the only one with it and offering to set it up. Hell, we are the only ones who know what it is.
Smelter is offline   Reply With Quote
Old 19th August 2009, 01:39   #25
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,218
doesn't someone already offer it ... streamsolutions, http://www.streamsolutions.co.uk/audio/flash

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 19th August 2009, 01:45   #26
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
audio only.

I am the only one supporting video
Smelter is offline   Reply With Quote
Old 19th August 2009, 01:49   #27
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
I think they use wowza, and red5 is the only one relaying video.
Smelter is offline   Reply With Quote
Old 20th August 2009, 04:22   #28
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,218
ugh ... this is just way too much like real work!! I'm sure my issue is the handshake ... but I'm sure I've duplicated red5's handshake "authentication" - barely any different from what I had - there's just no indication if the handshake is "working"

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 20th August 2009, 15:48   #29
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
It is very clear what the rtmp spec says to do. You should be using that instead of copying red5.

What is even harder than the handshake and connection is the serialization to rtmp.
Smelter is offline   Reply With Quote
Old 21st August 2009, 00:24   #30
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,218
[QUOTE]Originally posted by Smelter
Quote:
It is very clear what the rtmp spec says to do. You should be using that instead of copying red5.
[/B]
so, forget all the fancy hmac sha256 rubbish?? Interesting

Quote:
Originally posted by Smelter
What is even harder than the handshake and connection is the serialization to rtmp.
Really? I didn't find that hard at all.

In flash, I'm getting keyframes only for the video now - so I guess I'm doing something right - boo-yah, video works - audio still has me beat though ...

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 21st August 2009, 02:09   #31
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Sweet! good job!

Rockin a haxxe version is killer.
Smelter is offline   Reply With Quote
Old 21st August 2009, 03:37   #32
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,218
Amazing, I tried doing this months ago, but gave up

Just reading that you actually succeeded was incentive to try again

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 22nd August 2009, 19:15   #33
sankt
Moderator
 
sankt's Avatar
 
Join Date: Apr 2003
Location: www.ScenicRadio.com
Posts: 2,970
PicoStreamer can be used to stream both shoutcast compatible AND flash video. It is also open source.

www.vinz486.com/portal/

PicoStreamer could be used as a alternative to Red5 for "stream converting" NSV -> Flash and output the stream to a flash player.

Scenic Television is your ambient window to the world - - Television.ScenicRadio.com
sankt is offline   Reply With Quote
Old 22nd August 2009, 21:47   #34
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
yeah, but the data paths for those two functions are quite different. the flash part uses a flash encoder, and the shoutcast stuff doesnt parse nsv content.

I looked at that two years ago.
Smelter is offline   Reply With Quote
Old 24th August 2009, 10:37   #35
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,218
Well, I'm stumped

Video was easy

Audio is proving to be annoying, I got the timing perfect and everything

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 24th August 2009, 14:15   #36
streamer45
Member
 
Join Date: Jul 2006
Location: Italy
Posts: 93
Quote:
Originally posted by jaromanda
Well, I'm stumped

Video was easy

Audio is proving to be annoying, I got the timing perfect and everything
publish publish publish (joking)
streamer45 is offline   Reply With Quote
Old 24th August 2009, 14:38   #37
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,218
Quote:
Originally posted by streamer45
publish publish publish (joking)
I'd have to get audio WORKING!

and then you'd have to poke a skewer in your eye socket, and scramble your brains a bit to understand my code

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 24th August 2009, 16:38   #38
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
And then after that, they need to learn how to start a Haxe process/server.

Oh yeah, dont forget to make the 'pause' and 'play' work too.
Smelter is offline   Reply With Quote
Old 24th August 2009, 17:10   #39
streamer45
Member
 
Join Date: Jul 2006
Location: Italy
Posts: 93
Quote:
Originally posted by Smelter
And then after that, they need to learn how to start a Haxe process/server.

Oh yeah, dont forget to make the 'pause' and 'play' work too.
Dude, any news about NSV h264 encoded?
streamer45 is offline   Reply With Quote
Old 24th August 2009, 17:28   #40
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
nope. I personally am not working on it.

I contributed vp6+aac and there are no funds to support the development.

If I discount all the work I did writing the java nsv parser and everything else up to two weeks ago, just for making it work in red5 took more than 40 hours. That was a big chunk out of the time I was able to spend earning cash as a freelancer. Now I'm behind for billable in the month of august... Oh well, I dont care... getting aac audio was well worth it!

Sorry,cant afford to work on h264.
Smelter is offline   Reply With Quote
Reply
Go Back   Winamp & SHOUTcast Forums > SHOUTcast > SHOUTcast TV / Nullsoft Video

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump