[PlexMediaPlayer 2.39.0] Include mpv player (command line)

Moderator: Lillian.W@AST

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

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

Post by father.mande »

Hi,

@Maerlin and @isewise

I am back to my lab (after a month of works (paints / electricity)) and put on my NAS again
I think I have discover a potential problem when calling H264 hardware decoder (thanks to Maerlin for trace)

I will try to build a patch for this ... after first tests on my own system ... I will post here a beta version for test (the only target is to suppress frame drop when playing H264 and other codecs supported by hardware acceleration (depend of each Intel I.G.P.).

Please wait and stay tuned

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

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

Post by Maerlin »

father.mande wrote:Hi,

@Maerlin and @isewise

I am back to my lab (after a month of works (paints / electricity)) and put on my NAS again
I think I have discover a potential problem when calling H264 hardware decoder (thanks to Maerlin for trace)

I will try to build a patch for this ... after first tests on my own system ... I will post here a beta version for test (the only target is to suppress frame drop when playing H264 and other codecs supported by hardware acceleration (depend of each Intel I.G.P.).

Please wait and stay tuned

Philippe.
Great:) thanks
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

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

Post by father.mande »

Hi,

To test the workaround immediately, please do :
Open a terminal (ssh) and use root / your_admin_password
then :
cd /usr/local/lib
ln -s /usr/local/AppCentral/xorg/lib/dri

It's all ... to confirm that vaapi is used for H264 hardware decoding do :
start pmp2
select a H264 video (or used a test file)
before starting it press "i" (letter i) on keyboard to have the debug information displaying under the menu
start the movies
ON LEFT column you can see Video paragraph and on last line if vaapi is used (normally vaapi-copy)

press i to suppress the debug ... continue to play the file and verify if frame droop always exist ...

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

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

Post by father.mande »

Hi,

Update of Plex Media Player 2 to v. 2.14.1

all (change-log and download link) is here : https://www.father-mande.ovh/phpBB3/vie ... 5&p=297#p5

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

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

Post by Maerlin »

father.mande wrote:Hi,

Update of Plex Media Player 2 to v. 2.14.1

all (change-log and download link) is here : https://www.father-mande.ovh/phpBB3/vie ... 5&p=297#p5

Philippe.
Dear Philippe,

It is working better now. Although I do not know why I had to deactivate Deinterlace to eliminate totally framedrops.

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

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

Post by father.mande »

Hi,

Update of Plex Media Player to v2.20.0 (sorry for the delay)

all (change-log and download link) is here : https://www.father-mande.ovh/phpBB3/vie ... 5&p=297#p5
OR
in first post of this topic.

Philippe.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
User avatar
Nazar78
Posts: 2004
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

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

Post by Nazar78 »

Hi Philippe,

I've been struggling for weeks to find a proper player for AS5304T (advertised as 4K h265 hevc 10bit capable???). Latest ADM 3.4.1.R7Q6, it has 8gb of ram configured with 40tb raid10. Have tried your latest myHD (Love it! I also have debian buster running my site in chroot) pmp and kodi builds but they stutter pretty badly playing 4K videos. For now I'm only limited to DLNA and it plays 4K h265 hevc 10bit 100mbps smoothly on my TV.

I would like to test this pmp 2.20.2 but your forum seems down "Due to the lack of activities on this forum, this one will close". Would it work on the AS5304T? Thanks in advance.
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

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

Post by father.mande »

Hi,
Nazar78 wrote:Hi Philippe,
I've been struggling for weeks to find a proper player for AS5304T (advertised as 4K h265 hevc 10bit capable???). Latest ADM 3.4.1.R7Q6, it has 8gb of ram configured with 40tb raid10. Have tried your latest myHD (Love it! I also have debian buster running my site in chroot) pmp and kodi builds but they stutter pretty badly playing 4K videos. For now I'm only limited to DLNA and it plays 4K h265 hevc 10bit 100mbps smoothly on my TV.
I would like to test this pmp 2.20.2 but your forum seems down "Due to the lack of activities on this forum, this one will close". Would it work on the AS5304T? Thanks in advance.
myHD also have a mpv / pmp version (pmp 2.36 ... new will come shortly) apkg is MH-pmp

Running 4k need a model supporting 4k (trivial but forgot by some people)
Running H265 hevc need that video acceleration AND graphic card support hardware acceleration
... Asustor provide libva 1.7
... myHD provide libva 2.1
to know what is possible ... enter in myHD (myHD_root) and use vainfo
ex. my model :

Code: Select all

[/volume1/.@root] # myHD_root "DISPLAY=:0 vainfo".
libva info: VA-API version 1.1.0
libva info: va_getDriverName() returns 0
libva info: Trying to open /usr/lib/x86_64-linux-gnu/dri/i965_drv_video.so
libva info: Found init function __vaDriverInit_1_1
libva info: va_openDriver() returns 0
vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Bay Trail - 2.1.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            : VAEntrypointVLD
      VAProfileMPEG2Simple            : VAEntrypointEncSlice
      VAProfileMPEG2Main              : VAEntrypointVLD
      VAProfileMPEG2Main              : VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline: VAEntrypointVLD
      VAProfileH264ConstrainedBaseline: VAEntrypointEncSlice
      VAProfileH264Main               : VAEntrypointVLD
      VAProfileH264Main               : VAEntrypointEncSlice
      VAProfileH264High               : VAEntrypointVLD
      VAProfileH264High               : VAEntrypointEncSlice
      VAProfileH264StereoHigh         : VAEntrypointVLD
      VAProfileVC1Simple              : VAEntrypointVLD
      VAProfileVC1Main                : VAEntrypointVLD
      VAProfileVC1Advanced            : VAEntrypointVLD
      VAProfileNone                   : VAEntrypointVideoProc
      VAProfileJPEGBaseline           : VAEntrypointVLD
[/volume1/.@root] #
With this command you can list the hardware accelerated supported by your model / I.G.P. (mine not support any H265 HEVC hardware decoding)
NOW IMPORTANT
... supporting hardware acceleration for HEVC is NOT ENOUGH
... it's the profile that determine real capabilties
... main profile (common) is ONLY for 8 bits ... you need high profile "Main 10" or "Main 12"
... ... to complicate the problem now some profile exist (so corresponding encoding method) including "Chroma subsampling" ...
... ... ex. Main 4:2:2 10 etc. etc.

So please provide vainfo result to check hardware capabilities BUT myHD can support (if hardware do) profile for 4k movies ... I can't test because I own only ONE model AS5002T (relatively old ... )

Philippe.
NB myHD is also a sort of chroot but isolated (private IPC, mount and PID) sharing only network to be able to use Xorg provide by Asustor and network access
myHD companion APKG like MH-pmp or MH-kodi18 are only "launcher" in Asportal to keep same visibility for the user
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
User avatar
Nazar78
Posts: 2004
Joined: Wed Jul 17, 2019 10:21 pm
Location: Singapore
Contact:

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

Post by Nazar78 »

Hi Philippe,

Thanks for replying. Below is the vainfo output:

Code: Select all

vainfo: VA-API version: 1.1 (libva 2.1.0)
vainfo: Driver version: Intel i965 driver for Intel(R) Gemini Lake - 2.1.0
vainfo: Supported profile and entrypoints
      VAProfileMPEG2Simple            :	VAEntrypointVLD
      VAProfileMPEG2Main              :	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointVLD
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSlice
      VAProfileH264ConstrainedBaseline:	VAEntrypointEncSliceLP
      VAProfileH264Main               :	VAEntrypointVLD
      VAProfileH264Main               :	VAEntrypointEncSlice
      VAProfileH264Main               :	VAEntrypointEncSliceLP
      VAProfileH264High               :	VAEntrypointVLD
      VAProfileH264High               :	VAEntrypointEncSlice
      VAProfileH264High               :	VAEntrypointEncSliceLP
      VAProfileH264MultiviewHigh      :	VAEntrypointVLD
      VAProfileH264MultiviewHigh      :	VAEntrypointEncSlice
      VAProfileH264StereoHigh         :	VAEntrypointVLD
      VAProfileH264StereoHigh         :	VAEntrypointEncSlice
      VAProfileVC1Simple              :	VAEntrypointVLD
      VAProfileVC1Main                :	VAEntrypointVLD
      VAProfileVC1Advanced            :	VAEntrypointVLD
      VAProfileNone                   :	VAEntrypointVideoProc
      VAProfileJPEGBaseline           :	VAEntrypointVLD
      VAProfileJPEGBaseline           :	VAEntrypointEncPicture
      VAProfileVP8Version0_3          :	VAEntrypointVLD
      VAProfileVP8Version0_3          :	VAEntrypointEncSlice
      VAProfileHEVCMain               :	VAEntrypointVLD
      VAProfileHEVCMain               :	VAEntrypointEncSlice
      VAProfileHEVCMain10             :	VAEntrypointVLD
      VAProfileHEVCMain10             :	VAEntrypointEncSlice
      VAProfileVP9Profile0            :	VAEntrypointVLD
      VAProfileVP9Profile0            :	VAEntrypointEncSlice
      VAProfileVP9Profile2            :	VAEntrypointVLD
AS5304T - 16GB DDR4 - ADM-OS modded on 2GB RAM
Internal:
- 4x10TB Toshiba RAID10 Ext4-Journal=Off
External 5 Bay USB3:
- 4x2TB Seagate modded RAID0 Btrfs-Compression
- 480GB Intel SSD for modded dm-cache (initramfs auto update patch) and Apps

When posting, consider checking the box "Notify me when a reply is posted" to get faster response
User avatar
father.mande
Posts: 1810
Joined: Sat Sep 12, 2015 2:55 am
Location: La Rochelle (France)

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

Post by father.mande »

Hi,
response of vainfo is clear ...
your hardware (Graphic card) and driver ... support HEVC (H265) in 8 bits (main) and in 10 bits (main10)

So Basic Linux Software is able to play with hardware acceleration your video ... so the others points as usual are :
... be sure to have enough memory (H265 is a little eater of memory)
... be sure to have a correct disk throughput (also linked to memory for caching)
... be sure to don't have a processor eater task (for ex. be attention to Syncthing if you have large synchronization folder, etc. etc.)

Second point is external ... HDMI cable used 1.4+ better 2.0, length of cable ... the power provide by HDMI plug on some series is low ... so short is the cable best is the result

Last point is configuration application
... always verify that EDID response is correct and managed correctly by the kernel (so Asustor)
... ... read EDID in myHD using get-edid | parse-edid (package read-edid if not installed ... always installed in my system but I don't remember if it's in delivery :roll: )
... ... use xranrd etc. to be sure correct resolution is used (for some application, you need to start the movie to get xrandr due to change in resolution)
... ... be sure hardware acceleration is enable in application (ex. by default not in P.M.P.)
... eventually add log in Asustor Xorg (default /dev/null) to get information
not related, but for sound also get EDID extended response (audio) in /proc/asound/.... to eldxxxx files

Good luck.
Philippe.
Last edited by father.mande on Sat Aug 10, 2019 1:03 am, edited 1 time in total.
AS6602T / AS5202T /AS5002T / AS1002T / FS6706T
Post Reply

Return to “PMP (PlexMediaPlayer)”