[PlexMediaPlayer 2.39.0] Include mpv player (command line)

Moderator: Lillian.W@AST

Post Reply
User avatar
father.mande
Posts: 1817
youtube meble na wymiar Warszawa
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [PlexMediaPlayer 2.8.0] Open to ALL USERS

Post by father.mande »

Hi Data_Dan,

THANKS for the feedback :D :D ... I don't have an AVR so it's so difficult for me to try and help ...

AND you are TRUE ... I forgot :roll: to write that the best is to restart plexmediaplayer ... when important configuration (audio / video) are changed ... why ... it's due to the load method use for MPV libraries done at start of PMP.

Again lot of thanks to share your experience. Your (and other users) help is very important to try to obtain the best ...

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Data_Dan
Posts: 57
Joined: Sat Aug 01, 2015 12:27 am

Re: [PlexMediaPlayer 2.8.0] Open to ALL USERS

Post by Data_Dan »

Oops, I found another bug. Unfortunately I get no sound with mp3 files with a sample rate of 44100 hz with the above settings. Only files with a sample rate of 48khz work which is not the norm! If I switch back to alsa they all playback fine in stereo!
User avatar
father.mande
Posts: 1817
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [PlexMediaPlayer 2.8.0] Open to ALL USERS

Post by father.mande »

Hi,
Data_Dan wrote:Oops, I found another bug. Unfortunately I get no sound with mp3 files with a sample rate of 44100 hz with the above settings. Only files with a sample rate of 48khz work which is not the norm! If I switch back to alsa they all playback fine in stereo!
Did you have a sample ? or the file or a test file with corresponding problem ? (I can test in few time ... because I don't have sound (screen problem) for the moment ... )
Perhaps you can put a message on Plex forum or Plex media player github issues ...

And you write "back to alsa" ... but if I read your .conf file you are already using ALSA ???

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
User avatar
father.mande
Posts: 1817
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [PlexMediaPlayer 2.9.0] Include mpv player (command line)

Post by father.mande »

Hi,

Please find in first post URL to update Plex Media Player 2 to version 2.9.0

2.9.0 (due to a screen problem ... tested without sound ... sorry)
... after tests return to convergence ... libva build is 0.4000 ... but no error using libva 0.3903 (Asustor) ... require only libva 0.33
... APKG news :
... ... change mpv folder to mpv2 to avoid confusion with pmp1
... ... so launching manually mpv is now /opt/mpv2/bin/mpv --options ... when before it's /opt/mpv/bin/mpv (important to run tests to identify if a problem come from PMP or from MPV lib
Plex Media Player v2.9.0 is now available to all macOS and Windows users.
ADDED:
Desktop web-client updated to 3.47.1
Added automatic fallback to transcode if direct playing music fails
Updated translations
FIXED:
Fixed an issue that prevented toggling between timed and untimed lyrics
Fixed library lists sometimes not scrolling to the end correctly
Fixed the dashboard type list sometimes not scrolling to the end correctly
Don't show the library list if there are no libraries available
Fixed a rare bug that could cause pointer-only UI elements to appear while not controlling the app with a pointer
Fixed an issue with news tags sometimes appearing offscreen
Fixed an issue where going to an empty recording schedule page would make the application unresponsive to input
Fixed UI sounds
Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Data_Dan
Posts: 57
Joined: Sat Aug 01, 2015 12:27 am

Re: [PlexMediaPlayer 2.8.0] Open to ALL USERS

Post by Data_Dan »

father.mande wrote:Hi,

Did you have a sample ? or the file or a test file with corresponding problem ? (I can test in few time ... because I don't have sound (screen problem) for the moment ... )
Perhaps you can put a message on Plex forum or Plex media player github issues ...

And you write "back to alsa" ... but if I read your .conf file you are already using ALSA ???

Philippe.
I tried to upload the mp3 files but it didn't work. Maybe there is a file size limit.
In this configuration (HDMI1) I can playback multichannel in PCM but only 48000hz mp3 files

Code: Select all

"audio": {
            "allowAC3": false,
            "allowDCA": false,
            "allowEAC3": false,
            "allowTrueHD": false,
            "audioBoost": 100,
            "channels": "7.1,5.1,2.0",
            "device": "alsa/hdmi:CARD=HDMI,DEV=1",
            "devicetype": "hdmi",
            "exclusive": false,
            "normalize": false,
            "passthrough.ac3": false,
            "passthrough.dts": false,
            "passthrough.dts-hd": false,
            "passthrough.eac3": false,
            "passthrough.truehd": false
In this configuration (alsa) I get stereo playback on all multichannel files (DTS, AC3, EAC3, etc..) but both 44100hz and 48000hz samples playback

Code: Select all

"audio": {
            "allowAC3": false,
            "allowDCA": false,
            "allowEAC3": false,
            "allowTrueHD": false,
            "audioBoost": 100,
            "channels": "7.1,5.1,2.0",
            "device": "alsa",
            "devicetype": "hdmi",
            "exclusive": false,
            "normalize": false,
            "passthrough.ac3": false,
            "passthrough.dts": false,
            "passthrough.dts-hd": false,
            "passthrough.eac3": false,
            "passthrough.truehd": false
Data_Dan
Posts: 57
Joined: Sat Aug 01, 2015 12:27 am

Re: [PlexMediaPlayer 2.9.0] Include mpv player (command line)

Post by Data_Dan »

In version 2.90 passthrough is now working for all multichannel titles in this configuration,
},
"audio": {
"allowAC3": false,
"allowDCA": false,
"allowEAC3": false,
"allowTrueHD": false,
"audioBoost": 100,
"channels": "7.1,5.1,2.0",
"device": "alsa/hdmi:CARD=HDMI,DEV=1",
"devicetype": "hdmi",
"exclusive": false,
"normalize": true,
"passthrough.ac3": true,
"passthrough.dts": true,
"passthrough.dts-hd": true,
"passthrough.eac3": true,
"passthrough.truehd": true

But mp3 files with a sample rate of 44100hz still don't work.
krazed0451
Posts: 3
Joined: Wed Jun 29, 2016 6:41 pm

Re: [PlexMediaPlayer 2.9.0] Include mpv player (command line)

Post by krazed0451 »

Has anyone tried updating to the latest ADM, any issues?
Maerlin
Posts: 21
Joined: Fri Mar 10, 2017 5:37 am

Re: [PlexMediaPlayer 2.9.0] Include mpv player (command line)

Post by Maerlin »

Hi everyone, and thanks Philippe for your wonderful work.

I've been trying this pmp 2.9 on my AS5002t, as very soon Kodi will disappear...
I'm experiencing lots of framedrops on pretty much every video files I play. PMP is in direct play as they are stored on the very same hard drive, CPU usage is high but not 100%. Same result or even worse with PMP 1.3.
I have no issue using Kodi, or streaming to other Plex media player in my local network (PS3, PS4, Android or casting to Chromecast).

With OpenPHT no issue as well, files are playing smooth.
Didn't have time yet to go deep inside the logs. Has anyone experienced the same kind of problem?

Thanks.
User avatar
father.mande
Posts: 1817
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

Re: [PlexMediaPlayer 2.9.0] Include mpv player (command line)

Post by father.mande »

Hi,
Maerlin wrote:Hi everyone, and thanks Philippe for your wonderful work.
I've been trying this pmp 2.9 on my AS5002t, as very soon Kodi will disappear...
I'm experiencing lots of framedrops on pretty much every video files I play. PMP is in direct play as they are stored on the very same hard drive, CPU usage is high but not 100%. Same result or even worse with PMP 1.3.
I have no issue using Kodi, or streaming to other Plex media player in my local network (PS3, PS4, Android or casting to Chromecast).
With OpenPHT no issue as well, files are playing smooth.
Didn't have time yet to go deep inside the logs. Has anyone experienced the same kind of problem?
Thanks.
I can't have this kind of problem on my own AS5002T ...
PMP (1 or 2) use another player than Kodi or OpenPHT (OpenPHT as PHT from Plex) are more a skin on Kodi / Xbmc (even Kodi / Xbmc is hidden and not accessible) ... so they share the Kodi player and the settings
PMP use MPV a library (and a command line client) based on ffmpeg and embedded in PlexMediaPlayer ...

The settings for PMP is totally different of the setting of Kodi / OpenPHT ... and PMP always use network to access the PMS Plex Media Server) that really manage the files / movies / Music
So please check and provide here your settings (file) and be sure to have correct sync and hardware acceleration set ...
check also your network to don't have any risk of loop or access restrictions ...
... for the local server (if you have one) an option is to set it as a manual server on loopback interface. to compare the performance.

Also be sure that the server don't use trans coding ... because in some case the software re-encoding drastically low the server ... if PMS is not configured (and ADM) to use hardware encoding
here a link for PMS hardware and software encoding capabilities for NAS (lot of major Brand including Asustor) : https://tinyurl.com/n7yetnr

So, please provide :
setting file
log file
detail on movie you want to play (in the log just before) all codecs / containers / profile (ex. for HEVC)

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Maerlin
Posts: 21
Joined: Fri Mar 10, 2017 5:37 am

Re: [PlexMediaPlayer 2.9.0] Include mpv player (command line)

Post by Maerlin »

father.mande wrote:Hi,

I can't have this kind of problem on my own AS5002T ...
PMP (1 or 2) use another player than Kodi or OpenPHT (OpenPHT as PHT from Plex) are more a skin on Kodi / Xbmc (even Kodi / Xbmc is hidden and not accessible) ... so they share the Kodi player and the settings
PMP use MPV a library (and a command line client) based on ffmpeg and embedded in PlexMediaPlayer ...

The settings for PMP is totally different of the setting of Kodi / OpenPHT ... and PMP always use network to access the PMS Plex Media Server) that really manage the files / movies / Music
So please check and provide here your settings (file) and be sure to have correct sync and hardware acceleration set ...
check also your network to don't have any risk of loop or access restrictions ...
... for the local server (if you have one) an option is to set it as a manual server on loopback interface. to compare the performance.

Also be sure that the server don't use trans coding ... because in some case the software re-encoding drastically low the server ... if PMS is not configured (and ADM) to use hardware encoding
here a link for PMS hardware and software encoding capabilities for NAS (lot of major Brand including Asustor) : https://tinyurl.com/n7yetnr

So, please provide :
setting file
log file
detail on movie you want to play (in the log just before) all codecs / containers / profile (ex. for HEVC)

Philippe.
Thanks Philippe,

I attached a zip file with logs & various files info & screenshots.
While playing the file, CPU, RAM and NETWORK occupation are very low, so I think it's OK from there.
Media file is classic, I put a media info output. It's a 1080p h264 mkv.

My hardware is a AS5002T like you, with 1GB RAM and 2x3TB RAID1 HDD.

In pmp logs I can see this kind of lines:

Code: Select all

2018-05-05 10:34:50 [ INFO  ] PlayerComponent.cpp @ 455 - Entering state: playing 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - libmpv_render: Window size: 1920x1080 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - libmpv_render: Video source: 1920x816 (1:1) 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - libmpv_render: Video display: (0, 0) 1920x816 -> (0, 132) 1920x816 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - libmpv_render: Video scale: 1.000000/1.000000 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - libmpv_render: OSD borders: l=0 t=132 r=0 b=132 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - libmpv_render: Video borders: l=0 t=132 r=0 b=132 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - libmpv_render: Texture for plane 0: 1920x816 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - libmpv_render: Texture for plane 1: 960x408 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - libmpv_render: Testing FBO format rgba16 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - libmpv_render: Using FBO format rgba16. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - libmpv_render: No advanced processing required. Enabling dumb mode. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_report_swap() not being called. 
2018-05-05 10:35:00 [ WARN  ] PlayerComponent.cpp @ 591 - cplayer:  
2018-05-05 10:35:00 [ WARN  ] PlayerComponent.cpp @ 591 - cplayer: Audio/Video desynchronisation detected! Possible reasons include too slow 
2018-05-05 10:35:00 [ WARN  ] PlayerComponent.cpp @ 591 - cplayer: hardware, temporary CPU spikes, broken drivers, and broken files. Audio 
2018-05-05 10:35:00 [ WARN  ] PlayerComponent.cpp @ 591 - cplayer: position will not match to the video (see A-V status field). 
2018-05-05 10:35:00 [ WARN  ] PlayerComponent.cpp @ 591 - cplayer:  
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ ERROR ] PlayerComponent.cpp @ 593 - ao/null: buffer underrun 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:00 [ DEBUG ] PlayerComponent.cpp @ 587 - vo/opengl-cb: mpv_render_context_render() not being called or stuck. 
2018-05-05 10:35:06 [ ERROR ] PlayerComponent.cpp @ 593 - ao/null: buffer underrun 
Thanks for your time!!
Attachments
pmp2.zip
(812.34 KiB) Downloaded 435 times
Post Reply

Return to “PMP (PlexMediaPlayer)”