Old 22nd November 2009, 18:43   #81
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
One final suggestion. Make sure the encoder settings is sending fourCC 'H264'. Not x264 or 'h264'.

Its on the main page in the vfw box.
Smelter is offline   Reply With Quote
Old 22nd November 2009, 21:31   #82
oLRi
Member
 
Join Date: May 2008
Posts: 94
Hi,

I've made some small changes letting the application act as a client for a VP62 / HE AACP nsv stream.

The Application connects to the stream, but when i try to view the stream i only get a freezed frame, which is mirror-inverted and 180° rotated. No Audio.

I've tried: Red5 0.9 RC1
oLRi is offline   Reply With Quote
Old 22nd November 2009, 21:37   #83
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Try one of the other accp formats.
Smelter is offline   Reply With Quote
Old 23rd November 2009, 02:50   #84
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Alright kiddies, here we are ready for red5 0.9 RC2

Rock on! heh
Attached Files
File Type: zip shoutcast.zip (45.6 KB, 397 views)
Smelter is offline   Reply With Quote
Old 23rd November 2009, 12:48   #85
oLRi
Member
 
Join Date: May 2008
Posts: 94
Ok...music's playing now...with RC2, but my video is still 180° rotated and mirror-inverted and the picture gets scrumbled every few seconds (looks like to few keyframes?!)

Tested: NSV with VP62, AACP (v1 and v2) and MP3
oLRi is offline   Reply With Quote
Old 23rd November 2009, 16:04   #86
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
VP6 is going to be like that. You will need to make flash player that flips the picture.

or move to h264....

The issue can not be rectified without serious decoding and re encoding. Flash isnt even supposed to play 'top-down' video, but we are...
Smelter is offline   Reply With Quote
Old 23rd November 2009, 17:54   #87
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Also a stub file is there ... Needs expanding.

Hit this link on your server
code:


http://yourServer:5080/shoutcast/stats


Smelter is offline   Reply With Quote
Old 23rd November 2009, 22:50   #88
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Some old timers may or may not remember the original nsv file I used to learn the format from a couple years ago.

Now playing!
http://www.thebitstream.com/radio_tacoma.html
Using nsvscsrcGUI.exe as source to red5
Smelter is offline   Reply With Quote
Old 23rd November 2009, 23:36   #89
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,261
Quote:
Originally posted by oLRi
the picture gets scrumbled every few seconds (looks like to few keyframes?!)

Tested: NSV with VP62, AACP (v1 and v2) and MP3
I had similar issues in my "haxe" attempt at nsv->flash streaming ... when I changed non key frame "frameType" from disposable interframes (frameType=3) to interframes (frameType=2), the problem disappeared

note: according to http://www.adobe.com/devnet/flv/pdf/...at_spec_v9.pdf FrameType=3 is for H.263 only

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 24th November 2009, 00:00   #90
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Quote:
Originally posted by jaromanda
I had similar issues in my "haxe" attempt at nsv->flash streaming ... when I changed non key frame "frameType" from disposable interframes (frameType=3) to interframes (frameType=2), the problem disappeared

note: according to http://www.adobe.com/devnet/flv/pdf/...at_spec_v9.pdf FrameType=3 is for H.263 only
That is something to look at! Im already noticing bugs between this one and pre rc2..... may need a hot fix lol
Smelter is offline   Reply With Quote
Old 24th November 2009, 00:51   #91
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Hot fixes here
http://www.thebitstream.com/?page_id=13

Donations?
http://www.thebitstream.com/?p=146

Smelter is offline   Reply With Quote
Old 24th November 2009, 01:37   #92
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Quote:
Originally posted by jaromanda
I had similar issues in my "haxe" attempt at nsv->flash streaming ... when I changed non key frame "frameType" from disposable interframes (frameType=3) to interframes (frameType=2), the problem disappeared

note: according to http://www.adobe.com/devnet/flv/pdf/...at_spec_v9.pdf FrameType=3 is for H.263 only
Genius!
Updated! http://www.thebitstream.com/?page_id=13
VP6 stabilized.
Smelter is offline   Reply With Quote
Old 24th November 2009, 01:50   #93
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,261
Quote:
Originally posted by Smelter
Genius!
ahh, you know my middle name

I don't know why I ever used discardable inter frame in the first place - probably thought "yeah, that'll be better because if there's bandwidth issues, they can be dropped" ...

of course... VP6 interframes are not discardable, hence the break up

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 24th November 2009, 01:50   #94
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Quote:
Originally posted by oLRi
Ok...music's playing now...with RC2, but my video is still 180° rotated and mirror-inverted and the picture gets scrumbled every few seconds (looks like to few keyframes?!)

Tested: NSV with VP62, AACP (v1 and v2) and MP3
Foot in mouth..... its seems to be fixed without major decoding.
Smelter is offline   Reply With Quote
Old 24th November 2009, 10:53   #95
oLRi
Member
 
Join Date: May 2008
Posts: 94
I will try it tonight and give you a reply

Edit / Update:
Was faster than i thought.

Works perfect now with Hotfix 1b. One (last) small question:
How do i flip the Picture in my Flashplayer....?
I use JW Player, but i could not find any hint about this in the documentation. Any idias about that, or have i to write my own Flashplayer (i hope not ?

Last edited by oLRi; 24th November 2009 at 11:08.
oLRi is offline   Reply With Quote
Old 24th November 2009, 13:17   #96
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,261
I believe you'll have to write your own

of course, you could make a "feature" request to the maker of JWPlayer

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 24th November 2009, 17:35   #97
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Quote:
Originally posted by oLRi
I will try it tonight and give you a reply

Edit / Update:
Was faster than i thought.

Works perfect now with Hotfix 1b. One (last) small question:
How do i flip the Picture in my Flashplayer....?
I use JW Player, but i could not find any hint about this in the documentation. Any idias about that, or have i to write my own Flashplayer (i hope not ?
I may have a player that is flip-able.
I'll dig around in the back yard.

Sometimes you can just specify -width like -320 X -240, and if the player is really smart it will flip and center the image automajically .
Smelter is offline   Reply With Quote
Old 24th November 2009, 18:19   #98
oLRi
Member
 
Join Date: May 2008
Posts: 94
Tried with the major Flash Players, all won't do the things i want them to do

In the meanwhile i tried to use xuggler to flip the image. This may work, but i don't think its a "good" solution.
oLRi is offline   Reply With Quote
Old 24th November 2009, 18:54   #99
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Naw you dont want to get the heat from that decoding when you only need transcoding.

The solution is in action script.

code:

vid.width=-320;
vid.height=-240;



Voila !

Like I mentioned, when I get a second I'll find one or make one.
Smelter is offline   Reply With Quote
Old 24th November 2009, 19:05   #100
oLRi
Member
 
Join Date: May 2008
Posts: 94
I will try to write my own player, i see some problems comming with rmtp. I think writing a player for file-playback shouldn't be so hard (found many examples on google).

Update:
I wrote a very simple flashplayer.
With:
vid.height=480;
vid.width=640;
I managed to rescale the video (so the Settings should work), but if i try:
vid.height=-240;
vid.width=-320;
I video just displays "normal" (=> wrong), it seems to ignore this settings.

I also tried:
vid.scaleX = -100;
OR
vid.scaleX = vid.scaleY = -1;
OR
vid.rotation = 180;

But none of there work.

Last edited by oLRi; 24th November 2009 at 22:01.
oLRi is offline   Reply With Quote
Old 24th November 2009, 22:00   #101
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,261
Quote:
Originally posted by Smelter
code:

vid.width=-320;
vid.height=-240;


if both width and height are negative, that's equivalent of rotating 180 degrees ... but VP6 in flash is vertically flipped only, I thought, so only height need be negative

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 24th November 2009, 22:23   #102
oLRi
Member
 
Join Date: May 2008
Posts: 94
To say it with Homer Simpson: D'Oh!

You all were right, works perfect now.

My fault: The Position was 0,0. Flipping and rotating the movie makes it to get out of the visible range
oLRi is offline   Reply With Quote
Old 24th November 2009, 23:15   #103
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,261
Quote:
Originally posted by oLRi
My fault: The Position was 0,0. Flipping and rotating the movie makes it to get out of the visible range
Yes, that always catches me when I get back to flash after a long break from it!

I don't understand why you "flip and rotate"

sure, you can rotate 180, flip horizontally, but, that's equivalent to a simple flip vertical!

Is it just me or are shoutcast users getting dumber?
jaromanda is offline   Reply With Quote
Old 24th November 2009, 23:40   #104
oLRi
Member
 
Join Date: May 2008
Posts: 94
Quote:
Originally posted by jaromanda
I don't understand why you "flip and rotate"
Honest Answer? I don't know...

I wrote about 6 hours on this Flashplayer and in the end all i had to add were 3 lines , so i'm very happy that it works and i don't ask 'why'.

Some more in detail: Changing the width + height didn't work for me, my solution is:
PHP Code:
vid.scaleX=-1;
vid.scaleY=1// i think this is unnecessary
vid.rotation 180;
vid.0;
vid.240

But i wanna thank you and especally smelter. You solved in a few days problems i'm dealing with for over one year now.

Sorry for my bad english and my endless questions
oLRi is offline   Reply With Quote
Old 24th November 2009, 23:49   #105
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
You bet, Its been fun.

You could do as Cladio from http://booyaproject.org/home has done and Donate.
http://www.thebitstream.com/?p=146

Smelter is offline   Reply With Quote
Old 25th November 2009, 10:00   #106
stefan84
Junior Member
 
Join Date: Nov 2009
Posts: 6
shoutcast -> red5 -> flash

Hi,

I am trying to use red5 as restreaming shoutcast server.
As a source of stream I use SHOUTcast source plugin in Winamp.
I use the example of an application which has posted here by Smelter. My flash player connected to red5 by rtmp and data is transmitted but I can't hear any sound.

Any ideas where is problem?
stefan84 is offline   Reply With Quote
Old 25th November 2009, 12:14   #107
oLRi
Member
 
Join Date: May 2008
Posts: 94
Re: shoutcast -> red5 -> flash

Quote:
Originally posted by stefan84
Any ideas where is problem?
Which Version of Red5 do you use?
oLRi is offline   Reply With Quote
Old 25th November 2009, 14:00   #108
stefan84
Junior Member
 
Join Date: Nov 2009
Posts: 6
Re: Re: shoutcast -> red5 -> flash

Quote:
Originally posted by oLRi
Which Version of Red5 do you use?
I use Red5 0.9.0 RC2.
stefan84 is offline   Reply With Quote
Old 25th November 2009, 16:17   #109
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
There are two forms of the aac audio that dont work.

I think the mp4 variants. Try the regular aacPlus

Last edited by Smelter; 25th November 2009 at 16:33.
Smelter is offline   Reply With Quote
Old 25th November 2009, 17:54   #110
MondayX
Junior Member
 
Join Date: Jul 2007
Location: Bavaria, Germany
Posts: 11
Send a message via ICQ to MondayX
please tell me your paypal addy, the donation link does not work for me. i would like to send you a little donation for your great work


works fine now with h264. got another (small) problem:
if nsv streaming starts "streamPublishStart" and "streamBroadcastClose" is not triggered.

this.getBroadcastStream(appScope,"myNSVStream"); seems to not work, too. i would like to use addStreamListener() for a SnapshotListener.

any way to get the current IBroadcastStream of the NSV stream?

thanks again...
MondayX is offline   Reply With Quote
Old 25th November 2009, 18:15   #111
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
OK, no problem

bowljoman at hotmail dot com


Stream listeners.Take your NSVConsumer which you have in the streams list and do something like this

code:

streams.get(0).getMarshal().getStream().addStreamListener(listener)



code:


NSVConsumer nsv= streams.get(0);
nsv.getMarshal().getStream().addStreamListener(listener);

Smelter is offline   Reply With Quote
Old 25th November 2009, 18:19   #112
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
By the way every one, the issue with single viewer syndrome is being worked on.

And thanks again for the donations!
Smelter is offline   Reply With Quote
Old 25th November 2009, 19:25   #113
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Preliminary patch for 'one viewer' syndrome.

Replace the contents of org.red5.server.stream.PlayEngine
with this and rebuild the server core.
Smelter is offline   Reply With Quote
Old 25th November 2009, 19:29   #114
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
file is better than copy paste
Attached Files
File Type: txt playengine.txt (43.0 KB, 609 views)
Smelter is offline   Reply With Quote
Old 26th November 2009, 10:38   #115
stefan84
Junior Member
 
Join Date: Nov 2009
Posts: 6
I return to my problem. I noticed that when flash client connects to Red5 on the console I see:

[INFO] [NioProcessor-2] org.red5.server.net.rtmp.RTMPHandler - Remembering clien
t buffer on stream: 2000
getAudioType() == null
^^^^^^^^^^^^^^^^^^^^^^
it is may be the problem?
stefan84 is offline   Reply With Quote
Old 26th November 2009, 16:11   #116
oLRi
Member
 
Join Date: May 2008
Posts: 94
Did some long-time tests.

As i wrote earlier, i changed the sample application to act as a client to take an existing nsv stream.

After a while (2-3 hours) the red5 disconnects from the shoutcastserver and didn't connect again.

Is there a way to implement a "reconnect" oder a "keep alive" method?
oLRi is offline   Reply With Quote
Old 26th November 2009, 16:30   #117
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
@ stephan, it seems like you are using mp4 aac audio. in stead of raw or HE aac non-mp4.

@ oLRi, It does auto reconnect after 30 seconds. Your issue sounds like it could be a couple things, mainly, did you update the red5 core for the one-viewer-syndrome?


@ stephan, is your shoutcast server on a reachable IP, Ill try to stream from it.
Smelter is offline   Reply With Quote
Old 26th November 2009, 16:40   #118
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Btw, I have ran red5 as a shoutcast subscriber for 7 days without the disconnect, but that was for red5 9 rc1.
Smelter is offline   Reply With Quote
Old 26th November 2009, 17:45   #119
stefan84
Junior Member
 
Join Date: Nov 2009
Posts: 6
@Smelter My server has public IP:

code:
http://217.74.72.29:8000/ZIOM


If you can made small test with this stream I will be deeply grateful.
stefan84 is offline   Reply With Quote
Old 26th November 2009, 17:55   #120
Smelter
Major Dude
 
Smelter's Avatar
 
Join Date: Jan 2004
Posts: 1,141
Ice cast and ultravox are not supported at this time.
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