Recording in f4v format at FMS and then republishing to another server?
My data path looks like this:
Live Stream Encoder====>My FMS (my own server) republish to======>CDN======>Viewing Client
I want to archive the live stream at the first stop, my FMS. Adobe live docs say if I want the recorded file to be of format F4V (H.264), the stream name with which I publish must be of the format mp4:streamname.f4v. My CDN, unfortunately, requires the stream name it receives to be of the format "streamname".
How do I satisfy both?
In my onPublish() function I do two things:
1. Record the live stream to a file
2. Republish the stream to the CDN
Here is that method as it's currently constructed:
application.onPublish = function(client, stream) {
trace("onPublish");
//First record the stream here at this server
s = Stream.get("mp4:streamname.f4v");
if(s){
s.record();
s.play(stream);
}
//Then pass the stream on to the CDN
this.doRepublish(this.nc, stream);
};
Is there anyway to satisfy both requirements?
