Skip navigation
Currently Being Moderated

FMS won't save h.264 video from flash player 11?

Aug 18, 2011 1:41 PM

Hi,

 

I'm using the fp11 beta to stream h.264 video live between two machines. I'm also recording this live interaction. However, it appears as though FMS does not understand how to save the h.264 video? My set for the netstream looks like:

 

_netStream = new NetStream(_netConnection);

_netStream.client = customClient;

var h264Settings:H264VideoStreamSettings = new H264VideoStreamSettings();

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

_netStream.videoStreamSettings = h264Settings;

 

The resulting video has an audio stream, but no video stream. Is there some specific profile required for FMS to understand how to store h.264? Or, is this simply a feature that is yet to be implemented?

 

Thanks,

Ben

 
Replies
  • Currently Being Moderated
    Aug 18, 2011 2:41 PM   in reply to aintnosleeves

    Hi,


    Thanks for trying FMS and H264 streaming.

     

    Are you not able to save the file or not able to stream at all ?

    You need to use netstream.record() API to initiate the recording on the server from the client , and alternatively use stream.record() to inititate the recording on the server side.

     

    H264 is supported on FMS and it can be both streamed and recorded. Use mp4 / f4v file format (giving the prefix and the extension for streaming and recording), to use the H264 content.

     

    Hope the information helps. Thank you !

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 11, 2011 6:13 PM   in reply to Nikhil Pavan Kalyan

    hi,

      

      I use FMLE to publish h264 video to FMS , my server side code (main.asc):

     

    application.onPublish = function (client, stream)

    {

        var streamName = stream.name ;

        trace("onPublish stream: "+ streamName);

        stream = Stream.get("mp4:"+ streamName +".f4v");

        if(stream){

               stream.record("append");

               stream.play(streamName);

        }

    };

     

    I can save the H264 stream on the server,but less than 3 minites,the storage stops,How did this happen? please help me ! thank you !

     

    maria

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 11, 2011 8:39 PM   in reply to aintnosleeves

    I have the same issue I discussed in this thread: http://forums.adobe.com/thread/921502 Make sure you vote for the bug I submitted down toward the bottom of the thread.

     
    |
    Mark as:
  • Currently Being Moderated
    Feb 15, 2012 4:05 AM   in reply to Nikhil Pavan Kalyan

    Hi,

         I am creating audio-Video chat application, I'm using the FP11  to stream h.264 video and Speex for audio.

         I'm also recording for this live stream for future use.  below is the code

     

    _netStream = new NetStream(_netConnection);

          _netStream.client = customClient;

     

    var h264Settings:H264VideoStreamSettings = new H264VideoStreamSettings();

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

    _netStream.videoStreamSettings = h264Settings;

     

    _netStream.publish("mp4:record.f4v","record");

    netStream.addEventListener(NetStatusEvent.NET_STATUS, streamNetStatHandler);

     

    It is working fine when publishing and receiving live stream.

     

    Issue is that :

                   file is recorded with f4v format at desired folder and file size also dispalyed, but not played in any media player.

     

    Then I converted it into mp4  by using Adobe F4V Post Processor

    then video is played but audio is totally missing.

     

    Plz reply.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points