DSM 7. DS920 Issue.Need help with Preferences.xml location

Server Version#: 1.23.4.4775
Player Version#:

Hello I have a Synology DS920 DSM 7 and I am having trouble with hardware encoding. there seems to be some buffering going on. Adding VaapiDriver="i965" to the Preferences.xml file seem to help with this issue back in DSM 6’s PMS. I was wondering if any can help me in how to add this string back into the DSM7’s PMS

  1. You’ll need to perform the edit via the DSM 7 command-line text editors (nano / vi)
  2. “/var/packages/PlexMediaServer/home/Plex Media Server/Preferences.xml”

Can you point me to any reading material on how to do those steps? I was able to SSH into my NAS through Putty and after that i’m a bit clueless.

I am concerned.

  1. You were able to get into the NAS
  2. But don’t know how to use the command line?

I’d recommend getting out of the command line until your skills are stronger.

Plex on DSM 7 is fragile internally. Mistyping something could wipe out your installation.

Would you be more comfortable if I gave you the commands to paste into a DSM scheduled task to:

  1. Add i965
  2. Remove i965

?

Yes Please. That would be helpful

@azuma24

Before I craft up this new scripting ( I don’t have anything existing ),

May I see the problem you’re having?
I’d like to be certain that the i965 driver is what’s needed.

Reasons for using the i965 driver is almost exclusively limited to transcoding of very low bit rate video.

Can you please your situation for me?

  1. DEBUG logging on (Settings - Server - General - Show Advanced – SAVE if changes)

  2. VERBOSE logging off

  3. Play the video long enough to recreate the problem

  4. stop playback

  5. Wait 20 seconds

  6. Download the Logs ZIP file (troubleshooting menu)

  7. Get the XML for the media (Hover over the poster → ellipsis → Get Info → View XML

  8. Paste the XML into a </> (code) formatted block in your reply. It will look like this when done.

<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="16" librarySectionTitle="Television - Holiday" librarySectionUUID="20ecff4d-697c-40a8-a0d2-c5a1509b5877" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1620793061">
<Video ratingKey="57626" key="/library/metadata/57626" parentRatingKey="57625" grandparentRatingKey="57624" guid="plex://episode/5d9c0cd90aaccd001f8ffb6a" parentGuid="plex://season/602e5baaea35e0002c224d32" grandparentGuid="plex://show/5d9c0802e264b7001fc39ce6" type="episode" title="The Mayflower Voyagers" titleSort="Mayflower Voyagers" grandparentKey="/library/metadata/57624" parentKey="/library/metadata/57625" librarySectionTitle="Television - Holiday" librarySectionID="16" librarySectionKey="/library/sections/16" grandparentTitle="This is America, Charlie Brown" parentTitle="Season 1" contentRating="TV-G" summary="In the first episode of This Is America, Charlie Brown starts out with Charlie Brown talking about the Pilgrims leaving England for America aboard the Mayflower. The first weeks aboard the Mayflower were all right. The the trip gets rough, and they might have to return to England. Then on November 11 1620 Snoopy and Woodstock spot land. The Mayflower Compact is then written. They find land that has been mysteriously cleared. A lot of the adults are sick so it is up to Charlie Brown and the gang to help. Lucy is put in charge and puts Charlie Brown and Linus in charge of getting wintergreen and chokeberry. She puts Snoopy and Woodstock in charge of getting water. The adults build a common house that is used as a hospital. The Pilgrims had one disappointment after another. That is when they see and Indian he brings with him Squanto. Squanto teaches them how to fish and plant seeds. The Indians save them. The next fall they had a bountiful harvest and invited the Indians to dinner and gav" index="1" parentIndex="1" audienceRating="9.5" thumb="/library/metadata/57626/thumb/1624077401" art="/library/metadata/57624/art/1624077401" parentThumb="/library/metadata/57625/thumb/1624077401" grandparentThumb="/library/metadata/57624/thumb/1624077401" grandparentArt="/library/metadata/57624/art/1624077401" grandparentTheme="/library/metadata/57624/theme/1624077401" duration="1458505" originallyAvailableAt="1988-10-21" addedAt="1624077399" updatedAt="1624077401" audienceRatingImage="thetvdb://image.rating">
<Media id="70349" duration="1458505" bitrate="10031" width="1476" height="1080" aspectRatio="1.33" audioChannels="6" audioCodec="dca" videoCodec="h264" videoResolution="1080" container="mkv" videoFrameRate="24p" audioProfile="dts" videoProfile="high">
<Part accessible="1" exists="1" id="112458" key="/library/parts/112458/1496159207/file.mkv" duration="1458505" file="/nas/media/seasonal/tv/This is America Charlie Brown (1988)/The is america Charlie Brown.S01E01.The Mayflower Voyagers.mkv" size="1829318032" audioProfile="dts" container="mkv" deepAnalysisVersion="4" requiredBandwidths="138451,97669,24055,24055,24055,24055,24055,24055" videoProfile="high">
<Stream id="164323" streamType="1" default="1" codec="h264" index="0" bitrate="8522" language="English" languageCode="eng" bitDepth="8" chromaLocation="left" chromaSubsampling="4:2:0" codedHeight="1088" codedWidth="1488" frameRate="23.976" hasScalingMatrix="0" height="1080" level="41" profile="high" refFrames="5" requiredBandwidths="136945,96159,23406,23406,23406,23406,23406,23406" scanType="progressive" width="1476" displayTitle="1080p (H.264)" extendedDisplayTitle="1080p (H.264)"> </Stream>
<Stream id="164324" streamType="2" selected="1" default="1" codec="dca" index="1" channels="6" bitrate="1509" language="English" languageCode="eng" audioChannelLayout="5.1(side)" bitDepth="24" profile="dts" requiredBandwidths="1505,1505,1505,1505,1505,1505,1505,1505" samplingRate="48000" displayTitle="English (DTS 5.1)" extendedDisplayTitle="English (DTS 5.1)"> </Stream>
</Part>
</Media>
<Guid id="tmdb://472990"/>
<Guid id="tvdb://123917"/>
<Extras size="0"> </Extras>
<Related> </Related>
</Video>
</MediaContainer>
<MediaContainer size="1" allowSync="1" identifier="com.plexapp.plugins.library" librarySectionID="3" librarySectionTitle="Anime" librarySectionUUID="6a1afbd3-699c-434b-8ad8-efa2186874e3" mediaTagPrefix="/system/bundle/media/flags/" mediaTagVersion="1625480803">
<Video ratingKey="11155" key="/library/metadata/11155" parentRatingKey="11154" grandparentRatingKey="11150" guid="com.plexapp.agents.thetvdb://318161/1/1?lang=en" parentGuid="com.plexapp.agents.thetvdb://318161/1?lang=en" grandparentGuid="com.plexapp.agents.thetvdb://318161?lang=en" type="episode" title="Starting Over" grandparentKey="/library/metadata/11150" parentKey="/library/metadata/11154" librarySectionTitle="Anime" librarySectionID="3" librarySectionKey="/library/sections/3" grandparentTitle="Little Witch Academia" parentTitle="Season 1" contentRating="TV-Y7" summary="Atsuko "Akko" Kagari enrolls in the prestigious academy Luna Nova following her dream and passion of becoming a witch like Shiny Chariot. She searches all over the small town of Brighton Berry for a bus to Luna Nova Academy, but when she finally finds it it turns out to be a "Broom Highway" that only witches can use. Akko, who's never practiced magic before, let alone rode a broom, is at a complete loss. What's more, if she doesn't make it in time for the opening ceremony, she'll be expelled!" index="1" parentIndex="1" rating="9.5" skipCount="1" year="2017" thumb="/library/metadata/11155/thumb/1625077411" art="/library/metadata/11150/art/1625597766" parentThumb="/library/metadata/11154/thumb/1625056044" grandparentThumb="/library/metadata/11150/thumb/1625597766" grandparentArt="/library/metadata/11150/art/1625597766" grandparentTheme="/library/metadata/11150/theme/1625597766" duration="1442133" originallyAvailableAt="2017-01-09" addedAt="1624115167" updatedAt="1625077411" chapterSource="media">
<Media id="24460" duration="1442133" bitrate="2240" width="1920" height="1080" aspectRatio="1.78" audioChannels="2" audioCodec="aac" videoCodec="hevc" videoResolution="1080" container="mkv" videoFrameRate="24p" audioProfile="lc" videoProfile="main 10">
<Part accessible="1" exists="1" id="24460" key="/library/parts/24460/1624115167/file.mkv" duration="1442133" file="/volume1/Media Data/Anime/Little Witch Academia/Little Witch Academia - S01E01 - Starting Over.mkv" size="404874930" audioProfile="lc" container="mkv" deepAnalysisVersion="4" requiredBandwidths="7749,6572,4400,2623,2623,2623,2623,2623" videoProfile="main 10">
<Stream id="62203" streamType="1" default="1" codec="hevc" index="0" bitrate="1987" bitDepth="10" chromaSubsampling="4:2:0" codedHeight="1080" codedWidth="1920" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="23.976" height="1080" level="123" profile="main 10" refFrames="1" requiredBandwidths="7476,6299,4125,2371,2371,2371,2371,2371" width="1920" displayTitle="1080p (HEVC Main 10)" extendedDisplayTitle="1080p (HEVC Main 10)"> </Stream>
<Stream id="62204" streamType="2" codec="aac" index="1" channels="2" bitrate="134" language="English" languageCode="eng" audioChannelLayout="stereo" profile="lc" requiredBandwidths="136,136,136,136,136,136,136,136" samplingRate="48000" title="Stereo - ENG (AAC)" displayTitle="English (AAC Stereo)" extendedDisplayTitle="Stereo - ENG (AAC)"> </Stream>
<Stream id="62205" streamType="2" selected="1" default="1" codec="aac" index="2" channels="2" bitrate="119" language="日本語" languageCode="jpn" audioChannelLayout="stereo" profile="lc" requiredBandwidths="120,120,120,120,120,120,120,120" samplingRate="48000" title="Stereo - JPN (AAC)" displayTitle="日本語 (AAC Stereo)" extendedDisplayTitle="Stereo - JPN (AAC)"> </Stream>
<Stream id="62206" streamType="3" selected="1" codec="ass" index="3" bitrate="0" language="English" languageCode="eng" requiredBandwidths="2,2,2,2,2,2,2,2" title="Signs & Songs - ENG (ASS)" displayTitle="English (ASS)" extendedDisplayTitle="Signs & Songs - ENG (ASS)"> </Stream>
<Stream id="62207" streamType="3" default="1" codec="ass" index="4" bitrate="0" language="English" languageCode="eng" requiredBandwidths="1,1,1,1,1,1,1,1" title="Dialog - ENG (ASS)" displayTitle="English (ASS)" extendedDisplayTitle="Dialog - ENG (ASS)"> </Stream>
</Part>
</Media>
<Writer id="26794" filter="writer=26794" tag="Michiru Shimada"/>
<Writer id="26795" filter="writer=26795" tag="Yoh Yoshinari"/>
<Chapter id="27413" filter="thumb=27413" tag="Avant" index="1" startTimeOffset="0" endTimeOffset="156365" thumb="/library/media/24460/chapterImages/1"/>
<Chapter id="27414" filter="thumb=27414" tag="A-Part" index="2" startTimeOffset="156365" endTimeOffset="694027" thumb="/library/media/24460/chapterImages/2"/>
<Chapter id="27415" filter="thumb=27415" tag="B-Part" index="3" startTimeOffset="694027" endTimeOffset="1350099" thumb="/library/media/24460/chapterImages/3"/>
<Chapter id="26391" filter="thumb=26391" tag="Ending" index="4" startTimeOffset="1350099" endTimeOffset="1442066" thumb="/library/media/24460/chapterImages/4"/>
<Extras size="0"> </Extras>
<Related> </Related>
</Video>
</MediaContainer>

@ChuckPa

Here is some additional info. Hope this helps
000

Thank you.

I see what we’re dealing with.

Burning subtitles on any Synology NAS is the real problem here.

The i965 driver has nothing to do with that.

Turn off the subtitles and see how you make out. It should work nornally.

Turning off the subtitles solved the playback issue. Thanks a lot. What kind of settings do i need to configure if i still need subtitles though? I didn’t had this issue with DSM 6 PSM. it was a while back, but i remembered i edited the Preferences.xml back then.

There are no settings involved here.

You need to curate the media better for this NAS.

If you want to keep the subtitles permanently, have you considered using HandBrake to burn-in the subtitles ?

Your alternative is to use FFMPEG directly (does a better job but more work)

DSM 6 vs DSM 7 isn’t going to impact this whatsoever.

I’ll give you the task scheduler job but it’s not going to help because HW is already being used to decode & encode the video. Subtitles are always software burning.

The HEVC is the hard part here.

Ic. understood. Thanks for the clarification

Is it still possible to get the commands to paste into a DSM scheduled task for you ? Would like to have it handy just in case i need it for future issues.

Let me do final test here then I’ll post.

@azuma24

I recommend using the new Output capture settings in DSM 7 Scheduled Task. Pick somewhere for the output of all tasks to go. It’s very handy.

Screenshot from 2021-07-07 11-52-27

This is a one-time (keep it disabled) task

#!/bin/sh

Preferences="/var/packages/PlexMediaServer/home/Plex Media Server/Preferences.xml"

# Make certain Plex is not running
if [ $(ps -ef | grep -v grep | grep -c appstore/Plex) -gt 0 ]; then
  echo ERROR:  Plex is still running.  Aborting.
  exit 1
fi

# add i965 if not already present
if [ $(grep -c i965 "$Preferences") -eq 0 ]; then
  sed -i 's;/>; VaapiDriver="i965"/>;' "$Preferences" 
fi

# See if added
if [ $( grep VaapiDriver "$Preferences" | grep -c "i965" ) -gt 0 ]; then
  echo \'VaapiDriver=i965\' set in \"$Preferences\"
fi

To use:

  1. Stop Plex
  2. Run task
  3. Verify output log
  4. Start Plex

Thank you very much. i followed your instructions and the script works. burn in subtitles seem to work perfectly after this modification. Transcode speed was 0.0-0.3 and now 1.0-1.5

000

WOW,

What is it about HEVC anime that is so hard on the iHD driver ?

That’s so bizarre

:sweat_smile: lol.

once again. Thank you :laughing:

this is an old post. and i did see Intel updated their drivers. but i thought i still post their findings in this post for others.

Thanks.

That patch is already included in the driver shipped with PMS.

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