# When to rename the recorded Mp4 file?

**URL:** <https://community.wowza.com/t/when-to-rename-the-recorded-mp4-file/39816>\
**Category:** Wowza Streaming Engine\
**Created:** [May 28, 2013, 3:08am UTC](https://community.wowza.com/t/when-to-rename-the-recorded-mp4-file/39816 "2013-05-28T03:08:24Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![sharmi\_la](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@sharmi\_la](https://community.wowza.com/u/sharmi_la)\
**Post date:** [May 28, 2013, 3:08am UTC](https://community.wowza.com/t/when-to-rename-the-recorded-mp4-file/39816/1 "2013-05-28T03:08:24Z")

</div>

Hi,

I have a liverecod application in which the recorded video is stored in the wowza server as .flv file by default. By using ‘ModuleMediaWriterFileMover’ a copy of the flv file is converted to mp4 file and stored in the wowza server as wel. **Now i want to rename both(flv & mp4) the files.** Renaming is possible only for that flv file but it is not getting renamed for the mp4 file. Am renaming the flv file on onWriteComplete method and it is getting renamed but it is not renaming for the mp4 file. I want to know when can i rename the mp4 file ?

---

<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:** [May 28, 2013, 8:01am UTC](https://community.wowza.com/t/when-to-rename-the-recorded-mp4-file/39816/2 "2013-05-28T08:01:01Z")

</div>

Hi Sharmi,

You can get a higher level of control over moving and re-naming streams with the IMediaWriterActionNotify module:

[How to use IMediaWriterActionNotify to programmatically move and rename recordings of live streams](https://www.wowza.com/docs/how-to-use-imediawriteractionnotify-to-programmatically-move-and-rename-recordings-of-live-streams)

Salvadore

---

<div class="post-metadata">

**Author:** ![sharmi\_la](https://avatars.discourse-cdn.com/v4/letter/s/b5e925/32.png) [@sharmi\_la](https://community.wowza.com/u/sharmi_la)\
**Post date:** [May 28, 2013, 6:30am UTC](https://community.wowza.com/t/when-to-rename-the-recorded-mp4-file/39816/3 "2013-05-28T06:30:46Z")

</div>

Hi,

I tried using the above link i know how to rename flv file. But it is not getting renamed for mp4. Where to get the exact mp4 file renaming place on writecomplete method?

> Hi Sharmi,
> 
> You can get a higher level of control over moving and re-naming streams with the IMediaWriterActionNotify module:
> 
> [How to use IMediaWriterActionNotify to programmatically move and rename recordings of live streams](https://www.wowza.com/docs/how-to-use-imediawriteractionnotify-to-programmatically-move-and-rename-recordings-of-live-streams)
> 
> Salvadore

---

<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:** [May 28, 2013, 9:24am UTC](https://community.wowza.com/t/when-to-rename-the-recorded-mp4-file/39816/4 "2013-05-28T09:24:34Z")

</div>

Hi Shami,

You could try adding this method:

```auto
public void onMP4AddMetadata(IMediaStream stream, Map<String, Object> extraMetadata)
 {
 getLogger().info("ModuleWriteListener.onMP4AddMetadata["+stream.getContextStr()+"]");
}

```

Salvadore
