# How to rename recorded live videos automatically?

**URL:** https://community.wowza.com/t/how-to-rename-recorded-live-videos-automatically/35474
**Category:** Wowza Streaming Engine
**Created:** [September 5, 2010, 7:13pm UTC](https://community.wowza.com/t/how-to-rename-recorded-live-videos-automatically/35474 "2010-09-05T19:13:17Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![lechie\_chao](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@lechie\_chao](https://community.wowza.com/u/lechie_chao)
#### Post date: [September 5, 2010, 7:13pm UTC](https://community.wowza.com/t/how-to-rename-recorded-live-videos-automatically/35474/1 "2010-09-05T19:13:17Z")

</div>

hi,

I want to record the live video and saved it on the hard disk,but there is a question that is,could I change the names of the previous recorded videos automatically?

for example:

the stream name I set up is “myStream” and on the disk its name is “myStream” if there is no “myStream” used.

then I record next time, on the disk the one above-mentioned ,its name has been changed to “myStream\_0”, and the current one’s name is “myStream”.

I want to set the rename rules, I tried to set up the stream name on the flash media encoder to “myStream **%i** ”, it is effective, but it is not enough.

And how could I let the recorded live video’s name changed according to current date and time?should I set up the flash media encoder or the application.xml file?

waiting for any help.

---

<div class="post-metadata">

### Author: ![lechie\_chao](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@lechie\_chao](https://community.wowza.com/u/lechie_chao)
#### Post date: [September 5, 2010, 8:00pm UTC](https://community.wowza.com/t/how-to-rename-recorded-live-videos-automatically/35474/2 "2010-09-05T20:00:18Z")

</div>

> hi,
> 
> I want to record the live video and saved it on the hard disk,but there is a question that is,could I change the names of the previous recorded videos automatically?
> 
> for example:
> 
> the stream name I set up is “myStream” and on the disk its name is “myStream” if there is no “myStream” used.
> 
> then I record next time, on the disk the one above-mentioned ,its name has been changed to “myStream\_0”, and the current one’s name is “myStream”.
> 
> I want to set the rename rules, I tried to set up the stream name on the flash media encoder to “myStream **%i** ”, it is effective, but it is not enough.
> 
> And how could I let the recorded live video’s name changed according to current date and time?should I set up the flash media encoder or the application.xml file?
> 
> waiting for any help.

I read the adobe flash media encoder help documents:

```auto
If you use a filename that exists in the selected folder, Flash Media Live Encoder renames the existing file so that the newly saved file does not overwrite it. For example, if sample.flv exists, Flash Media Live Encoder renames it sample.0.flv and saves your new file as sample.flv. If both sample.flv and sample.0.flv exist, sample.flv is renamed sample.1.flv, and so on. If the wrong filename extension is used, Flash Media Live Encoder changes it to the correct filename extension.

```

and it does not support date format like “%Y/%d/%m %H:%M:%S”,only some easy parameters like %i,%f(output frame size),etc.

[http://help.adobe.com/en\_US/FlashMediaLiveEncoder/3.1/Using/WS86632046-87C8-4d50-AD74-E1A08AC67FEE.html](http://help.adobe.com/en_US/FlashMediaLiveEncoder/3.1/Using/WS86632046-87C8-4d50-AD74-E1A08AC67FEE.html)

so can wowza do the job of set up the rename rule?

---

<div class="post-metadata">

### Author: ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)
#### Post date: [September 6, 2010, 1:28pm UTC](https://community.wowza.com/t/how-to-rename-recorded-live-videos-automatically/35474/3 "2010-09-06T13:28:54Z")

</div>

Take a look at this post:

[http://community.wowza.com/t/-/91](http://community.wowza.com/t/-/91)

Richard

---

<div class="post-metadata">

### Author: ![lechie\_chao](https://avatars.discourse-cdn.com/v4/letter/l/82dd89/32.png) [@lechie\_chao](https://community.wowza.com/u/lechie_chao)
#### Post date: [September 6, 2010, 6:26am UTC](https://community.wowza.com/t/how-to-rename-recorded-live-videos-automatically/35474/4 "2010-09-06T06:26:50Z")

</div>

> Take a look at this post:
> 
> [http://community.wowza.com/t/-/91](http://community.wowza.com/t/-/91)
> 
> Richard

Thank you Richard for your reply. Let me have a try.
