Question
Duration metadata in recorded stream incorrect
Hi.
I'm streaming live video through FMS 3 and passing the streams to another FMS application to be recorded. While recording, I inject some custom metadata into the stream. Once recording is finished, I move the flv to another location and update my database with the metadata contained in the stream for later reference. All this succeeds without a problem.
However, only sometimes, the default 'duration' metadata (note - I never mess with the duration metadata, merely insert my own fields that are required for other reasons) is COMPLETELY wrong! I know this for a number of reasons:
1 - Another table in my database has information on the duration of the recording via another method, and the metadata in the flv no where near reflects this value
2 - I use Rich FLV ( http://www.richapps.de) to view the metadata and the duration contained in the metadata does not relate to the total time of the movie in these flv's with the corrupt metadata.
3 - The actual length of the movie in seconds is not this number or anywhere NEAR this number.
For instance, I have an flv where the duration metadata is 17023.024 seconds long, which equates to over 4 hours. But according to Rich FLV, the total time is 5 mins 37 seconds. I know this is right, as the actual movie IS 5mins 37 seconds long. I'm assuming that Rich FLV takes the Stream.length(streamname) property for the total time to get this correct value.
When I try and stream the recorded movie later from FMS with an FLV player I made, the total NetStream time is taken from the duration metadata. That means that I'm trying to play a movie that the player thinks is over 4 hours long, but is really only just over 5 minutes long. When seeking past the 5:37 mark, the movie obviously stops and has issues, as there is no movie to actually play! This problem is causing big issues!
I've tried to re-create this issue to try and find a cause, but it just seems random that this happens! But it's not once or twice, or even all the time, - but it is a LOT!
Has anyone seen this before? Is this a known bug with the metadata in FMS??? Are there other bugs that might relate to this?
Any advice / knowlegde appreciated!!
Cheers,
K.
I'm streaming live video through FMS 3 and passing the streams to another FMS application to be recorded. While recording, I inject some custom metadata into the stream. Once recording is finished, I move the flv to another location and update my database with the metadata contained in the stream for later reference. All this succeeds without a problem.
However, only sometimes, the default 'duration' metadata (note - I never mess with the duration metadata, merely insert my own fields that are required for other reasons) is COMPLETELY wrong! I know this for a number of reasons:
1 - Another table in my database has information on the duration of the recording via another method, and the metadata in the flv no where near reflects this value
2 - I use Rich FLV ( http://www.richapps.de) to view the metadata and the duration contained in the metadata does not relate to the total time of the movie in these flv's with the corrupt metadata.
3 - The actual length of the movie in seconds is not this number or anywhere NEAR this number.
For instance, I have an flv where the duration metadata is 17023.024 seconds long, which equates to over 4 hours. But according to Rich FLV, the total time is 5 mins 37 seconds. I know this is right, as the actual movie IS 5mins 37 seconds long. I'm assuming that Rich FLV takes the Stream.length(streamname) property for the total time to get this correct value.
When I try and stream the recorded movie later from FMS with an FLV player I made, the total NetStream time is taken from the duration metadata. That means that I'm trying to play a movie that the player thinks is over 4 hours long, but is really only just over 5 minutes long. When seeking past the 5:37 mark, the movie obviously stops and has issues, as there is no movie to actually play! This problem is causing big issues!
I've tried to re-create this issue to try and find a cause, but it just seems random that this happens! But it's not once or twice, or even all the time, - but it is a LOT!
Has anyone seen this before? Is this a known bug with the metadata in FMS??? Are there other bugs that might relate to this?
Any advice / knowlegde appreciated!!
Cheers,
K.
