# How to get last 30 seconds of live streaming?

**URL:** <https://community.wowza.com/t/how-to-get-last-30-seconds-of-live-streaming/51726>\
**Category:** Wowza Streaming Engine\
**Tags:** recording\
**Created:** [July 31, 2018, 2:31pm UTC](https://community.wowza.com/t/how-to-get-last-30-seconds-of-live-streaming/51726 "2018-07-31T14:31:43Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Touqeer\_Ahmad](https://avatars.discourse-cdn.com/v4/letter/t/d9b06d/32.png) [@Touqeer\_Ahmad](https://community.wowza.com/u/Touqeer_Ahmad)\
**Post date:** [July 31, 2018, 2:31pm UTC](https://community.wowza.com/t/how-to-get-last-30-seconds-of-live-streaming/51726/1 "2018-07-31T14:31:43Z")

</div>

Currently when stream starts, I start its recording in append mode and I have known that we can only play video after its recording is stopped.

I know there is a option to record in segments but I don’t want to do that. I want the recorded video in a single file.

So, is there a way to get only last 30 seconds of video?  
**OR**

To start 2 recordings of single live stream, in which 1 will do complete recording and 1 will create segment of live stream after every 30 seconds?

**OR**

To copy the stream from buffer?

**OR**

Any other way to accomplish this?

Thanks & Regards,

Touqeer

---

<div class="post-metadata">

**Author:** ![Joe\_Bray](https://avatars.discourse-cdn.com/v4/letter/j/4491bb/32.png) [@Joe\_Bray](https://community.wowza.com/u/Joe_Bray)\
**Post date:** [August 3, 2018, 12:59pm UTC](https://community.wowza.com/t/how-to-get-last-30-seconds-of-live-streaming/51726/2 "2018-08-03T12:59:47Z")

</div>

there used to be an API to get a single file from DVR or recored segments… try that?

option2 would work

or turn on DVR.

---

<div class="post-metadata">

**Author:** ![Gaurav\_Srivastava](https://avatars.discourse-cdn.com/v4/letter/g/db5fbb/32.png) [@Gaurav\_Srivastava](https://community.wowza.com/u/Gaurav_Srivastava)\
**Post date:** [July 27, 2021, 5:06pm UTC](https://community.wowza.com/t/how-to-get-last-30-seconds-of-live-streaming/51726/3 "2021-07-27T17:06:19Z")

</div>

@Touqeer_Ahmad How you solved this ?

---

<div class="post-metadata">

**Author:** ![Connessione](https://avatars.discourse-cdn.com/v4/letter/c/43a26b/32.png) [@Connessione](https://community.wowza.com/u/Connessione)\
**Post date:** [July 29, 2021, 5:18pm UTC](https://community.wowza.com/t/how-to-get-last-30-seconds-of-live-streaming/51726/4 "2021-07-29T17:18:06Z")

</div>

If you record the entire thing you can always use ffmpeg to cut out last 30 seconds.
