(Closed) Improve video decoder on Windows client

Post here your ideas on how to make TVMosaic product better
rbueeler
Posts: 35
Joined: Sat Feb 24, 2018 1:19 pm

(Closed) Improve video decoder on Windows client

Post by rbueeler » Tue Jun 19, 2018 7:32 pm

The video decoder on Windows does not make use of HW video acceleration. So as a result, when decoding HD program (H.264), the CPU is fully loaded on one CPU core and from time to time the video image hangs/stutters slightly. It is especially intermittent, when watching sports program.
I do not see such issues when using e.g. DVBViewer, which uses standard Windows decoder (and which makes use of HW acceleration). So I wonder if this would also be possible for DVBLink Windows client. In general I am not satisfied with the usability of the DVBLink Windows client, but stuttering video is the most annoying issue.

tehax
Posts: 23
Joined: Sat Mar 24, 2018 9:10 am

Re: Improve video decoder on Windows client

Post by tehax » Thu Jun 21, 2018 5:41 pm

+1

Montoya
Posts: 142
Joined: Mon Feb 26, 2018 9:07 am

Re: Improve video decoder on Windows client

Post by Montoya » Wed Jun 27, 2018 6:46 am

With the release of 4K H265 iptv channels of some iptv providers, this issue of not hardware video decoding in TVMosaic, makes TVMosaic not future proof.

Already got a handful of 4K H265 iptv channels which TVMosaic can’t handle on an i5-6500 and GTX1060 while VLC 3.x or MPV has no problems doing hardware video decoding by using the GPU ONLY for those 4K H265 iptv channels !

So please put this issue on your roadmap, because 2018 seems to be the year that 4K H265 channels is going mainstream with IPTV providers !
DVBLink server 6.0.0 build14499, DVBLink TVSource 6.0.0 build14061, DVBLink for IPTV build 13107
TVMosaic server build 16582, Kodi 18.0-BETA3 Git:20180910-65fee74469, Win10 Pro x64 1803 build17134.254

Oberon
Posts: 1037
Joined: Thu Jan 26, 2017 8:45 am

Re: Improve video decoder on Windows client

Post by Oberon » Mon Jul 02, 2018 8:27 am

There are several aspects here. It is not only hardware decoding, which is supported at the moment, by the way.
The factors that add to a high CPU usage are:
- partial hardware accelerated video decoding
- sw-based deinterlacing
- sw architecture, which is based on electron and is not optimized in certain places

We are looking into improving first and second points.

rbueeler
Posts: 35
Joined: Sat Feb 24, 2018 1:19 pm

Re: Improve video decoder on Windows client

Post by rbueeler » Mon Jul 02, 2018 10:35 am

Thanks for having a look at it.
It is not only hardware decoding, which is supported at the moment, by the way.
I tested on two different systems. One with Nvidia graphics card (GTX 1060Ti) and one with Intel iGPU (630UHD). With both systems the HW video decoding is not used. I do not see any activity in the "VideoDecode" graph within Taskmanager->Performance->GPU. When I watch TV using DVBViewer, there is activity inside this graph and CPU load is much lower (~factor 5). So for which graphics card you support HW video decoding?

Regarding de-interlacing: When there is progressive video and de-interlacing is enabled, is the video processed or not? Within my TV network, there are some channels with interlaced and some with progressive video, so I might need to switch every time the video format changes. I would prefer automatic processing (de-interlace is active on interlaced source only).

BTW: instead of electron, have you ever considered to use UWP for windows platform? I guess it would provide much better performance in regards of video processing and overall app performance.

Montoya
Posts: 142
Joined: Mon Feb 26, 2018 9:07 am

Re: Improve video decoder on Windows client

Post by Montoya » Mon Jul 02, 2018 8:53 pm

Oberon wrote:
Mon Jul 02, 2018 8:27 am
...
- sw architecture, which is based on electron and is not optimized in certain places
...
Emby Theater (not UWP version) uses Electron and MPV too and they play my 4K H265 iptv channels,feeded by TVMosaic m3u export, fine with NO CPU usage and only with hardware video decoding on graphics card, so if Emby Theater can do it with same tools, then TVMosaic should also be able to do it in the future. Looking at the logs generated by MPV in Emby Theater, should help you guys out solving this issue.
DVBLink server 6.0.0 build14499, DVBLink TVSource 6.0.0 build14061, DVBLink for IPTV build 13107
TVMosaic server build 16582, Kodi 18.0-BETA3 Git:20180910-65fee74469, Win10 Pro x64 1803 build17134.254

muppets4
Posts: 23
Joined: Sun Jun 03, 2018 9:12 pm

Re: Improve video decoder on Windows client

Post by muppets4 » Tue Jul 10, 2018 7:53 am

Montoya wrote:
Mon Jul 02, 2018 8:53 pm
Oberon wrote:
Mon Jul 02, 2018 8:27 am
...
- sw architecture, which is based on electron and is not optimized in certain places
...
Emby Theater (not UWP version) uses Electron and MPV too and they play my 4K H265 iptv channels,feeded by TVMosaic m3u export, fine with NO CPU usage and only with hardware video decoding on graphics card, so if Emby Theater can do it with same tools, then TVMosaic should also be able to do it in the future. Looking at the logs generated by MPV in Emby Theater, should help you guys out solving this issue.
I was going to say this too. Emby is working fine. The TV Mosaic client is not. Electron is not the problem here.

I have two system I use TV Mosaic on to watch. An i5-5250U with HD 6000 (Iris) and an i5-7200U with HD 620. Both capable of hardwaredecoding h264 without a sweat. The last one h265 too. No GPU is being used when playing video and it does not use all cpu cores. Like being said before.

Oberon
Posts: 1037
Joined: Thu Jan 26, 2017 8:45 am

Re: Improve video decoder on Windows client

Post by Oberon » Thu Jul 12, 2018 1:30 pm

That's a really tough one. It will not be present in the upcoming new build.
But we keep working on it. It just will take some more time.

muppets4
Posts: 23
Joined: Sun Jun 03, 2018 9:12 pm

Re: Improve video decoder on Windows client

Post by muppets4 » Wed Aug 08, 2018 3:14 pm

With the update of today all seems to play LOTS better. Getting good results on a i5-7200u right now, with CPU ranging between 25 and 45%! Thank you for this!

Oberon
Posts: 1037
Joined: Thu Jan 26, 2017 8:45 am

Re: Improve video decoder on Windows client

Post by Oberon » Wed Aug 08, 2018 3:21 pm

muppets4 wrote:
Wed Aug 08, 2018 3:14 pm
With the update of today all seems to play LOTS better. Getting good results on a i5-7200u right now, with CPU ranging between 25 and 45%! Thank you for this!
Thank you, of course, but I do not think there is anything included into this build that relates to video decoding performance :oops:
But I will double check with the team if they have included something without saying about it ;)

Post Reply