Situation: Live h.264 input stream w/Transcoder AddOn and recording; all transcoded streams must be recorded.
I'm writing a module for this, and my idea is to only start recording of the source stream, then hook onto the HTTPLiveStreamRecord.onStartRecord and start recording of the transrated streams from there (I should be able to read the enabled entries by reading the transrate.xml template, right?)
How can I hook onto the onStartRecord function, or is there a better way to start recording of all transrated streams at the same time as the source stream? (I don't want to use the IMediaStreamActionNotify3.OnPublish to start recording because the recording is independent from publishing)
When the source recording is stopped, I can hook onto the IMediaWriterActionNotify.onWriteComplete and stop all transrated recordings accordingly. Would it be possible to create a SMIL file that is properly aligned, or will this cause problems because the recordings aren't started at the exact same time (but milliseconds after each other)?