Wowza Community

Broken mp4 after reconnect

Sorry, I absolutely new with Wowza so I really need any suitable help.

On our server we have Wowza Streaming Engine 4.4.0.

My case:

  1. Start stream

  2. Disconnect from Internet

  3. Reconnect

  4. End stream

As result I get two mp4 files (before and after disconnect) but the first one (before disconnect) is broken, the second one is OK.

How can I fix Wowza to get the first mp4 file normal/unbroken?

Hello there and welcome to the wowza support forum.

It is possible that onWriteComplete never runs, you said, suggesting network interruption is the cause, the file was not properly written and complete. It might be good to grab recordings in smaller chunks somehow. You could use the LiveStreamRecord API.

Having said that though, Wowza should be able to close a file in a failed connection situation if it had been capturing a stream. So I’m not sure. Are the unplayable videos large and different sizes? I.e., does it look like some recording occurred?

You will have to capture more detail about an incident including corresponding log files.

Did you try to play in VLC and look at Tools > Codec Details?

Regards,

Salvadore

Hello there and welcome to the wowza support forum.

It is possible that onWriteComplete never runs, you said, suggesting network interruption is the cause, the file was not properly written and complete. It might be good to grab recordings in smaller chunks somehow. You could use the LiveStreamRecord API.

Having said that though, Wowza should be able to close a file in a failed connection situation if it had been capturing a stream. So I’m not sure. Are the unplayable videos large and different sizes? I.e., does it look like some recording occurred?

You will have to capture more detail about an incident including corresponding log files.

Did you try to play in VLC and look at Tools > Codec Details?

Regards,

Salvadore

Salvadore, thanks for your answer!

It’s a short video (~10-20 sec)

I can’t play this video with VLC/ffmpeg.

Our logs:

  1. error log: http://pastebin.com/fn80d7g9

  2. access log: http://pastebin.com/VnUBRUew

Can you suggest where can be a problem?