# Save the last 20sec of the streaming you are receiving on an separate VOD (mp4)

**URL:** <https://community.wowza.com/t/save-the-last-20sec-of-the-streaming-you-are-receiving-on-an-separate-vod-mp4/46390>\
**Category:** Wowza Streaming Engine\
**Created:** [December 16, 2015, 9:30pm UTC](https://community.wowza.com/t/save-the-last-20sec-of-the-streaming-you-are-receiving-on-an-separate-vod-mp4/46390 "2015-12-16T21:30:30Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Orlando\_Campos](https://avatars.discourse-cdn.com/v4/letter/o/f04885/32.png) [@Orlando\_Campos](https://community.wowza.com/u/Orlando_Campos)\
**Post date:** [December 16, 2015, 9:30pm UTC](https://community.wowza.com/t/save-the-last-20sec-of-the-streaming-you-are-receiving-on-an-separate-vod-mp4/46390/1 "2015-12-16T21:30:30Z")

</div>

I would like to know if you think that it is possible, and where maybe I can find information about how to save the last 20sec of the streaming you are receiving on an separate VOD (mp4).

I want to create a solution that will enable me to press a button (for example) and command Wowza Streaming Engine to take the last 20sec or 30sec of the LIVE stream and capture it as a separate VOD. As you know Wowza Streaming Engine can record live streams and save them as VOD, but what I want to do is create snippets of VOD for specific moments during the live event, and on the fly, without having to wait until the entire live streams ends. I would like to be able to do this same thing for some incoming streams at the same time, and save them with a custom name/location.

Firts, I would like to know if this is possible… I believe this can be done with the JAVA API. But I’m not sure… Where I can start investigating?

Best Regards!!!

Orlando

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [December 28, 2015, 7:06pm UTC](https://community.wowza.com/t/save-the-last-20sec-of-the-streaming-you-are-receiving-on-an-separate-vod-mp4/46390/2 "2015-12-28T19:06:19Z")

</div>

Hi

There are a number of ways you could do this.

You could just start and stop the stream recording at will using the built-in [Live Stream Record HTTP Provider.](https://www.wowza.com/docs/how-to-record-live-streams-wowza-streaming-engine#livestreamrecordhttpprovider)

You could easily call this from your own player or webpage.

There is also a develop similar method through the use of the REST API using these [Stream Recording Query Examples.](https://www.wowza.com/docs/stream-recording-query-examples)

Daren
