# Increase the segmentDuration time dynamically

**URL:** <https://community.wowza.com/t/increase-the-segmentduration-time-dynamically/42018>\
**Category:** Wowza Streaming Engine\
**Created:** [September 24, 2014, 10:33am UTC](https://community.wowza.com/t/increase-the-segmentduration-time-dynamically/42018 "2014-09-24T10:33:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nineesh\_K\_Dasan](https://avatars.discourse-cdn.com/v4/letter/n/bbce88/32.png) [@Nineesh\_K\_Dasan](https://community.wowza.com/u/Nineesh_K_Dasan)\
**Post date:** [September 24, 2014, 10:33am UTC](https://community.wowza.com/t/increase-the-segmentduration-time-dynamically/42018/1 "2014-09-24T10:33:30Z")

</div>

I am recording a live stream using the url with action “_ **startRecordingSegmentByDuration** _”.

for eg:

[http://xxxxxxx:8086/livestreamrecord?app=live&streamname=4.stream&action=startRecordingSegmentByDuration&output=](http://xxxxxxx:8086/livestreamrecord?app=live&streamname=4.stream&action=startRecordingSegmentByDuration&output=)"/var/storage1/camera\_4/abc.mp4&format=2&startonkeyframe=true&segmentDuration=60

My question is:

Can I update the value of _ **segmentDuration** _ to a higher one, when recording is happening.

tnx!

---

<div class="post-metadata">

**Author:** ![Matt\_Young](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/matt_young/32/389_2.png) [@Matt\_Young](https://community.wowza.com/u/Matt_Young)\
**Post date:** [September 25, 2014, 11:31am UTC](https://community.wowza.com/t/increase-the-segmentduration-time-dynamically/42018/2 "2014-09-25T11:31:33Z")

</div>

Hello

If you are using the HTTP API, you will not be able to do this while the recording is occurring. Since the method available is to “start” a recording, you cannot call it again to update an existing recording. However, try taking a look at the ILiveStreamRecord API ([example](https://www.wowza.com/docs/how-to-start-and-stop-live-stream-recordings-programmatically-imediastreamactionnotify3%28IMediaStreamActionNotify3%29)), you should be able to change the duration on-the-fly there.

Thanks,

Matt
