NSV + Flash = yes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts
  • Smelter
    Major Dude
    • Jan 2004
    • 1141

    #61
    Originally posted by sankt
    Nice work Jaromanda!

    Did you have to modify the Red5 server much ?
    Im the one who added it to red5, and no, it was added as a service and will be part of the core.

    It should be available in the trunk very very soon.

    Comment

    • sankt
      Moderator
      • Apr 2003
      • 2976

      #62
      Red5??? Only thing I got from red5 was confirmation of the handshake "algorithm"
      this is all written in haxe
      Oops, sorry about that Jaromanda.

      Will you release the haxel code and the swf specs ?
      Scenic Television is your ambient window to the world - - www.ScenicTelevision.com

      Comment

      • Smelter
        Major Dude
        • Jan 2004
        • 1141

        #63
        Here is how to start a shoutcast stream subscription in red5 (coming soon)

        PHP Code:

        NSVConsumer nsv
        =new NSVConsumer(ServerTypes.MODE_NSV_CLIENT
                                                new 
        ICYMarshal(room,"streamName")
                                                ,
        "http://localhost:8000/;file.nsv");
                
        nsv.start(); 
        By changing the mode, you can have the following, however, in subscriber modes, Red5 will switch based on the content header. I the same goes for server mode. Red5 will handle both Winamp shoutcast dsp and nsvCap/scsrc and switch modes on the fly.

        Red5 is also set up to handle any number of mount points and client-modes.


        PHP Code:

            
        /**
             * Act like a shoutcast client.
             */
            
        public static int MODE_SHOUT_CAST_CLIENT=2;
            
        /**
             * Act like a shoutcast server for the encoder.
             */
            
        public static int MODE_SHOUT_CAST_SERVER=3;
            
        /**
             * Act like a shoutcast client for nsv tv.
             */
            
        public static int MODE_NSV_CLIENT=1;
            
        /**
             * Act like a shoutcast server for nsv tv encoder.
             */
            
        public static int MODE_NSV_SERVER=0
        I've run it for over two weeks straight with good results.

        Comment

        • streamer45
          Member
          • Jul 2006
          • 93

          #64
          Any news about a public release jaromanda?

          Comment

          • jaromanda
            Forum King
            • Jun 2007
            • 2290

            #65
            Originally posted by streamer45
            Any news about a public release jaromanda?
            Main problem at the moment is an occasional "runaway thread" issue -
            "If you don't like DNAS, write your own damn system"

            So I did

            Comment

            • john@ROCKNTV1
              Registered User
              • Apr 2006
              • 641

              #66
              whoot whoot
              smelter you basted ...good to ear ya ....lol
              how ah you guys , i poppt in this eve to give thanks to sankt for still kickin this stuff and cheese and rice
              you WROTE my name in here and i would not have seen it , cept for i still lurk this place 9 /16/09 . Honestly you guys code above my head , but the water is nice and hope to do that fishN trip one day with you guys ..... we will make a thing of it.
              thx smelter , find me, write me
              john still drumming .. where is my tin foil hat ... ;-)

              Comment

              • streamer45
                Member
                • Jul 2006
                • 93

                #67
                The NSV plugin in red5 seems to be ready.
                Smelter, can you confirm this?

                Comment

                • Smelter
                  Major Dude
                  • Jan 2004
                  • 1141

                  #68
                  Yes, as soon as I get the documentaion. on how to fire it up as a plugin. It worked awesome as a quartz thread! I should get that pretty soon here.

                  Comment

                  • streamer45
                    Member
                    • Jul 2006
                    • 93

                    #69
                    Originally posted by Smelter
                    Yes, as soon as I get the documentaion. on how to fire it up as a plugin. It worked awesome as a quartz thread! I should get that pretty soon here.

                    Great, I'll wait for your news

                    Comment

                    • Smelter
                      Major Dude
                      • Jan 2004
                      • 1141

                      #70
                      small update

                      here

                      Comment

                      • Smelter
                        Major Dude
                        • Jan 2004
                        • 1141

                        #71
                        H264 and mp3 added in addition to vp6x and aacp.

                        Comment

                        • Smelter
                          Major Dude
                          • Jan 2004
                          • 1141

                          #72
                          Shoutcast tv h264 now plays to silverlight too with red5 proxie.

                          Comment

                          • jaromanda
                            Forum King
                            • Jun 2007
                            • 2290

                            #73
                            just no stopping the smelter ... figuring out h264 streaming makes my inner child cry
                            "If you don't like DNAS, write your own damn system"

                            So I did

                            Comment

                            • Smelter
                              Major Dude
                              • Jan 2004
                              • 1141

                              #74
                              from nsv it was easy, once I figured out that ffmpeg puts the final byte of the previous frame as the first byte of the new frame.

                              Once you shift it correctly, both flash and silverlight will play them. Of course the container must be swapped for flash, and removed completely for silverlight. silverlight need NAL units and flash wants mkv style.

                              It is an acquired taste.

                              Comment

                              • Smelter
                                Major Dude
                                • Jan 2004
                                • 1141

                                #75
                                Red5 application pre built and ready for configuration.

                                Read the file red5-web.properties

                                There are two example on configuring a server port.
                                Here is one of them.
                                code:

                                <bean id="shoutcast.stream_1" class="com.thebitstream.shoutcast.StreamConfiguration">
                                <property name="outputName" value="live" />
                                <property name="port" value="8001" />
                                <property name="password" value="changeme" />
                                </bean>


                                To playback in flash connect the flash player your server

                                code:
                                rtmp://localhost/shoutcast
                                and after the connection, play the output name.
                                Attached Files

                                Comment

                                Working...
                                X