Migrating OBS to a different drive

CatariLynx

New Member
Hi everyone - apologies if a solution to this has been found already, but I've searched the forum and Google already and haven't found a way to do this easily.

I'm looking to move my OBS setup from a mechanical hard drive to an SSD in my PC - easy enough to export the scene collection and copy all the sources over, but I can't find a quick way of changing the source file paths now they're all located on the E drive instead of the D drive.

I thought it might be as simple as opening up the Scene Collection JSON file in Notepad++ and doing a Find and Replace of "D:\" to "E:\", but it looks like it's using "source_uuid" instead of file paths.

Is there a straightforward way of doing this without manually changing the file locations of dozens of sources in OBS?
 

CatariLynx

New Member
After a bit more digging around in OBS's files I've found a solution to this, for anyone else looking to do the same thing.

This has worked for me because all of my sources are contained in the same parent folder, if your files are spread about in various different folders then I wouldn't recommend doing this.

Make sure OBS is closed before performing these steps.

1. Open up your scene's JSON file in C:\Users\YOURNAME\AppData\Roaming\obs-studio\basic\scenes (replace YOURNAME with your own profile name) with Notepad++ or other suitable text editor. I installed JSTool for Notepad++ so I could format the contents and make it readable.

2. Perform a Find and Replace on the following strings, replacing X with your previous drive letter and Y with your new drive letter, ensuring the folder is located in the same location on the new drive - alternatively adapt the replacement text to include your new destination folder:

"local_file": "X:/ with "local_file": "Y:/

and

"file": "X:/ with "file": "Y:/

3. Rename the original sources folder on the old drive - this will force OBS to report any potential missing files you may have located somewhere other than your original sources folder.

4. Load OBS and note any missing files. In my case two VLC Playlists needed changing, this will only affect you if you have VLC playlists in your scenes. Close OBS again, and do a search in the scene's JSON file for "vlc_source", below this you should find the file paths for your media files. These can be manually altered, or you can just edit the playlist contents in the OBS GUI instead.
 
Top