# Custom filename on record stream.

**URL:** <https://community.wowza.com/t/custom-filename-on-record-stream/42993>\
**Category:** Wowza Streaming Engine\
**Created:** [June 5, 2014, 11:56am UTC](https://community.wowza.com/t/custom-filename-on-record-stream/42993 "2014-06-05T11:56:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Oleg\_Artemov](https://avatars.discourse-cdn.com/v4/letter/o/b4bc9f/32.png) [@Oleg\_Artemov](https://community.wowza.com/u/Oleg_Artemov)\
**Post date:** [June 5, 2014, 11:56am UTC](https://community.wowza.com/t/custom-filename-on-record-stream/42993/1 "2014-06-05T11:56:57Z")

</div>

Hello.

To change the default filename on the recorded live stream automatticaly need to do this instructions:

[https://www.wowza.com/docs/how-to-start-and-stop-live-stream-recordings-programmatically-livestreamrecordautorecord-example#delegate](https://www.wowza.com/docs/how-to-start-and-stop-live-stream-recordings-programmatically-livestreamrecordautorecord-example#delegate)

Have WOWZA easier way to do something like that, without creating and complinig new packages & classes?

For example, change some parameters in Application.xml…

I need swap stream-name and datestamp.

-OR-

Can u pls help me with step-by-step instruction about using MyFileVersionDelegate ?

1. Download & install WOWZA IDE.

2. Download [StreamRecorderAutoRecord\_4.0.zip](https://www.wowza.com/downloads/forums/livestreamrecord/LiveStreamRecordAutoRecord_4.0.zip).

3. Compile SRC “ModuleLiveStreamRecord.java” and install it by README.html instructions.

Between the step 2 and step 3 i can make changes into src file.

Uncomment this

```auto
// If you want to use your own file Version Delegate, set it here
params.fileVersionDelegate(new MyFileVersionDelegate());

```

But i dont understand, how to use it (MyFileVersionDelegate). Could someone help me?

---

<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:** [June 6, 2014, 2:00am UTC](https://community.wowza.com/t/custom-filename-on-record-stream/42993/2 "2014-06-06T02:00:59Z")

</div>

Hello,

In order to create a custom Wowza module you will have to develop your custom code and compile it before using it with Wowza.

Did you try using the built-in Wowza recording functionality where you can also specify a naming convention for your recorded files?

It is described in the “[How to record live streams (Wowza Streaming Engine)](https://www.wowza.com/docs/how-to-record-live-streams-wowza-streaming-engine#setfiletemplate)” article.

Zoran

---

<div class="post-metadata">

**Author:** ![Savvas\_Panagiotidis](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@Savvas\_Panagiotidis](https://community.wowza.com/u/Savvas_Panagiotidis)\
**Post date:** [September 4, 2015, 2:21pm UTC](https://community.wowza.com/t/custom-filename-on-record-stream/42993/3 "2015-09-04T14:21:00Z")

</div>

Hello,

What Wowza engine already does is rename the files (\*\_2.mp4, \*\_1.mp4, \*\_0.mp4 etc).

Is there a way for the recorded file to start and end it’s streaming session with the same name?

We are interested to have recorded file names:

streamname-dd-mm-yyyy\_hh-mm-ss.mp4

---

<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:** [September 5, 2015, 10:47am UTC](https://community.wowza.com/t/custom-filename-on-record-stream/42993/4 "2015-09-05T10:47:19Z")

</div>

Hi,

Yes it is possible, but you will need to create a custom module using the example provided in the “[How to start and stop live stream recordings programmatically](https://www.wowza.com/docs/how-to-start-and-stop-live-stream-recordings-programmatically-imediastreamactionnotify3%28IMediaStreamActionNotify3%29)”

As Matt already mentioned “In the original download you’ve specified, you should see the file in src/ModuleAutoRecordAdvancedExample.java that implements the delegate you are looking at.”

Zoran

---

<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:** [June 16, 2014, 5:24am UTC](https://community.wowza.com/t/custom-filename-on-record-stream/42993/5 "2014-06-16T05:24:08Z")

</div>

In the original download you’ve specified, you should see the file in src/ModuleAutoRecordAdvancedExample.java that implements the delegate you are looking at. There is a subclass called “MyFileVersionDelegate” of which contains the logic that determines the naming convention of the recorded file (see the “name” variable thereof). You will need to modify that and recompile to utilize this functionality.

---

<div class="post-metadata">

**Author:** ![Oleg\_Artemov](https://avatars.discourse-cdn.com/v4/letter/o/b4bc9f/32.png) [@Oleg\_Artemov](https://community.wowza.com/u/Oleg_Artemov)\
**Post date:** [June 6, 2014, 11:42am UTC](https://community.wowza.com/t/custom-filename-on-record-stream/42993/6 "2014-06-06T11:42:43Z")

</div>

I’ve tried to use [https://www.wowza.com/docs/how-to-record-live-streams-wowza-streaming-engine#setfiletemplate](https://www.wowza.com/docs/how-to-record-live-streams-wowza-streaming-engine#setfiletemplate).

In the manual using, i can change the filenames.

But i need to do this in automatically.

I use this module [How to start and stop live stream recordings programmatically (IMediaStreamActionNotify3)](https://www.wowza.com/docs/how-to-start-and-stop-live-stream-recordings-programmatically-imediastreamactionnotify3%28IMediaStreamActionNotify3%29).

But i can’t understand how can i change the default filename.

e.g, i need this “yyyy-hh-mm-ss\_streamname\_partnumber.mp4”.

I think someone can do something like this thing, so i posting this question in this forum.
