Skip to main content
October 15, 2010
Question

help, h264 video from FMS3.5 can't be played in the local

  • October 15, 2010
  • 2 replies
  • 1433 views

I stream some h264 videos to my application in FMS3.5, the videos can be played in FMS, but don't work in the local playback, <s:VideoPlayer source="test.f4v" x="31" y="18" width="402" height="206"/>. I get some h264 videos from FMS application "vod", they work well. What's the problem?thanks.

    This topic has been closed for replies.

    2 replies

    October 16, 2010

    can anybody help me

    thanks

    Asa_-_FMS
    Adobe Employee
    Adobe Employee
    October 18, 2010

    Do you know what codec type you recorded into the f4v file.  There are some types that the player isn't expecting to see in an f4v - in particular Sorenson Spark as published from the Flash Player.   If you need to record Sorenson to F4V then either you should keep it locally on FMS only, or you should consider recording to FLV where Sorenson is more widely supported. H264 in particular should be supported however.

    Asa

    October 18, 2010

    Thanks Asa for replaying.

    I trace the NetStream when publishing to FMS, it's videocodec value is 0(0 means No Video Codec?).

    I can't find out where to set videocodec.

    My code is like that:

    NetConnection localNetConn = new NetConnection();

    localNetConn.connect("rtmp://127.0.0.1:1935/DVR");

    NetStream recordNS = new NetStream(localNetConn);

    recordNS.attachCamera(Camera.getCamera()); 

    recordNS.attachAudio(Microphone.getMicrophone());

    var lastVideoName:String = "mp4:test.f4v"; 

    recordNS.publish(lastVideoName, "record");

    October 15, 2010

    When playback in NetStream.play(), i get the error message:NetStream.Play.FileStructureInvalid.

    I use F4V Post Processor to convert the videos i stream to FMS and playback in NetStream.play(), i get the error message:  NetStream.Play.NoSupportedTrackFound.