I am using Wowza to record MP4 files off a live stream. Sometimes we receive a file that is not readable - although it’s size is mega-bytes in length. I am doing the following:
My application monitors the input stream until the byte rate is above 10000.
Once we hit that threshold we call the Wowza API to start recording.
When the stream terminates or drops below 10000 we stop the recording.
Once the stream stops we upload it to S3.
The stream is always enabled - I just continue to start and stop recording. This works most times but every once in a while the mp4 file seems to be corrupt and will not play. We are recording off a drone whose stream which is dynamic - meaning it stops for battery change. Sometimes on battery a buffered part of the old video is sent with the newly started video - this does not cause a problem when viewing the video live - but maybe it causes issues recording. Are there logs on the Wowza side that I can use to diagnose Wowza mp4 recording issues?