Recorded stream corrupted when stopped and appended
I'm combining streams from a number of cameras together into a recorded stream, let's called it 'serverstream.flv'. The source streams are all from webcams, and each user is assigned a stream name based on their name and a user id, like '1_bob' and '2_julie'.
Sometimes the presenters stop broadcasting temporarily and we just switch to a blank window. The stream on the server side stops recording at that point by calling
serverStream.record(false);
and then when the presenter comes back I start recording again with
serverStream.record("append");
The viewers are subscribing to serverStream and this works fine for them. But the recorded flv gets corrupted every time I do this. It plays only until the first time recording stopped and then after that the data is seriously mangled. Some tools from Moyea can extract the audio and video, but the video has errors with frozen frames or incorrect playback speed.
But here's the strange part. I tried just recording the presenter streams individually, so there's a file called '1_bob.flv' and '2_julie.flv', etc. In the same way I'm stopping and appending as necessary. But these recordings are just fine, without the corruption at the stopping points. After a great deal of experimentation I find that the recorded FLVs are ONLY okay when they are named to match the camera stream. If I create any new stream on the server, called something like 'bob_stream' and play the stream '1_bob' on it, I get errors in the recording.
What could be going on? Where could this be coming from?
I should point out that this is running FMIS 3.5 and worked flawlessly until recently. Then the server was updated with the latest build of FMIS and we're getting this problem. The application code both client-side and server-side didn't change, so it's got to be something in the FMIS configuration that changed, but I can't think what it could be.
Any help would be very greatly appreciated.
