Skip to main content
January 18, 2007
Question

problem with streaming audio from a netStream

  • January 18, 2007
  • 1 reply
  • 443 views
Hi

I have a problem with streaming audio from a netStream and I haven't found any reference that someone else might be having a problem like this. I have one client capturing video and audio from a webcam, publishing it to the flash media server (running on the same machine), and then another client (on another machine), playing that audio/video netStream.

I have Flash Media Server 2, developers edition.

Now, if I publish only video, there is no problem, I get a fairly good fps of almost 15 over a local network, the video plays fine with almost no lag.

But if I add audio to it, or publish only audio, the video plays fine while there is not enough sound to start streaming sound, but when audio starts streaming, video slows down and so does audio, literally (!). It sounds like slow motion, not just slow but also pitch shifted.. And lags considerately, the longer it continuosly sends audio the longer it lags.

I have tried seprating into two streams, for video and audio and I have tried sending only audio, and I get the same result.

I have tried capturing sound with 5kHz instead of 8, and the sound shifts up! Not as much as when it slows down, but you can notice that it is higher pitched, and has short gaps (I guess it runs out of data in between)

Now I am completely bewildered, I thought this was supposed to work pretty much "out of the box", I don't know what else to try. I could understand sound cutting off and then continue after a short break if it can't get through the bandwidth, but I can't believe that actually slowing down is how this is supposed to work.

And I can't believe there isn't enough bandwidth, because this is over a local network and it's only 8kHz and only one sending and one recieving client. (besides, the video alone , which I imagine should have more data than audio, streams fine).

But on the other hand, if i try running both clients on the same machine that the flash media server is running on, I don't get this problem. (Othervise, only the sending client runs on the serving machine)

I hope someone can help out with this, I'm out of ideas.

Thanks
    This topic has been closed for replies.

    1 reply

    Participant
    February 4, 2007
    Hii
    Can you post the source file here
    or call me MSN :wesam_31@hotmail.com
    Please i have the proplem to connect with FMS
    February 4, 2007
    Actually, it started working fine when I told it to capture sound at 11kHz.. I should have tried that first, before making a fuss here, sorry. Looks like some weird glitch, a driver problem maybe, but anyway, switching to 11kHz seems to have solved it.