There is one other option you might be able to use.
With FFMpeg, MEncoder (and most others) I think I remember reading you can set the duration of the output file. If you take the video stream and pass it like you would to another transcoder (after it has been transcoded) and do a straight stream copy with the length set for 10 seconds say. It should read the data passed to it then close the process off in some manner when it is done.
If that is the case you only need to monitor for when the encoder closes then start a new instance and pass the next block of data to it.
That way you should get each file containing 10 seconds of media.
Well that was one plan I had in mind.
If that fixes the segmenting problem then there is still one other issue to consider. Both Gemx and my plugins end the tuner once the user has disconnected (which will happen at the end of each segment). I have an idea in mind how to fix it for both plugins but never got around to testing the theory.
If I find some time over Christmas I might give it a shot. Hope that idea helps.
With FFMpeg, MEncoder (and most others) I think I remember reading you can set the duration of the output file. If you take the video stream and pass it like you would to another transcoder (after it has been transcoded) and do a straight stream copy with the length set for 10 seconds say. It should read the data passed to it then close the process off in some manner when it is done.
If that is the case you only need to monitor for when the encoder closes then start a new instance and pass the next block of data to it.
That way you should get each file containing 10 seconds of media.
Well that was one plan I had in mind.
If that fixes the segmenting problem then there is still one other issue to consider. Both Gemx and my plugins end the tuner once the user has disconnected (which will happen at the end of each segment). I have an idea in mind how to fix it for both plugins but never got around to testing the theory.
If I find some time over Christmas I might give it a shot. Hope that idea helps.