Can't transcode at 720p 4mb with DS716+ with HW transcoding on?

Hi, I got a question.

I got a DS716+ and I want to switch fra DVBLink to Plex, so I have been testing plex PVR out with hardware transcoding on, to see if it would fit my needs. One problem I have run into, is that for channels with 1080i, I can’t even transcode at 720p 4mb without getting playing>buffering>playing>buffering repeatedly while CPU hovers around 25% usage, but channels with 720p, I can play at any setting without any problem, also around 25% CPU usage. Movies in 1080p 18mb x264 I also can transcode to 1080p 8mb without any problem and with below 20% CPU usage.

So whats going on? seems to me that deinterlacing is to blame, but is that a hardware problem or is plex not optimised for it?

I have attached logs from the server and iPad client

Kind regards Thun

Does the video have image subtitles? Hardware transcoding on Synology hates them and you get the symptoms you are describing despite the cpu usage being low.

@NasThun

Looking at your logs shows me there’s a problem with the detection of the HW transcoding.

Feb 18, 2018 10:12:56.268 [0x7fcccdfff700] DEBUG - Cleaning directory for session 48ee713b-0404-459b-a5b7-50e55913680a ()
Feb 18, 2018 10:12:56.268 [0x7fcccdfff700] DEBUG - Starting a transcode session 48ee713b-0404-459b-a5b7-50e55913680a at offset -1.0 (state=3)
Feb 18, 2018 10:12:56.268 [0x7fcccdfff700] DEBUG - Streaming Resource: Added session 0x7fccc441afe0:48ee713b-0404-459b-a5b7-50e55913680a
Feb 18, 2018 10:12:56.271 [0x7fcccdfff700] DEBUG - TPU: hardware transcoding: enabled, but no hardware decode accelerator found
Feb 18, 2018 10:12:56.272 [0x7fcccdfff700] DEBUG - TPU: hardware transcoding: final decoder: , final encoder: 
Feb 18, 2018 10:12:56.275 [0x7fcccdfff700] DEBUG - Job running: EAE_ROOT='/volume1/Plex/tmp_transcoding/pms-83a6187b-7cd8-425d-b420-afc71efbe6a0/EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='/volume1/Plex/Library/Application\ Support/Plex\ Media\ Server/Codecs/b077134-1269-linux-ubuntu-x86_64/'

and

a5b7-50e55913680a/2244857c-11a7-42b4-9e98-d67e1c18413c/progress?progress=-1.0&size=-22&remaining=-1&speed=0.6 (12 live) Signed-in Token (NasThun)
Feb 18, 2018 10:12:59.871 [0x7fcccfbff700] DEBUG - Completed: [127.0.0.1:54422] 206 PUT /video/:/transcode/session/48ee713b-0404-459b-a5b7-50e55913680a/2244857c-11a7-42b4-9e98-d67e1c18413c/progress?progress=-1.0&size=-22&remaining=-1&speed=0.6 (12 live) 1ms 326 bytes
Feb 18, 2018 10:12:59.900 [0x7fccc7e23700] DEBUG - Request: [127.0.0.1:54423 (Loopback)] POST /video/:/transcode/session/48ee713b-0404-459b-a5b7-50e55913680a/2244857c-11a7-42b4-9e98-d67e1c18413c/seglist (13 live) Signed-in
Feb 18, 2018 10:12:59.901 [0x7fccc7e23700] DEBUG - DASH segment range: 0 - 0

Did you update DSM since installing Plex? If so, this is why you’re having HW transcoding difficulty.

DSM updates often erase the permission settings I install (using their rules). I think I have a solution and am testing it now.
Until I do get something released, uninstall and reinstall the SPK file in Package Center (Manual Install). The HW transcoding rules will be written again and all will be normal.

Please advise if this doesn’t address the problem

@ChuckPa said:
@NasThun

Looking at your logs shows me there’s a problem with the detection of the HW transcoding.

Feb 18, 2018 10:12:56.268 [0x7fcccdfff700] DEBUG - Cleaning directory for session 48ee713b-0404-459b-a5b7-50e55913680a ()
Feb 18, 2018 10:12:56.268 [0x7fcccdfff700] DEBUG - Starting a transcode session 48ee713b-0404-459b-a5b7-50e55913680a at offset -1.0 (state=3)
Feb 18, 2018 10:12:56.268 [0x7fcccdfff700] DEBUG - Streaming Resource: Added session 0x7fccc441afe0:48ee713b-0404-459b-a5b7-50e55913680a
Feb 18, 2018 10:12:56.271 [0x7fcccdfff700] DEBUG - TPU: hardware transcoding: enabled, but no hardware decode accelerator found
Feb 18, 2018 10:12:56.272 [0x7fcccdfff700] DEBUG - TPU: hardware transcoding: final decoder: , final encoder: 
Feb 18, 2018 10:12:56.275 [0x7fcccdfff700] DEBUG - Job running: EAE_ROOT='/volume1/Plex/tmp_transcoding/pms-83a6187b-7cd8-425d-b420-afc71efbe6a0/EasyAudioEncoder' FFMPEG_EXTERNAL_LIBS='/volume1/Plex/Library/Application\ Support/Plex\ Media\ Server/Codecs/b077134-1269-linux-ubuntu-x86_64/'

and

a5b7-50e55913680a/2244857c-11a7-42b4-9e98-d67e1c18413c/progress?progress=-1.0&size=-22&remaining=-1&speed=0.6 (12 live) Signed-in Token (NasThun)
Feb 18, 2018 10:12:59.871 [0x7fcccfbff700] DEBUG - Completed: [127.0.0.1:54422] 206 PUT /video/:/transcode/session/48ee713b-0404-459b-a5b7-50e55913680a/2244857c-11a7-42b4-9e98-d67e1c18413c/progress?progress=-1.0&size=-22&remaining=-1&speed=0.6 (12 live) 1ms 326 bytes
Feb 18, 2018 10:12:59.900 [0x7fccc7e23700] DEBUG - Request: [127.0.0.1:54423 (Loopback)] POST /video/:/transcode/session/48ee713b-0404-459b-a5b7-50e55913680a/2244857c-11a7-42b4-9e98-d67e1c18413c/seglist (13 live) Signed-in
Feb 18, 2018 10:12:59.901 [0x7fccc7e23700] DEBUG - DASH segment range: 0 - 0

Did you update DSM since installing Plex? If so, this is why you’re having HW transcoding difficulty.

DSM updates often erase the permission settings I install (using their rules). I think I have a solution and am testing it now.
Until I do get something released, uninstall and reinstall the SPK file in Package Center (Manual Install). The HW transcoding rules will be written again and all will be normal.

Please advise if this doesn’t address the problem

No, I downgraded from 1.11.3.4803 to 1.10.1.4602 today, to see if that would help, but it did not. HW encoding also works on other channels with 720p and the 1080p test movies i got on the server, so HW encoding is working.

I’m having trouble with some other channel which also are 1080i but they fail to start after 20 sec, I have an active thread it here forums.plex.tv/discussion/306191/some-channels-fail-to-start-live-viewing-but-can-record-and-watch-after

did not think the problem would be related, but maby it is?

@sn00p said:

Does the video have image subtitles? Hardware transcoding on Synology hates them and you get the symptoms you are describing despite the cpu usage being low.

the stream does have what plex think is subtitles, but its actually text-tv like this picture, if i turn on subtitles it just cycles through some pages of that

kind regards Thun

Thun,

I have heard of that problem. I live in the US. Our television broadcast does not include those.

@OttoKerner or @Dane22 Can either of you, both being in the EU, shed some light here please?

@ChuckPA said:
I have heard of that problem. I live in the US. Our television broadcast does not include those.
@OttoKerner or @Dane22 Can either of you, both being in the EU, shed some light here please?

Teletext is one of 2 ways to bring subtitles and ‘closed captions’ to TVs in Europe.
Therefore Plex considers the teletext stream as a subtitle and activates it automatically.
However, Teletext has ~ 900 possible ‘pages’ and subtitles are only on one or two of these pages. The rest contains full screen info like shown in the screenshot above.

Ideally, Plex would need to discard all teletext content from the stream, except the ‘page’ that contains the subtitles.

The workaround for now is to disable the automatic stream selection
https://app.plex.tv/desktop#!/account/audio-subtitle
(which is not ideal, I know)

Downgrading will not help, but FWIW, Plex knows about this, and is working on a solution

Okay I’m home from work and at my PC again, not sure why my iPad would only post first line even though preview would show every thing. But again thx for helping.

It’s not the text-tv stream thats the problem, as @OttoKerner posted, you can turn off automatic subtitle selection and it fixes the problem with text-tv being showed insted of the video. I turned that off weeks ago. And many of the channels that broadcast in 720p also have that text-tv stream, and they play and transcode just fine live. So it should not be affecting the ability to transcode should it?

I’m beginning to think its related to the channels also in 1080i that will not play live, they fails playing after trying for 20 sec. But those same channels I can record and then they play and transcode just fine. I tried recording abit for the channel I’m having this problem transcode problem with, and the recording plays and transcode just fine also, so I think its related.

again the link to the other thread is here forums.plex.tv/discussion/306191/some-channels-fail-to-start-live-viewing-but-can-record-and-watch-after

About the subtitles in the text-tv stream, they are only used for hearing impaired people so they can get danish subtitle for danish language tv-shows / movies. All foreign language tv-shows and movies have hard-transcoded subtitles in the video stream, at least thats how it is in Denmark. So i don’t use them at all.

Kind regards Thun

I just realized that the channel I’m having the live tv transcode problem with, doesn’t even have that text-tv stream :smiley: so we can rule that out as the source of the problem.

Gonna close this and await the fix for the other problem as it might fix this one too