OpenPHT for Odroid C2 - Information and Tips

I’ve had my ODroid C2 for a few days now and it seems to be working very well. Definitely better than a Raspberry Pi 3 imo.

I have an Odroid c2 now for 2 months and it working great, only thing now is that the openPHT project seems to be dead. :-S

@samplex said:
I have an Odroid c2 now for 2 months and it working great, only thing now is that the openPHT project seems to be dead. :-S

Pretty dramatic.

https://forums.plex.tv/discussion/comment/1259247/#Comment_1259247

Hi everyone,

First off: Thanks for a wonderful Plex app that handles HEVC content beautifully. I recently switched from a Pi3 to the Odroid C2, and it feels like a great upgrade.

However, I’ve encountered a few minor problems I’m hoping someone might have a few tips for solving:

  1. I have to set an audio delay of 150 ms for the video and audio to sync up properly. However, when I set a global audio delay in the Preferences section, this setting seems to be ignored when I actually play content, so I have to repeat the audio delay setting whenever I start playback. Is there any reason why this global preference would be ignored?
  2. HDMI CEC control seems to randomly stop responding to my TV remote after 5–20 minutes. I didn’t encounter this problem using the Pi3. The Odroid is connected to the TV through an AV-receiver. It’ll work perfectly for a short while, and then subsequent keypresses are ignored. Audio control of the AV-receiver continues to work. If I go into the input settings, and change any random setting for the HDMI CEC input device using the iOS remote, then the TV remote starts working again for a new 5–20 minute period. I’ve added errors and warnings from the OpenPHT log file below that seem to be related the CEC functionality.
23:26:48 T:547504128000   ERROR: Keymapping error: no such action '-' defined
22:43:06 T:545501737280 WARNING: CCurlFile::FillBuffer [xxx-xxx-xxx-xxx.xxxxxxxxx.plex.direct:32400/?X-Plex-Token=SECRETSTUFF] failed: Timeout was reached  
22:43:06 T:547130175808   ERROR: CecLogMessage - Write: write failed !        
23:27:12 T:547130175808 WARNING: CecLogMessage - FIXME: LG seems to have bugged out. resetting to 'in transition standby to on'. the return button will not work

Additionally I see this error pop up repeatedly in the log file (seems unrelated):

19:12:02 T:545771221312   ERROR: Unable to load libamplayer.so, reason: libamplayer.so: cannot open shared object file: No such file or directory

As an aside, regarding this previous post:

@XxOsurfer3xX said:
When there is fast horizontal movement, I can see rendering issues around text […]
I also see such rendering issues, with flickering subtitles and small artefacts around the text.

Again, thanks for all your efforts in making OpenPHT :slight_smile:

I am wondering if the guys that package OpenPHT for Odroid could make a new build with the new LibreELEC, it seems it is running on Odroid C2 fine and fixes a lot of issues. Thanks guys for all the hard work!

@“Morten Andresen” said:

Hi everyone,

First off: Thanks for a wonderful Plex app that handles HEVC content beautifully. I recently switched from a Pi3 to the Odroid C2, and it feels like a great upgrade.

However, I’ve encountered a few minor problems I’m hoping someone might have a few tips for solving:

  1. I have to set an audio delay of 150 ms for the video and audio to sync up properly. However, when I set a global audio delay in the Preferences section, this setting seems to be ignored when I actually play content, so I have to repeat the audio delay setting whenever I start playback. Is there any reason why this global preference would be ignored?
  2. HDMI CEC control seems to randomly stop responding to my TV remote after 5–20 minutes. I didn’t encounter this problem using the Pi3. The Odroid is connected to the TV through an AV-receiver. It’ll work perfectly for a short while, and then subsequent keypresses are ignored. Audio control of the AV-receiver continues to work. If I go into the input settings, and change any random setting for the HDMI CEC input device using the iOS remote, then the TV remote starts working again for a new 5–20 minute period. I’ve added errors and warnings from the OpenPHT log file below that seem to be related the CEC functionality.
23:26:48 T:547504128000   ERROR: Keymapping error: no such action '-' defined
22:43:06 T:545501737280 WARNING: CCurlFile::FillBuffer [xxx-xxx-xxx-xxx.xxxxxxxxx.plex.direct:32400/?X-Plex-Token=SECRETSTUFF] failed: Timeout was reached  
22:43:06 T:547130175808   ERROR: CecLogMessage - Write: write failed !        
23:27:12 T:547130175808 WARNING: CecLogMessage - FIXME: LG seems to have bugged out. resetting to 'in transition standby to on'. the return button will not work

Additionally I see this error pop up repeatedly in the log file (seems unrelated):

19:12:02 T:545771221312   ERROR: Unable to load libamplayer.so, reason: libamplayer.so: cannot open shared object file: No such file or directory

As an aside, regarding this previous post:

@XxOsurfer3xX said:
When there is fast horizontal movement, I can see rendering issues around text […]
I also see such rendering issues, with flickering subtitles and small artefacts around the text.

Again, thanks for all your efforts in making OpenPHT :slight_smile:

I’m also having the same issue you’re experiencing on point 1 and 2.

@crital said:
I’m also having the same issue you’re experiencing on point 1 and 2.

I can add that regarding point 1 with the ignored audio delay setting that if I

  1. start a video,
  2. change the audio delay from the video overlay settings,
  3. select to save these settings for all videos from the same overlay screen

… then it seems to remember the delay setting for most(?) videos.

  1. HDMI CEC control seems to randomly stop responding to my TV remote after 5–20 minutes. I didn’t encounter this problem using the Pi3. The Odroid is connected to the TV through an AV-receiver. It’ll work perfectly for a short while, and then subsequent keypresses are ignored. Audio control of the AV-receiver continues to work. If I go into the input settings, and change any random setting for the HDMI CEC input device using the iOS remote, then the TV remote starts working again for a new 5–20 minute period. I’ve added errors and warnings from the OpenPHT log file below that seem to be related the CEC functionality.

+1 here, directly connected to an LG 4K TV. Pi3 with OpenPHT worked great. Other than that, I’m 100% golden with Odroid C2.

@crital said:
I’ve added errors and warnings from the OpenPHT log file below that seem to be related the CEC functionality.

Without one exception none of the messages is CEC related. And this CEC message can be normal. It depends on the context. A complete logfile is needed.

This kind of error reports don’t belong to this thread. Look at the thread topic. Start a new thread for this. I would have found it much earlier. I don’t need tips for using the Odroid C2 so I have no reason to read here.

Read here what you have to do to help diagnosing this type of error.
Gerald

Just got an odroid c2 and put OpenPHT on it. DTS-MA and TrueHD audio passes through without any issues! Yah!

With the default setting, I did ran into the following issues that did not occur with RasPlex on pi2.

  1. When I skip forward via ‘up’ key, either 10min or to next chapter, the a/v gets out of sync easily, especially if I skip forward a few times. I can see the video playing back in catching up mode [faster than usual], while audio seems to be already advanced. After a few seconds, it seems to catch up and av is in sync again.

  2. When I turn off the TV (panasonic plasma) and Receiver (yamaha preamp). odroid seems to turn off (blinking blue light is no longer blinking). Need to restart it next time I want to watch.

Comparing against the setting on rasplex on pi2, I noticed the following differences:

  • sync playback to display. pi2, default is ON. on odroid, default is OFF.
  • use ffmpeg avio for network transport: on pi2, default ON, on odroid, default OFF.

Turning ON both options, so it’s like the pi2 default, resolved the issue for me. skip forward no longer have any a/v syncing issues and seems to be much faster. My network are hard wired [gigabit], and plex server runs on an i7 machine. I am guessing the catching up could take longer on wifi…

If you are having av sync issues with the odroid c2, try turning on sync playback to display and ffmpeg avio to see if it improves.

Still working on #2 at the moment. Turned off CEC in system/input devices/peripheral, uncheck enable on CEC adapter. but it is still shutting down… did not experience any issues with pi2 using its default cec settings.

@agentplex007 said:
2) When I turn off the TV (panasonic plasma) and Receiver (yamaha preamp). odroid seems to turn off (blinking blue light is no longer blinking). Need to restart it next time I want to watch.

Still working on #2 at the moment. Turned off CEC in system/input devices/peripheral, uncheck enable on CEC adapter. but it is still shutting down… did not experience any issues with pi2 using its default cec settings.

Sounds like the built in IR sensor is responding to the power off signal. Have a look here: https://forums.plex.tv/discussion/244439/a-little-help-needed-with-odroid-c2#latest

@benjaminwolf said:
Sounds like the built in IR sensor is responding to the power off signal. Have a look here: https://forums.plex.tv/discussion/244439/a-little-help-needed-with-odroid-c2#latest

Ok figured it out. Again looks like it’s just the c2 build has the wrong default setting compare to pi2 build. In cec setting, it’s set to go into ‘suspend’ mode when TV is turned off. I changed it back to ‘ignore’, same as the default setting on pi2 build, and now everything is ok. after I turn off the TV, the blue light is still blinking.

For the next c2 release, I think we should change these default settings so others don’t have to spend time troubleshooting into this.

@agentplex007 said:

@benjaminwolf said:
Sounds like the built in IR sensor is responding to the power off signal. Have a look here: https://forums.plex.tv/discussion/244439/a-little-help-needed-with-odroid-c2#latest

Ok figured it out. Again looks like it’s just the c2 build has the wrong default setting compare to pi2 build. In cec setting, it’s set to go into ‘suspend’ mode when TV is turned off. I changed it back to ‘ignore’, same as the default setting on pi2 build, and now everything is ok. after I turn off the TV, the blue light is still blinking.

For the next c2 release, I think we should change these default settings so others don’t have to spend time troubleshooting into this.

I think the bigger issue is that disabling CEC in your first post should of solved the problem.

@benjaminwolf said:
I think the bigger issue is that disabling CEC in your first post should of solved the problem.

I spoke too soon, the issue is not resolved. With cec turned off, when I power off the TV, heartbeat light stops. With cec on, but set to ignore TV power off, the heart beat continues after I turn off the TV, BUT, the next day, even though the display shows a dimed PLEX client, I can’t wake it up. I tried both keyboard and IR remote.

The info on the IR is useful, I’ll do more troubleshooting in the coming days and see if I can find a solution.

@benjaminwolf said:
I think the bigger issue is that disabling CEC in your first post should of solved the problem.

This is the part that bugs me. With CEC turned off (in both boot.ini and inside PHT), the heartbeat light stops soon after I turn off the receiver (by physically push the power button on the receiver), even before I turn off the TV. No IR at this point. It won’t even respond on SSH port.

With CEC on, and set to ignore TV power off, it (almost) works. Last time I couldn’t wake up the PHT the next day (screen is dimmed). Today I turned off most of the check boxes in CEC, and it seems to have no problem waking up after 10 minutes with TV and receiver turned off in the mean time and screen saver kicked in. Screen was dim and responded to keypress and came back up. (Need to test this with a much longer off period to see if it really solved the issue).

So the part that doesn’t make sense is, with CEC turned off, why does the box shutdown when the receiver is turned off? Is there some hardware default that’s coming into play here?

@agentplex007 Try recreating the issues with debug on. Then post the log here so we can see what’s going on.

Looks like the issue is caused by the IR receiver! With it off, the c2 no longer shuts down and stays up with CEC on. It’s been 2 days and so far so good! Thanks everyone for the help!

@agentplex007
Interesting. Mine is the same. I assume that when the GPU kicks in, it’s stopping some idle OpenPHT tasks, but I’m not sure what that is.
> PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND

 355     1 root     S    2571m149.6   2  8.6 /usr/lib/plexht/plexhometheater --st

@benjaminwolf said:
@agentplex007
Interesting. Mine is the same. I assume that when the GPU kicks in, it’s stopping some idle OpenPHT tasks, but I’m not sure what that is.
> PID PPID USER STAT VSZ %VSZ CPU %CPU COMMAND

 355     1 root     S    2571m149.6   2  8.6 /usr/lib/plexht/plexhometheater --st

I misread top’s output. :slight_smile: CPU usage for plexhometheater at idle is around 2-3% from the %cpu column, which is pretty reasonable. I think the thing that throw me off was seeing a load average around 1.2+. For some reason I interpreted the %VSZ column as cpu usage. Not sure why load will be 1.2+ when nothing appears to be using the cpu.

The c2 is working really well now. Up for a few days now without any issues. My next task when I find some free time is to see if I can figure out a way to disable just the power off IR signal while leaving the rest of them on, as I did purchase a IR remote for the and it’ll be nice if I can use it.

Great about time (the hinge on my rock rusted close). . Time to blow the dust of my c2 and give it a play

and bring out the ux4 plex server