Skip to main content
Participating Frequently
February 1, 2011
Answered

FMS4 on Win2008r2 can't record audio

  • February 1, 2011
  • 1 reply
  • 927 views

Hello

I have problems recording audio using FMS4 on Windows 2008 R2

I have an old server, it's a Windows XP with FMS 3.0.2 that is working perfectly but now we're upgrading the server to Windows 2008 R2 with  FMS4.

I'm trying on my developpen enviroment with FMS4 Developper Version (Trial).

Using the same program (AS3) to record audio that works on my old server.

I got this traces on Flash:

NetStream.Record.NoAccess
NetStream.Buffer.Empty
NetStream.Buffer.Empty
NetStream.Buffer.Empty

...

This are my settings after intalling.

Port 1935 (didn't add port 80 because it's being use by IIS).

Set "LIVE_DIR = C:\Program Files\Adobe\Flash Media Server 4\webroot\live_recorded" on "C:\Program Files\Adobe\Flash Media Server 4\conf\fms.ini

Set the "applications" folder's permission to "Everyone" to "Full control"

Diabled Firewall

Even tried setting the "Flash Media Server 4" folder's permission to "Everyone" to "Full control".


Hope there's a way to solve this.

Thank you.

    This topic has been closed for replies.
    Correct answer SE_0208

    Oh, this sample was on AS2... but it should work...


    You are using "live" application & "live" application does not allow you to record content. I would suggest create blank folder in FMS's applications directory say "myapp" and then try to record to this "myapp" application & your code should work

    1 reply

    Participating Frequently
    February 1, 2011

    Which application are you trying to record? Is it "vod" or "live" or your own custom application. Also are you recording on same application on another server where its working?

    Participating Frequently
    February 1, 2011

    I want to record my voice from a microphone as FLV

    I have this simple test Flash application in AS3

    var count:Number = 0;
    var timestamp:Date = new Date();
    var nc:NetConnection = new NetConnection();

    nc.connect("rtmp://192.168.0.4/live/test");

    var ns:NetStream = new NetStream(nc);
    ns.setBufferTime(2);

    var mic:Microphone = Microphone.get();
    mic.setRate(22);

    ns.attachAudio(mic);

    ns.onStatus = function($info:Object):Void  {
        trace($info.code);
    };

    var fileName:String = "";
    // record the audio to the stream
    function recordAudio():Void {
        fileName = String(timestamp.getTime()+(count++));

        ns.publish(fileName,"record");
    }

    // stop the recording of audio to the stream
    function stopRecordingAudio():Void {
        ns.publish(false);
    }

    // plays back the audio that was recorded
    function playRecordedAudio():Void {
        ns.play(fileName);
    }

    // record button
    recordBtn_mc.onRelease = function():Void  {
        recordAudio();
    };

    // stop button
    stopBtn_mc.onRelease = function():Void  {
        stopRecordingAudio();
    };

    // play button
    playBtn_mc.onRelease = function():Void  {
        playRecordedAudio();
    };

    It is "live"

    The FMS is installed in a Win2008R2 Server

    I'm on a Windows7 Workstation

    Participating Frequently
    February 1, 2011

    Oh, this sample was on AS2... but it should work...