Announcement

Collapse
No announcement yet.

NSV + Flash = yes

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • #31
    Sweet! good job!

    Rockin a haxxe version is killer.

    Comment


    • #32
      Amazing, I tried doing this months ago, but gave up

      Just reading that you actually succeeded was incentive to try again
      "If you don't like DNAS, write your own damn system"

      So I did

      Comment


      • #33
        PicoStreamer can be used to stream both shoutcast compatible AND flash video. It is also open source.



        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 - - www.ScenicTelevision.com

        Comment


        • #34
          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.

          Comment


          • #35
            Well, I'm stumped

            Video was easy

            Audio is proving to be annoying, I got the timing perfect and everything
            "If you don't like DNAS, write your own damn system"

            So I did

            Comment


            • #36
              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)

              Comment


              • #37
                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
                "If you don't like DNAS, write your own damn system"

                So I did

                Comment


                • #38
                  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.

                  Comment


                  • #39
                    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?

                    Comment


                    • #40
                      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.

                      Comment


                      • #41
                        Originally posted by jaromanda
                        Well, I'm stumped

                        Video was easy

                        Audio is proving to be annoying, I got the timing perfect and everything
                        Try mp3 first. I dont think it needs the sha.

                        search the red5 mailing list for the last few posts from a man named Gavriolai Eugen-Andrei.

                        Check the last posts he made regarding the sha. He is responsible I think for cracking it for usable aac functionality.

                        Comment


                        • #42
                          Originally posted by Smelter
                          Check the last posts he made regarding the sha. He is responsible I think for cracking it for usable aac functionality.
                          I actually found that info elsewhere (though the kudos leads back to the same guy!)

                          I know my sha stuff is right (algorithm I mean - had to write it myself) ... the incoming first handshake from flash passes validation
                          "If you don't like DNAS, write your own damn system"

                          So I did

                          Comment


                          • #43
                            Originally posted by Smelter
                            And then after that, they need to learn how to start a Haxe process/server.
                            well, it's neko ... but first things first
                            Oh yeah, dont forget to make the 'pause' and 'play' work too.
                            damn it ... I haven't cracked the audio pickle matrix yet ... !! I'm actually beginning to suspect the "hack job" player app I made may just have the volume turned down (I haven't added a volume control!!)
                            "If you don't like DNAS, write your own damn system"

                            So I did

                            Comment


                            • #44
                              There is some specific stuff at the head of the aac stream.

                              here is the first packet that hits the flash player. This is some red5 java but should help if you got the sha right but not the aac.

                              PHP Code:
                              buffer.put((byte0xaf);
                                                  
                              buffer.put((byte0x00);
                                                  
                              buffer.put(getAACSpecificConfig());
                              //                    buffer.put((byte) 0x06);
                                                  
                              buffer.flip();
                                                  
                              RTMPMessage msg = new RTMPMessage();
                                                  
                                                  
                              AudioData data= new AudioData(buffer);
                                                  
                              data.setHeader(new Header());
                                                  
                              data.getHeader().setTimerRelative(false);
                                              
                              //    data.getHeader().setTimer(((IAACReader) codecReader).getCurrentTimecode()& 0xffffff );
                                                  
                              msg.setBody(new AudioData(buffer)); 



                              PHP Code:
                              private final byte[] getAACSpecificConfig() {        
                                      
                              byte[] = new byte[] { 
                                              (
                              byte) (0x10 /*((profile > 2) ? 2 : profile << 3) | */((sampleRateIndex >> 1) & 0x03)),
                                              (
                              byte) (((sampleRateIndex 0x01) << 7) | ((channels 0x0F) << 3))
                                          };
                                      
                              log.debug("SpecificAudioConfig {}"HexDump.toHexString(b));
                                      return 
                              b;    
                                  } 

                              Comment


                              • #45
                                nope, default flash player netstream should be full volume.

                                Comment

                                Working...
                                X