# Bug report - Server restart resets Transcoding parameters

**URL:** <https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445>\
**Category:** Plex Media Server\
**Tags:** server-linux\
**Created:** [September 6, 2021, 6:46pm UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445 "2021-09-06T18:46:15Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter-a](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@peter-a](https://forums.plex.tv/u/peter-a)\
**Post date:** [September 6, 2021, 6:46pm UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/1 "2021-09-06T18:46:15Z")

</div>

Server Version#: Version 4.59.2 - plexmediaserver-1.24.1.4931-1a38e63c6.x86\_64  
Player Version#: N/A

I transcode my video files in background to 1.5Mps/480P for external access. In order to provide as much clarity as possible, I have the transcoding parameters set as follows:

Transcoder quality: Make my CPU hurt  
Background transcoding x264 preset: Very slow

Whenever the Server restarts, these values are reset to “Automatic” and “Very fast”. This causes the current set of files being transcoded to be in a questionable state, and requires that I delete them and re-transcode.

Server restarts are triggered by software upgrade, out-of-memory conditions (there’s a memory leak in the server) and, of course, server reboots. While software upgrades only happen between transcoding sessions, the out-of-memory condition can happen at any time - usually after a week or two of running.

Before anyone asks, yes, I did Save after I changed the settings.

---

<div class="post-metadata">

**Author:** ![peter-a](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@peter-a](https://forums.plex.tv/u/peter-a)\
**Post date:** [September 20, 2021, 8:13pm UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/2 "2021-09-20T20:13:19Z")

</div>

A more generalized, but less detailed, report of a similar problem can be found here: [Plex Media Server configs after power failure](https://forums.plex.tv/t/plex-media-server-configs-after-power-failure/731426)

---

<div class="post-metadata">

**Author:** ![BanzaiInstitute](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/banzaiinstitute/32/293273_2.png) [@BanzaiInstitute](https://forums.plex.tv/u/BanzaiInstitute)\
**Post date:** [September 21, 2021, 12:02am UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/3 "2021-09-21T00:02:24Z")

</div>

While this should be fixed properly maybe there’s a hacky way around it. If that preference is written into a config file… you could change the owner to prevent it from being overwritten with the default values you don’t want.

If the preference only ever exists in RAM then you’re probably out of luck.

---

<div class="post-metadata">

**Author:** ![peter-a](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@peter-a](https://forums.plex.tv/u/peter-a)\
**Post date:** [September 21, 2021, 12:20am UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/4 "2021-09-21T00:20:51Z")

</div>

> you could change the owner to prevent it from being overwritten with the default values you don’t want

That MIGHT work. Where are the config files documented? Also, how will this resolve the problem of the file not being read when the service is started?

---

<div class="post-metadata">

**Author:** ![BanzaiInstitute](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/banzaiinstitute/32/293273_2.png) [@BanzaiInstitute](https://forums.plex.tv/u/BanzaiInstitute)\
**Post date:** [September 21, 2021, 2:39am UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/5 "2021-09-21T02:39:07Z")

</div>

There’s a Preferences.xml file in the main app data directory… but if those settings are even kept in there, or how they are read and written, I dunno. It’s definitely a long shot.

---

<div class="post-metadata">

**Author:** ![peter-a](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@peter-a](https://forums.plex.tv/u/peter-a)\
**Post date:** [September 21, 2021, 2:50am UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/6 "2021-09-21T02:50:11Z")

</div>

> There’s a Preferences.xml file in the main app data directory.

I found the file (“/home/plexmediaserver/Library/Application Support/Plex Media Server/Preferences.xml”). This is the most recently saved set of settings and appears to have the information I provided.

In the same directory, there are also 1700 “older” versions of it, all at zero length. Strangely enough, they’re all dated July 26, 2020. I deleted the zero-length files. Let’s see if that helps anything.

---

<div class="post-metadata">

**Author:** ![BanzaiInstitute](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/banzaiinstitute/32/293273_2.png) [@BanzaiInstitute](https://forums.plex.tv/u/BanzaiInstitute)\
**Post date:** [September 21, 2021, 3:03am UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/7 "2021-09-21T03:03:22Z")

</div>

Whoa, that ain’t right!

Maybe check to see if the privs set right on the prefs file? Mine looks like this:

`-rw-r--r-- 1 plex plex 1677 Sep 20 16:32 Preferences.xml`

---

<div class="post-metadata">

**Author:** ![peter-a](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@peter-a](https://forums.plex.tv/u/peter-a)\
**Post date:** [September 21, 2021, 3:09am UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/8 "2021-09-21T03:09:39Z")

</div>

Same owner, group and mode.

I also found a version in “/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Preferences.xml” with the same size, content, owner, group, mode and modification date as the copy in /home.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [September 21, 2021, 7:31am UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/9 "2021-09-21T07:31:26Z")

</div>

> [@peter-a](#):
>
> In the same directory, there are also 1700 “older” versions of it, all at zero length. Strangely enough, they’re all dated July 26, 2020. I deleted the zero-length files. Let’s see if that helps anything.

There was a problem with that. You need to upgrade – and make sure you delete all those temp files. 🙂

Preferences.xml is the primary for all major system-wide settings.  
Per-section ones are kept in the database.

It wouldn’t hurt to make a preventative `sudo chown -R plex:plex /var/lib/plexmediaserver` and fix anything which might be ‘stuck’ at root.

---

<div class="post-metadata">

**Author:** ![BanzaiInstitute](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/banzaiinstitute/32/293273_2.png) [@BanzaiInstitute](https://forums.plex.tv/u/BanzaiInstitute)\
**Post date:** [September 21, 2021, 4:54pm UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/10 "2021-09-21T16:54:11Z")

</div>

I just noticed that the transcoder settings are supported in that prefs file.

> **[Advanced, Hidden Server Settings | Plex Support](https://support.plex.tv/articles/201105343-advanced-hidden-server-settings/)**
>
> There are a number of advanced, hidden Plex Media Server settings, some of which are not available from the normal...

 ![image](https://global.discourse-cdn.com/plex/original/3X/f/6/f625114b157b2baa8818625b6a15c0efb3543937.png)

Since you report the setting you make in the GUI doesn’t stick around after a reboot I guess there are a couple of potential problems.

Option one, when you change the setting it does not actually get written to the prefs file, so it is lost when you restart the server. If that is the case, adding it to the prefs file might fix it.

Option two, the setting is in the prefs file but it is ignored. If that is the case you are probably hosed.

I just tried changing this setting my my Ubuntu server, adding `TranscoderH264OptionsOverride="slow"` to my prefs file and restarting the server. After server restart, the directive was still in the file. (Some software will re-write the config file on start… had to check.)

Unfortunately in the Transcoder GUI settings, it still showed “Very fast” but it is possible that this is a display bug, or maybe “slow” isn’t working but another value would.

You could try adding that directive to the prefs file and seeing if it produced a different result even if the GUI says it didn’t change… maybe try a couple of different settings, too. I don’t have a lot of hope though. 🤷‍♂️

---

<div class="post-metadata">

**Author:** ![peter-a](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@peter-a](https://forums.plex.tv/u/peter-a)\
**Post date:** [September 21, 2021, 6:43pm UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/11 "2021-09-21T18:43:45Z")

</div>

> [@BanzaiInstitute](#):
>
> Unfortunately in the Transcoder GUI settings, it still showed “Very fast” but it is possible that this is a display bug, or maybe “slow” isn’t working but another value would.

This is what I’m seeing as well. When there are transcodes queued, those processed after the restart are done much faster, clearly indicating that the system is displaying the value being used.

Back to my OP, this is a bug, and my best guess is that this parameter, probably with a significant number of other parameters, isn’t being read at start time, or it might be being overwritten by default values after being read.

> [@ChuckPa](#):
>
> It wouldn’t hurt to make a preventative `sudo chown -R plex:plex /var/lib/plexmediaserver` and fix anything which might be ‘stuck’ at root.

Just did this. Also /home/plexmediaserver and (just for completeness) my media directories. I don’t expect to see any change for this issue, as the owner/group/mode of the file containing the setting was correct.

---

<div class="post-metadata">

**Author:** ![BanzaiInstitute](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/banzaiinstitute/32/293273_2.png) [@BanzaiInstitute](https://forums.plex.tv/u/BanzaiInstitute)\
**Post date:** [September 22, 2021, 2:59am UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/12 "2021-09-22T02:59:41Z")

</div>

> [@peter-a](#):
>
> Back to my OP, this is a bug

Sure looks like it … and no workaround. Hopefully they get to it… if a config directive isn’t followed, that is a pretty legit bug.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [September 22, 2021, 3:49am UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/13 "2021-09-22T03:49:08Z")

</div>

@BanzaiInstitute

Please check your PM.

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [September 22, 2021, 6:59pm UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/14 "2021-09-22T18:59:34Z")

</div>

@peter-a

If @BanzaiInstitute has the same option as you “TranscoderH264OptionsOverride”,

Thanks. I went right to it in the transcoder options processor.

Please check your log files.

1. TranscoderH264OptionsOverride - is a valid preference.
2. It is only used when a “Universal” profile is used.
3. Augmented profiles (from the smart players) causes the preference to be ignored because they tell the transcoder exactly how they want it to behave.

---

<div class="post-metadata">

**Author:** ![peter-a](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@peter-a](https://forums.plex.tv/u/peter-a)\
**Post date:** [September 22, 2021, 9:09pm UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/15 "2021-09-22T21:09:18Z")

</div>

cat /home/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Preferences.xml

```auto
<?xml version="1.0" encoding="utf-8"?>
<Preferences OldestPreviousVersion="1.19.4.2902-69560ce1e" MachineIdentifier="GUID-1" ProcessedMachineIdentifier="GUID-2" AnonymousMachineIdentifier="GUID-3" MetricsEpoch="1" AcceptedEULA="1" PublishServerOnPlexOnlineKey="0" PlexOnlineToken="MyToken" PlexOnlineUsername="MyEmail@MyDomain.com" PlexOnlineMail="MyEmail@MyDomain.com" DvrIncrementalEpgLoader="0" CertificateUUID="GUID-4" CertificateVersion="2" PubSubServer="184.105.148.114" PubSubServerRegion="sjc" PubSubServerPing="53" CloudSyncNeedsUpdate="0" LanguageInCloud="1" DlnaEnabled="1" DlnaClientPreferences="IP=192.168.1.97,DirectPlay=true,DirectStream=true,LocalResolution=1920x1080,RemoteResolution=1920x1080,OnlineResolution=1920x1080,LocalVideoQuality=99,RemoteVideoQuality=99,OnlineVideoQuality=99,SubtitleSize=60,AudioBoost=100,MusicBitrate=320" TranscodeCountLimit="2" TranscoderH264BackgroundPreset="veryslow" TranscoderQuality="3" BackgroundQueueIdlePaused="0"/>

```

Do I need to set the TranscoderH264OptionsOverride option? If so, where can I find it?

---

<div class="post-metadata">

**Author:** ![ChuckPa](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chuckpa/32/79710_2.png) [@ChuckPa](https://forums.plex.tv/u/ChuckPa)\
**Post date:** [September 23, 2021, 3:22am UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/16 "2021-09-23T03:22:20Z")

</div>

@peter-a

When you look at your logs, do you see a lot of “Universal” profile use?

The option only activates for them.

If there’s a smart player (Roku, Nividia, Apple, Android) it won’t activate.

---

<div class="post-metadata">

**Author:** ![peter-a](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@peter-a](https://forums.plex.tv/u/peter-a)\
**Post date:** [September 23, 2021, 7:25am UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/17 "2021-09-23T07:25:22Z")

</div>

This is for background transcoding, not on-demand transcoding.

---

<div class="post-metadata">

**Author:** ![peter-a](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@peter-a](https://forums.plex.tv/u/peter-a)\
**Post date:** [September 24, 2021, 9:34pm UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/18 "2021-09-24T21:34:41Z")

</div>

Just updated to the latest version of Server. It appears that this bug may have been fixed.

More testing will be required to be sure.

---

<div class="post-metadata">

**Author:** ![peter-a](https://avatars.discourse-cdn.com/v4/letter/p/ed8c4c/32.png) [@peter-a](https://forums.plex.tv/u/peter-a)\
**Post date:** [October 18, 2021, 3:20am UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/19 "2021-10-18T03:20:23Z")

</div>

There have been at least two updates of the Plex application, and a few restarts for patching, and the settings haven’t been lost.

I think this bug is fixed.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [January 16, 2022, 3:21am UTC](https://forums.plex.tv/t/bug-report-server-restart-resets-transcoding-parameters/741445/20 "2022-01-16T03:21:11Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
