# Openvidu recording path

**URL:** https://openvidu.discourse.group/t/openvidu-recording-path/4338
**Category:** How to implement?
**Tags:** v2
**Created:** [December 6, 2022, 6:04pm UTC](https://openvidu.discourse.group/t/openvidu-recording-path/4338 "2022-12-06T18:04:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![MigDS](https://avatars.discourse-cdn.com/v4/letter/m/e9c0ed/32.png) [@MigDS](https://openvidu.discourse.group/u/MigDS)
#### Post date: [December 6, 2022, 6:04pm UTC](https://openvidu.discourse.group/t/openvidu-recording-path/4338/1 "2022-12-06T18:04:30Z")

</div>

OpenVidu stores videos in the /srv/videos-current/ folder, exempla /srv/videos-current/sessionid/sessionid.mp4.  
I wanted the path to be customized, that is, /srv/videos-current/123/sessionid.mp4, 123 would be a dynamic variable, for example being the first 3 digits of the sessionid.  
Is this possible?

---

<div class="post-metadata">

### Author: ![cruizba](https://yyz2.discourse-cdn.com/free1/user_avatar/openvidu.discourse.group/cruizba/32/18_2.png) [@cruizba](https://openvidu.discourse.group/u/cruizba)
#### Post date: [December 20, 2022, 10:47am UTC](https://openvidu.discourse.group/t/openvidu-recording-path/4338/2 "2022-12-20T10:47:48Z")

</div>

In production, it is mandatory to have OpenVidu installed at `/opt/`. Why?

Because we want to have a common directory for all users so troubleshooting can sometimes helps more people if the installation procedure is the same across environments.

So, no, it is not possible to add a random number at the recordings directory.

What you can do is to create a service which listens to OpenVidu webhooks, and move those recordings when they finish to the folder you want and serve it as you wish.
