# Wowza Record Stop after n-time

**URL:** <https://community.wowza.com/t/wowza-record-stop-after-n-time/43605>\
**Category:** Wowza Streaming Engine\
**Created:** [June 22, 2015, 12:59pm UTC](https://community.wowza.com/t/wowza-record-stop-after-n-time/43605 "2015-06-22T12:59:57Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Sergey\_Zykov](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@Sergey\_Zykov](https://community.wowza.com/u/Sergey_Zykov)\
**Post date:** [June 22, 2015, 12:59pm UTC](https://community.wowza.com/t/wowza-record-stop-after-n-time/43605/1 "2015-06-22T12:59:57Z")

</div>

Good afternoon!

How can we realize this function? For ex, we have 3 vars where saved time in hours. For ex. 3 hour in first var. Ok It says to wowza that after start record wowza stop this stream after 3 hours! Not split! Just stop.

Or maybe wowza has 1 param where we can write time by default, after that wowza will be send “stop recording” for all streams which was started?

Thank you! Will be waiting for an answer.

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [June 22, 2015, 10:13am UTC](https://community.wowza.com/t/wowza-record-stop-after-n-time/43605/2 "2015-06-22T10:13:50Z")

</div>

Hello.

You could create a cron entry or the equiv in windows (task scheduler?) to run something like this to start the recording:

```auto
http://USERNAME:PASSWORD@[WOWZA-IP]:8086/livestreamrecord?app=live&streamname=my.stream&action=startRecording&option=append

```

and have another entry for +3 hours to stop it:

```auto
http://USERNAME:PASSWORD@[WOWZA-IP]:8086/livestreamrecord?app=live&streamname=my.stream&action=stopRecording

```

I hope this helps.

Salvadore

---

<div class="post-metadata">

**Author:** ![Sergey\_Zykov](https://avatars.discourse-cdn.com/v4/letter/s/74df32/32.png) [@Sergey\_Zykov](https://community.wowza.com/u/Sergey_Zykov)\
**Post date:** [June 30, 2015, 2:26pm UTC](https://community.wowza.com/t/wowza-record-stop-after-n-time/43605/3 "2015-06-30T14:26:42Z")

</div>

Thank you Salvadore for your answer.

But it’s not good idea for us!

User start recording. Function create cron task with stop after n time. We need second cron for monitoring first cron tasks which need to clean. It’s not true way!

Will be good if wowza can monitoring streams record by itself and stop every record after n time. Could you help me?

Thank you
