# How to change default naming template in live recording

**URL:** <https://community.wowza.com/t/how-to-change-default-naming-template-in-live-recording/44256>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [November 13, 2014, 11:46am UTC](https://community.wowza.com/t/how-to-change-default-naming-template-in-live-recording/44256 "2014-11-13T11:46:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Marius\_Berg](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@Marius\_Berg](https://community.wowza.com/u/Marius_Berg)\
**Post date:** [November 13, 2014, 11:46am UTC](https://community.wowza.com/t/how-to-change-default-naming-template-in-live-recording/44256/1 "2014-11-13T11:46:00Z")

</div>

Hi

We are running Wowza engine 4.1 and are using **streamtype live-record** in the application.xml of our application to record our live stream automatically.

If the streamname is “livetest”, then the recorded clip will be “livetest.mp4”, “livetest\_01.mp4” and so on.

Is it possible to customize the filename(template) so the recorded clip will use streamname, date and time.

So the clips will look like this:

livetest\_2014-10-30\_17-56-07.mp4

livetest\_2014-10-30\_18-56-07.mp4

Regards

Marius

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [November 13, 2014, 10:11pm UTC](https://community.wowza.com/t/how-to-change-default-naming-template-in-live-recording/44256/2 "2014-11-13T22:11:47Z")

</div>

Hi,

It is possible to create a custom Wowza module which can use the **ILiveStreamRecordFileVersionDelegate**.

Please take a look at the [How to record live streams (HTTPLiveStreamRecord)](https://www.wowza.com/docs/how-to-record-live-streams-httplivestreamrecord%28HTTPLiveStreamRecord%29#ilivestreamrecordfileversiondelegate) forum article, in the **Recording live streams programmatically** paragraph where you can find a sample code of such a module.

Zoran

---

<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:** [November 13, 2014, 2:17pm UTC](https://community.wowza.com/t/how-to-change-default-naming-template-in-live-recording/44256/3 "2014-11-13T14:17:23Z")

</div>

Hello Marius, and welcome to the Wowza support forum.

There is not a configurable way to change naming conventions of recordings using StreamType live-record, but you can alter the file name of the recording programatically when it is done recording using [IMediaWriterActionNotify](https://www.wowza.com/docs/how-to-use-imediawriteractionnotify-to-programmatically-move-and-rename-recordings-of-live-streams)

The [HTTP Live stream record](https://www.wowza.com/docs/how-to-record-live-streams-httplivestreamrecord%28HTTPLiveStreamRecord%29) features have more options for how to record and name files.

Kind regards,

Salvadore

---

<div class="post-metadata">

**Author:** ![Marius\_Berg](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@Marius\_Berg](https://community.wowza.com/u/Marius_Berg)\
**Post date:** [November 13, 2014, 11:28pm UTC](https://community.wowza.com/t/how-to-change-default-naming-template-in-live-recording/44256/4 "2014-11-13T23:28:54Z")

</div>

Hi

We use Wirecast 5 as encoder and stream with x264. When we use the ModuleAutoRecordAdvancedExample in modules, the audio and video in the recorded clip get out of sync. This also happens when we stream with H264, but the sync difference is minor.

This was not a problem in wowza 3.6, where also used a recording module.

If we use streamtype live-record audio and video is in sync.

I will try to start the record with a http call to see if there is a difference.

Regards

Marius

---

<div class="post-metadata">

**Author:** ![Marius\_Berg](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@Marius\_Berg](https://community.wowza.com/u/Marius_Berg)\
**Post date:** [November 14, 2014, 12:53am UTC](https://community.wowza.com/t/how-to-change-default-naming-template-in-live-recording/44256/5 "2014-11-14T00:53:31Z")

</div>

If I use Wowza Streaming Engine Manager to start recording of a incoming x264 stream, audio and video is in sync in the clip.

If I use HTTP Live Stream Record with http url queries before the x264 stream is started, audio and video is out of sync in the clip.

If I use HTTP Live Stream Record with http url queries after the x264 stream is started, audio and video is in sync in the clip.

What is going wrong here?

Maybe recording starts to early, need to delay it.

Regards

Marius

---

<div class="post-metadata">

**Author:** ![Marius\_Berg](https://avatars.discourse-cdn.com/v4/letter/m/e47c2d/32.png) [@Marius\_Berg](https://community.wowza.com/u/Marius_Berg)\
**Post date:** [November 17, 2014, 11:42am UTC](https://community.wowza.com/t/how-to-change-default-naming-template-in-live-recording/44256/6 "2014-11-17T11:42:50Z")

</div>

We resolved this problem by making the recording process wait(threading in java) for 10 seconds after the “onpublish” event.

So now we can use x264 in Wirecast without it getting out of sync on the recording.

If there is an other event we can listen for when it comes to recording, let me know. Or if someone know how the recording process is done when using streamtype “live-record” in application.xml.

---

<div class="post-metadata">

**Author:** ![Andrew\_Ramberg](https://avatars.discourse-cdn.com/v4/letter/a/7c8e57/32.png) [@Andrew\_Ramberg](https://community.wowza.com/u/Andrew_Ramberg)\
**Post date:** [November 29, 2017, 10:09pm UTC](https://community.wowza.com/t/how-to-change-default-naming-template-in-live-recording/44256/7 "2017-11-29T22:09:58Z")

</div>

Hello,

You should be able to use the **streamRecorderFileVersionTemplate** property to set the template string as the value, using the VersionDelegate information in the article Zoran linked above. Try the following:

In Application.xml / /:

streamRecorderFileVersionTemplate\</Name ${SourceStreamName}\_${SegmentNumber} String

Best regards,  
Andrew
