Wowza Community

Record ip camera stream 24x7

Hi,

We have a requirement to record an IP camera stream 24/7 in 1 hour chunks and store these chunks on S3.

What is the best approach to do this?

Thanks and regards.

Are you using Wowza EC2 AMI?

Richard

In that case you can use this:

with this:

https://www.wowza.com/docs/how-to-move-recordings-from-live-streams

and this:

https://www.wowza.com/docs/how-to-use-the-fuse-based-file-system-backed-by-amazon-s3

Richard

If you need clean slices with no gaps or overlaps, I think the only sure way is make one recording then slice it up with ffmpeg or other encoder. This is how it can be done with ffmpeg:

ffmpeg -y -i bigfile.mp4 -acodec copy -vcodec copy -ss 00:00:00 -t 01:00:00 hour1.mp4
ffmpeg -y -i bigfile.mp4 -acodec copy -vcodec copy -ss 01:00:00 -t 02:00:00 hour2.mp4

Richard

Yes, we’re using EC2 AMI ami-3bab9c4f.

We did use the LiveStreamRecord module for starting and stopping recording on demand. We also used S3FS to put the files on S3. It works wonderfully.

However, we are concerned about the issue of gaps in the stream between recordings. By the time a stream is stopped recording and restart, a few seconds of video capture will be lost. What is the best way to overcome this?

Thanks for your help Richard. We’re currently looking into MediaWriterSplitFLV as the other alternative.