-
1. Re: Encode archive of live stream on FMS 4
Ed Chan Sep 19, 2010 10:51 AM (in response to bwilli0001)Yes, you can publish a live stream to FMS, and record it in F4V/MP4 format.
-
2. Re: Encode archive of live stream on FMS 4
bwilli0001 Sep 20, 2010 3:38 AM (in response to Ed Chan)Can you please point me to how this is configured? I'm not sure how this is accomplished.
Thanks
-
3. Re: Encode archive of live stream on FMS 4
JayCharles Sep 20, 2010 7:30 AM (in response to bwilli0001)In your server side actionscript, you can catch publish events with the application.onPublish and application.onUnpublish events (see the docs). Using these events, you can start and stop recording on the server side (see the stream class for the record method)
-
4. Re: Encode archive of live stream on FMS 4
Ed Chan Sep 20, 2010 10:45 AM (in response to JayCharles)Recording can be triggered via client-side publish call, or via server-side script. From the publish cmd, you specify "record" option. For example,
ns.publish("mp4:foo", "record"); // ns is a NetStream, "mp4:" prefix tells FMS to record using MP4 container
Otherwise, if you want to trigger the record via server-side as Jay says, you can simply publish the stream as,
ns.publish("mp4:foo");
then from server-side AS, do something like,
//
// this handler is called when a stream is published
// clientObj is the client that is publishing the stream
// streamObj is the stream that is being published
//
application.onPublish = function(clientObj, streamObj)
{
streamObj.record("record"); // start recording the stream
}
-
5. Re: Encode archive of live stream on FMS 4
JayCharles Sep 20, 2010 11:39 AM (in response to Ed Chan)Is H.263 (Spark) a valid codec for an F4V container? I was under the impression that it isn't.
-
6. Re: Encode archive of live stream on FMS 4
Ed Chan Sep 20, 2010 11:56 AM (in response to JayCharles)Yes, I believe you're right. According to F4V spec, H263 is not a supported codec.
http://www.adobe.com/content/dam/Adobe/en/devnet/flv/pdfs/video_file_format_spec_v10.pdf
-
7. Re: Encode archive of live stream on FMS 4
Ed Chan Sep 20, 2010 12:14 PM (in response to Ed Chan)I've been corrected by a colleague. H263 should work in F4V/MP4 for streaming. But it may not be supported for Progressive Download.
-
8. Re: Encode archive of live stream on FMS 4
JayCharles Sep 20, 2010 12:20 PM (in response to Ed Chan)Okay... thanks for the clarification.
So, in the case of the OP's question, publishing from the flashplayer to F4V wouldn't be suitable, as applications that would be used to edit the resulting F4V would likely just choke on the file... correct?
If that's the case, then the Flashplayer would not be suitable for this... and the application would require use of FMLE for H.264 encoding. That being the case, the only way to achieve recording would be via the onPublish and onUnpublish events on the server side.
-
9. Re: Encode archive of live stream on FMS 4
Ed Chan Sep 20, 2010 12:29 PM (in response to JayCharles)I don't know how the editors behave with respect to this codec type. According to spec, it is not a supported codec. So they, like FP, may simply barf on it.
But if that is the case, then yes, Flash Player would not be suitable, and you'd need to use an encoder like FMLE, which supports H264, and do the recording in server-side script.


