Skip to main content
Inspiring
October 14, 2015
Question

Problem recording file with Adobe Media Server(AMS)

  • October 14, 2015
  • 1 reply
  • 278 views

Hello,

I'm using Flash Professional CC, AS3, AMS and exporting the SWF for Flash Player 13.

I create the connection to "rtmp://myAMShost:1935/myCustomApp". When I start recording, I receive the following status code "NetStream.Record.Start" and I can see the stream in th folder "C:\Program Files\Adobe\Adobe Media Server 5\applications\myCustomApp\streams\myStreamFolder\myStream.flv" with a size f 1KB.

The problem is that the size of this stream soes not increase. Why is this happening?

The code that I use to publish the stream is:

netLocalStream.publish("myStream", "append");


Can someone help me?

Best regards

This topic has been closed for replies.

1 reply

Inspiring
October 15, 2015

Hello, I have been investigating into my code and I see the following:

     h264Settings = new H264VideoStreamSettings();

     h264Settings.setProfileLevel(H264Profile.BASELINE, H264Level.LEVEL_1_2);

     h264Settings.setQuality(0, _compression);

     h264Settings.setKeyFrameInterval(_keyFrameInterval);

     h264Settings.setMode(_w, _h, _fps);

     netLocalStream.videoStreamSettings = h264Settings;

The problem is that If I want to apply h264 settings to my stream, it can not be recorded, but if I comment the last code line, it is recorded perfectly.

So, how can I fix it?

Best regards