Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Problem recording file with Adobe Media Server(AMS)

Explorer ,
Oct 14, 2015 Oct 14, 2015

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

TOPICS
ActionScript
256
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Oct 15, 2015 Oct 15, 2015
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines