Kodi Community Forum
Linux VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Support (https://forum.kodi.tv/forumdisplay.php?fid=33)
+--- Forum: General Support (https://forum.kodi.tv/forumdisplay.php?fid=111)
+---- Forum: Linux (https://forum.kodi.tv/forumdisplay.php?fid=52)
+---- Thread: Linux VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 (/showthread.php?tid=165707)



RE: VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - wsnipex - 2015-05-08

(2015-05-08, 10:12)gurabli Wrote:
(2015-05-08, 09:34)fritsch Wrote: Concerning Vivid I answered all those questions two pages back.

No idea - did not see any BRW news yet, sadly.

Here: http://forum.kodi.tv/showthread.php?tid=165707&pid=1990573#pid1990573 (it needs special care for suspend / shutdown options, though) - minimal update instructions is three pages back.

Vivid: sorry, my mistake, I'm doing ten things at a time and missed this. Excellent, will look into this.

BRW: I hope there will be some news really soon. Do you plan to get a BRW board once it is released and test who it will perform?

hardware donations are always welcome Wink


RE: VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - fritsch - 2015-05-08

Yeah - need to pay my house. As wsnipex said: hw donations are always welcome :-)


RE: VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - gurabli - 2015-05-08

OK, I got the pointSmile I'm sure if the BRW board turn out fine, it will not be a problem for this excellent community!


RE: VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - mattlach - 2015-05-11

Does anyone else get weird artifacts when using VAAPI Motion Compensated or Motion Adaptive deinterlacing modes?

I get large portions of the image jumping around, but not always.

I'm wondering if maybe I'm just pushing the Intel HD GPU in the little 2955u too hard, and if maybe a i3-4010u with HD4400 GPU would have been a safer choice.

Or maybe it just has to do with the quality of video (this one is coming from a particularly low quality SD cable tuner TV source, via the MythTV PVR plugin.)


RE: VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - noggin - 2015-05-11

No - running MCDI VAAPI on a 2955u Chromebox with Freeview SD 576i and HD 1080i content, and Freesat HD 1080i stuff. No odd artefacts, even with the Freeview HD hybrid 25p/50i dynamic encoder switching.


RE: VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - mattlach - 2015-05-11

(2015-05-11, 22:17)noggin Wrote: No - running MCDI VAAPI on a 2955u Chromebox with Freeview SD 576i and HD 1080i content, and Freesat HD 1080i stuff. No odd artefacts.

Good to know. Thank you. it might just be the terrible video quality of Globo Internacional that is doing it then... Sad

If I may ask, which scaler do you use?

I've been playing around with the ones fritsch mentioned in the first page, and can't seem to decide which one I like best for the chromebox. Lanczos3 of course looks great, but the differences are minor to my eyes.

One downside with Lanczos 3 I have found is that on the Chromebox it can load the unit enough to kick the fan into an audible rpm, which is a little annoying. Though, this hasn't happened in a little bit, so I wonder if the fan settings were updated the last time I updated SeaBIOS.

I wish SeaBIOS were more configurable, and I could make my own fan profile. It's often blowing audibly at ~65C, which is silly considering the Intel Tmax is 100C.

I tried installing fancontrol in linux, but the setup unfortunately doesn't detect any PWM fans, so the Chromebox must use some non-standard application compared to Desktops there.

--Matt


RE: VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - mattlach - 2015-05-12

(2015-05-11, 22:17)noggin Wrote: No - running MCDI VAAPI on a 2955u Chromebox with Freeview SD 576i and HD 1080i content, and Freesat HD 1080i stuff. No odd artefacts, even with the Freeview HD hybrid 25p/50i dynamic encoder switching.

Did some more testing, looks like the problem (for me) is with the auto deinterlace setting.

Not sure why, but if I had to guess it is confused as to whether deintrrlacing is needed or not and keeps turning it on and off and when it does it skips.

Surprisingly it is on very clearly progressive content that does not require deinterlacing.

If I set deinterlace to off it looks good.

It is on 1080 content. Not sure how to get stream details, so I don't know the frame rate, but if I had to guess its 1080p30 as I don't see any interlacing with deinterlacing set to "off"


EDIT:

Actually I take that back. It's 1080i content. It is interlaced, and looks much better with deinterlace forced ON than it does with it forced OFF, but either one looks better than "auto" which causes major skipping and jumping of the video content.

If I had to guess this is because the interlacing is slight and tough to pick up on, but I am not sure.

Again, this is from live TV content coming from the MythTV PVR plugin.

Is there any way to set groups so that it remembers settings for them all, or is it "remember for all channels" or nothing.

Would be nice if I could program it to use interlacing for all MythTV content, and turn it off for all other content, as nothing else should be interlaced.


RE: VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - fritsch - 2015-05-12

Provide a Debug Log and the very best would be a sample of this stream that shows the issue.

If you can replace the backend to VDR and use VNSI and retest.


RE: VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - wsnipex - 2015-05-12

(2015-05-11, 22:32)mattlach Wrote:
(2015-05-11, 22:17)noggin Wrote: No - running MCDI VAAPI on a 2955u Chromebox with Freeview SD 576i and HD 1080i content, and Freesat HD 1080i stuff. No odd artefacts.

Good to know. Thank you. it might just be the terrible video quality of Globo Internacional that is doing it then... Sad

If I may ask, which scaler do you use?

I've been playing around with the ones fritsch mentioned in the first page, and can't seem to decide which one I like best for the chromebox. Lanczos3 of course looks great, but the differences are minor to my eyes.

One downside with Lanczos 3 I have found is that on the Chromebox it can load the unit enough to kick the fan into an audible rpm, which is a little annoying. Though, this hasn't happened in a little bit, so I wonder if the fan settings were updated the last time I updated SeaBIOS.

I wish SeaBIOS were more configurable, and I could make my own fan profile. It's often blowing audibly at ~65C, which is silly considering the Intel Tmax is 100C.

I tried installing fancontrol in linux, but the setup unfortunately doesn't detect any PWM fans, so the Chromebox must use some non-standard application compared to Desktops there.

--Matt

did you install lm-sensors?


RE: VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - mattlach - 2015-05-12

(2015-05-12, 09:23)wsnipex Wrote:
(2015-05-11, 22:32)mattlach Wrote: One downside with Lanczos 3 I have found is that on the Chromebox it can load the unit enough to kick the fan into an audible rpm, which is a little annoying. Though, this hasn't happened in a little bit, so I wonder if the fan settings were updated the last time I updated SeaBIOS.

I wish SeaBIOS were more configurable, and I could make my own fan profile. It's often blowing audibly at ~65C, which is silly considering the Intel Tmax is 100C.

I tried installing fancontrol in linux, but the setup unfortunately doesn't detect any PWM fans, so the Chromebox must use some non-standard application compared to Desktops there.

--Matt

did you install lm-sensors?

yes, lm-sensors and fancontrol are both installed. Have also run sensors-detect as root.

(2015-05-12, 08:21)fritsch Wrote: Provide a Debug Log and the very best would be a sample of this stream that shows the issue.

If you can replace the backend to VDR and use VNSI and retest.

Of course! Just wanted to ask first, in case it is a simple known issue.

Next step is to post debug log, and figure out how to share a HD video example stream (dropbox maybe?) for testing.

Thanks,
Matt


RE: VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - mattlach - 2015-05-14

(2015-05-12, 08:21)fritsch Wrote: Provide a Debug Log and the very best would be a sample of this stream that shows the issue.

If you can replace the backend to VDR and use VNSI and retest.

fritsch,

Here is the kodi.log file and sample video stream requested.

Some details:

Hardware:
Asus Chromebox
Haswell Celeron 2955u dual core 1.4ghz, no HT
2GB ram, single channel

OS:
Ubuntu Linux 15.04 (Vivid) Server Edition (couldn't find a mini install iso for Vivid)

Software:
Latest Kodi from stable repo, installed per 15.04 instructions earlier in this thread. No window manager running. Kodi is a session.

Problem:
Visual artifacting during playback only with deinterlace set to "Auto", exhibited as skips or jumps. Artifacting goes away when played with deinterlace "on" or "off"

The stream was originally played using Janbar's MythTV plugin, but for the purpose of this test I manually extracted the mpeg file from the backend and dumped it into a library folder and played it from there, to minimize any plugin variables.

In this particular clip the worst instances are during ads (great opportunity for you to experience some stupid american car ads :p ), but this happens across many channels during normal playback, not just ads.

The log file consists of me booting the system, playing the file, followed by turning off debug logging.

Worth noting: During playback I noticed that the fps readout on the top of the screen (the one that appears when you enable debug logging) was fluctuating. Sometimes it was 59fps, sometimes 24fps. The video file claims to me 30fps, but I don't recall seeing this number at the top of the screen at all.

Appreciate the help!

--Matt


RE: VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - glubbish - 2015-05-14

Hi,

I followed the instructions on page 1, but have found that at times the video hangs (audio continues) and I cannot do anything but reboot.

Files:
derek@kodi:~$ dmesg | pastebinit
http://paste.ubuntu.com/11122770/

derek@kodi:~$ cat ~/.kodi/temp/kodi.log | pastebinit
http://paste.ubuntu.com/11122771/

derek@kodi:~$ cat /var/log/Xorg.0.log | pastebinit
http://paste.ubuntu.com/11122782/

derek@kodi:~$ DISPLAY=:0 vainfo | pastebinit
libva info: VA-API version 0.37.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_0_37
libva info: va_openDriver() returns 0
http://paste.ubuntu.com/11122798/

derek@kodi:~$ dpkg -l |grep mesa | pastebinit
http://paste.ubuntu.com/11122800/

derek@kodi:~$ id | pastebinit
http://paste.ubuntu.com/11122801/

derek@kodi:~$ aplay -L | pastebinit
http://paste.ubuntu.com/11122803/

Thanks


RE: VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - fritsch - 2015-05-14

@glubbish: Not a Debug Log, Mythtv spitting out errors like hell ... Can you reproduce without mythtv? Furthermore, disable the imon device for testing and every plugin you don't need.

Quote:[ 0.425926] vesafb: mode is 1920x1080x32, linelength=7680, pages=0
[ 0.425927] vesafb: scrolling: redraw
[ 0.425928] vesafb: Truecolor: size=8:8:8:8, shift=24:16:8:0
[ 0.425942] vesafb: framebuffer at 0xe0000000, mapped to 0xffffc90004e80000, using 8128k, total 8128k
[ 0.528365] Console: switching to colour frame buffer device 240x67

You force vesafb? Why - this interfers heavily with intel's kms

You also have pulseaudio installed that the howto does not suggest, but should not matter.

For the real error, wherever it comes from:

Quote:11:59:32 T:140103409121024 ERROR: OutputPicture - failed to configure renderer
11:59:32 T:140103409121024 NOTICE: fps: 23.976024, pwidth: 1280, pheight: 720, dwidth: 1280, dheight: 720
11:59:32 T:140103392335616 WARNING: CDVDMessageQueue(audio)::Get - asked for new data packet, with nothing available
11:59:37 T:140103409121024 WARNING: CRenderManager::Configure - timeout waiting for state
11:59:37 T:140103409121024 ERROR: OutputPicture - failed to configure renderer
11:59:37 T:140103409121024 NOTICE: fps: 23.976024, pwidth: 1280, pheight: 720, dwidth: 1280, dheight: 720

It is fully stuck waiting for the render to get displayed for 5(!) seconds, but it does not happen, render is stuck.

As 3.18.4 is now also some monthts old, install latest 3.19.x kernel, please.


RE: VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - fritsch - 2015-05-14

(2015-05-14, 02:24)mattlach Wrote:
(2015-05-12, 08:21)fritsch Wrote: Provide a Debug Log and the very best would be a sample of this stream that shows the issue.

If you can replace the backend to VDR and use VNSI and retest.

fritsch,

Here is the kodi.log file and sample video stream requested.

Some details:

Hardware:
Asus Chromebox
Haswell Celeron 2955u dual core 1.4ghz, no HT
2GB ram, single channel

OS:
Ubuntu Linux 15.04 (Vivid) Server Edition (couldn't find a mini install iso for Vivid)

Software:
Latest Kodi from stable repo, installed per 15.04 instructions earlier in this thread. No window manager running. Kodi is a session.

Problem:
Visual artifacting during playback only with deinterlace set to "Auto", exhibited as skips or jumps. Artifacting goes away when played with deinterlace "on" or "off"

The stream was originally played using Janbar's MythTV plugin, but for the purpose of this test I manually extracted the mpeg file from the backend and dumped it into a library folder and played it from there, to minimize any plugin variables.

In this particular clip the worst instances are during ads (great opportunity for you to experience some stupid american car ads :p ), but this happens across many channels during normal playback, not just ads.

The log file consists of me booting the system, playing the file, followed by turning off debug logging.

Worth noting: During playback I noticed that the fps readout on the top of the screen (the one that appears when you enable debug logging) was fluctuating. Sometimes it was 59fps, sometimes 24fps. The video file claims to me 30fps, but I don't recall seeing this number at the top of the screen at all.

Appreciate the help!

--Matt

The stream seems to change during commercials from interlaced to progressive? E.g. from 29.97i to 24 fps - which is somehow typical for some TV stations arround the world. We don't have a solution for this yet - sadly. The artifacts you see is reconfiguring the Renderer, which gets flushed and then reconfigured.


RE: VAAPI: Nuc, Chromebox, HSW, IVB, Baytrail with Ubuntu 14.04 - glubbish - 2015-05-14

HI fritsch,

Thanks for the reply.
Sorry but I am a neophyte as far as linux goes.

I did:
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.19.8-vivid/linux-headers-3.19.8-031908-generic_3.19.8-031908.201505110938_amd64.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.19.8-vivid/linux-headers-3.19.8-031908_3.19.8-031908.201505110938_all.deb
wget http://kernel.ubuntu.com/~kernel-ppa/mainline/v3.19.8-vivid/linux-image-3.19.8-031908-generic_3.19.8-031908.201505110938_amd64.deb
sudo dpkg -i *3.19.8*deb

I am not forcing vesafb by design I have no idea why this driver is being used.

Edit: link to:
http://paste.ubuntu.com/11125541/


Thanks.