# Record ip camera stream 24x7

**URL:** <https://community.wowza.com/t/record-ip-camera-stream-24x7/36662>\
**Category:** Wowza Streaming Engine\
**Created:** [July 7, 2011, 5:59pm UTC](https://community.wowza.com/t/record-ip-camera-stream-24x7/36662 "2011-07-07T17:59:22Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Huzan\_Toorkey](https://avatars.discourse-cdn.com/v4/letter/h/c68b51/32.png) [@Huzan\_Toorkey](https://community.wowza.com/u/Huzan_Toorkey)\
**Post date:** [July 7, 2011, 5:59pm UTC](https://community.wowza.com/t/record-ip-camera-stream-24x7/36662/1 "2011-07-07T17:59:22Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [July 7, 2011, 1:30pm UTC](https://community.wowza.com/t/record-ip-camera-stream-24x7/36662/2 "2011-07-07T13:30:50Z")

</div>

Are you using Wowza EC2 AMI?

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [July 7, 2011, 2:04pm UTC](https://community.wowza.com/t/record-ip-camera-stream-24x7/36662/3 "2011-07-07T14:04:35Z")

</div>

In that case you can use this:

> [@file name control](http://community.wowza.com/t/-/35603):
>
> Hey, I’m super new to Wowza and the whole video streaming scene… My situation: Linux box with wowza installed and working perfectly 2 Axis IP cameras RTSP Stream being captured by wowza (rtp-record) Stream auto started via startupstreams xml My need: To record multiple cameras for an unlimited duration, with the files being split into manageable (for searching purposes) chunks. Im not sure how to accomplish this… Id like to have it store in a format like: Camera1-YYY-MM-DD-HH…

with this:

> **[Move recordings of live streams](https://www.wowza.com/docs/how-to-move-recordings-from-live-streams)**
>
> Use the MediaWriterFileMover Wowza Streaming Engine Java module to copy or move files after they've been recorded to disk.

and this:

> **[Upload recorded media to an Amazon S3 bucket](https://www.wowza.com/docs/how-to-upload-recorded-media-to-an-amazon-s3-bucket-modules3upload)**
>
> Use the S3Upload Wowza Streaming Engine Java module to upload recorded media files to an Amazon S3 bucket.

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [July 7, 2011, 2:24pm UTC](https://community.wowza.com/t/record-ip-camera-stream-24x7/36662/4 "2011-07-07T14:24:02Z")

</div>

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:

```auto
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

---

<div class="post-metadata">

**Author:** ![Huzan\_Toorkey](https://avatars.discourse-cdn.com/v4/letter/h/c68b51/32.png) [@Huzan\_Toorkey](https://community.wowza.com/u/Huzan_Toorkey)\
**Post date:** [July 7, 2011, 7:27pm UTC](https://community.wowza.com/t/record-ip-camera-stream-24x7/36662/5 "2011-07-07T19:27:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Huzan\_Toorkey](https://avatars.discourse-cdn.com/v4/letter/h/c68b51/32.png) [@Huzan\_Toorkey](https://community.wowza.com/u/Huzan_Toorkey)\
**Post date:** [July 7, 2011, 7:45pm UTC](https://community.wowza.com/t/record-ip-camera-stream-24x7/36662/6 "2011-07-07T19:45:46Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Huzan\_Toorkey](https://avatars.discourse-cdn.com/v4/letter/h/c68b51/32.png) [@Huzan\_Toorkey](https://community.wowza.com/u/Huzan_Toorkey)\
**Post date:** [July 12, 2011, 2:14pm UTC](https://community.wowza.com/t/record-ip-camera-stream-24x7/36662/7 "2011-07-12T14:14:56Z")

</div>

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