Red5 saved file duration is not same #151

Open
yanalavishnu opened this Issue Feb 12, 2016 · 0 comments

Projects

None yet

2 participants

@yanalavishnu

I am using red5 1.0.6

This is my code to save a stream.

@Override public void streamPublishStart(IBroadcastStream stream) { stream.saveAs("audio/"+username+"_"+System.currentTimeMillis(), true); insertInDB(System.currentTimeMillis()+"", "start", "audio", username, users.get(username).room, stream.getSaveFilename()); super.streamPublishStart(stream); }

Sometimes the duration of the file is different from the stopTime - startTime. A stream was published for 12 minutes, but the file was around 45 minutes. In the file first 9 minutes was good then 9th minute to 42nd minute the file was empty(no audio) then from 42nd minute contains the audio from 9th minute of the stream.

Most of the times stream duration is not equal to saved file duration. Why does this occur?

@mondain mondain added the bug label Feb 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment