Kodi Community Forum
How to Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs - 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: How to Install XBMC PVR Xvba for AMD/Nvidia/Intel GPUs (/showthread.php?tid=116996)



RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - alexandervdm - 2012-11-13

After years of service I finally retired my Xbox and build a modest HTPC to serve as my new XBMC box. Unfortunately the transition isn't as smooth as I would have liked. I'm experiencing (minor) choppy playback, especially noticable during panning shots. After a day of debugging, I hope someone can provide some clue on where to look next.

My system:
Asrock E350M1 with an AMD Fusion E350 1.8Ghz
4 Gb of Memory, 512mb shared with onboard Radeon HD6310
Old PAL 16:9 TV connected via a VGA-to-SVIDEO converter

My software:
Gentoo Linux with 3.5.7 (gentoo) and 3.6.2 (ck) kernel
Xorg server 1.13.0
ati-driver 12.11beta (also tried older driver+xorgs..)
Latest GIT source of both Eden and Master branch from (https://github.com/FernetMenta/xbmc/)

My settings (Video->Playback):
Enabled XVBA acceleration
Disabled/Enabled VAAPI
Disabled/Enabled Allow display refresh rate to match video
Disabled/Enabled Sync playback to display
(all combinaties of these settings had no effect. I did find it weird that with sync playback enabled, the fps in the playback debug screen during playback did not increase to 60?)

Playing with deinterlacing settings had no effect.
Vertical sync is set to always, both in ati-config and xbmc.

xbmc-standalone is running straight on a Xsession using a .xinitrc file.

I've tried running both a 720p avi mpeg (dc: ff-mpeg4) and a 720p h264 file (dc: ff-h264-xvba). Both are local files and show "ok" cpu usage below 40% at all times. One possible hint is perhaps that I noticed that for both files, my gaming PC (which has an Nvidia card) shows a steady 23.98 fps in the playback debug screen, whereas the problem htpc that I am describing has a fluctuating fps between 23.72 and 24.30..?

http://bpaste.net/show/57766/
This debug log is a clean logfile from a new xbmc instance where I'm trying to run the movie Armageddon. This movie was chosen because it starts with an asteroid travelling through space to own the dinosaurs. The problem is very noticable on these shots. Hope someone can provide some insight, thanks!




RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - fritsch - 2012-11-13

Quote:17:22:30 T:140045012641536 DEBUG: CDVDPlayer::HandleMessages - player started 1
17:22:30 T:140044455114496 NOTICE: fps: 23.976024, pwidth: 1280, pheight: 528, dwidth: 1280, dheight: 528
17:22:30 T:140044455114496 DEBUG: OutputPicture - change configuration. 1280x528. framerate: 23.98. format: YV12
17:22:30 T:140044455114496 NOTICE: Display resolution DESKTOP : 800x600 @ 60.32 - Full Screen (12)

What is the output of:
Code:
DISPLAY=:0 /usr/lib/xbmc/xbmc-xrandr

The command could resist in /usr/local as you built manually. To get 23.98 fps content playing correctly, you need a TV that is capable of doing this mode.



RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - danz0l - 2012-11-13

(2012-11-13, 16:48)uNiversal Wrote: IIRC this is based on the FernetMenta branch though there is no bug tracker per say you can follow the commits like you do any github project.

https://github.com/FernetMenta/xbmc/commits/master

uNi

Thanks for that Uni.

Does anyone else have any issues related to Recently Added TV Shows not refreshing on download in the Recently Added menu item. Also if you hit watched on Movie or TV list views, It doesn't update the icon until you either go to files view mode or exit xbmc. Jmarshal said this had been fixed so i'm wondering now if its this branch that continues to have the error ?



RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - alexandervdm - 2012-11-13

(2012-11-13, 18:43)fritsch Wrote:
Quote:17:22:30 T:140045012641536 DEBUG: CDVDPlayer::HandleMessages - player started 1
17:22:30 T:140044455114496 NOTICE: fps: 23.976024, pwidth: 1280, pheight: 528, dwidth: 1280, dheight: 528
17:22:30 T:140044455114496 DEBUG: OutputPicture - change configuration. 1280x528. framerate: 23.98. format: YV12
17:22:30 T:140044455114496 NOTICE: Display resolution DESKTOP : 800x600 @ 60.32 - Full Screen (12)

What is the output of:
Code:
DISPLAY=:0 /usr/lib/xbmc/xbmc-xrandr

The command could resist in /usr/local as you built manually. To get 23.98 fps content playing correctly, you need a TV that is capable of doing this mode.

I editted an existing ebuild to build the xvba git branch, so the file was somewhere else, but here comes the output:

Code:
<screen id="0" minimum_w="320" minimum_h="200" current_w="800" current_h="600" maximum_w="1600" maximum_h="1600">
  <output name="DFP1" connected="false">
  </output>
  <output name="DFP2" connected="false">
  </output>
  <output name="CRT1" connected="true" w="800" h="600" x="0" y="0" wmm="0" hmm="0">
    <mode id="0x98" name="800x600" w="800" h="600" hz="60.31654" current="true" preferred="true"/>
    <mode id="0x99" name="1600x1200" w="1600" h="1200" hz="60.00000" current="false" preferred="true"/>
    <mode id="0x9a" name="1400x1050" w="1400" h="1050" hz="59.99971" current="false" preferred="false"/>
    <mode id="0x9b" name="1600x900" w="1600" h="900" hz="60.00000" current="false" preferred="false"/>
    <mode id="0x9c" name="1280x1024" w="1280" h="1024" hz="60.01974" current="false" preferred="false"/>
    <mode id="0x9d" name="1440x900" w="1440" h="900" hz="59.88744" current="false" preferred="false"/>
    <mode id="0x9e" name="1280x960" w="1280" h="960" hz="59.99960" current="false" preferred="false"/>
    <mode id="0x9f" name="1366x768" w="1366" h="768" hz="59.78954" current="false" preferred="false"/>
    <mode id="0xa0" name="1360x768" w="1360" h="768" hz="60.01516" current="false" preferred="false"/>
    <mode id="0xa1" name="1280x800" w="1280" h="800" hz="59.81033" current="false" preferred="false"/>
    <mode id="0xa2" name="1152x864" w="1152" h="864" hz="60.00000" current="false" preferred="false"/>
    <mode id="0xa3" name="1280x768" w="1280" h="768" hz="59.87023" current="false" preferred="false"/>
    <mode id="0xa4" name="1280x720" w="1280" h="720" hz="60.00000" current="false" preferred="false"/>
    <mode id="0xa5" name="1024x768" w="1024" h="768" hz="60.00384" current="false" preferred="false"/>
    <mode id="0xa6" name="1024x600" w="1024" h="600" hz="59.99897" current="false" preferred="false"/>
    <mode id="0xa7" name="800x480" w="800" h="480" hz="59.99911" current="false" preferred="false"/>
    <mode id="0xa8" name="720x480" w="720" h="480" hz="60.00000" current="false" preferred="false"/>
    <mode id="0xa9" name="640x480" w="640" h="480" hz="59.94048" current="false" preferred="false"/>
  </output>
</screen>

When I bought it, my TV was advertised as being able to do 100Hz, but these modelines are not available for some reason. I figured this was because of the VGA-to-SVIDEO converter that I'm using. Is the hertz related to my problem? Thank you for your time!



RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - wsnipex - 2012-11-13

yes, the missing 23,976p and 24p modes are the problem. Maybe the TV could do it with HDMI.


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - fritsch - 2012-11-13

@alexandervdm:

I had to read twice. You really use VGA to SVIDEO to connect your TV? Isn't there any other option?


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - un1versal - 2012-11-13

Able to do 100Hz is not the same as being able to do 23.976 Hz and Its using CRT which may not even have the supported modes under that. Only a /var/log/xorg.0.log would tell for sure.

Then again this ATI and I cant comment on VGA to Svideo anything either.

uNi


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - alexandervdm - 2012-11-13

(2012-11-13, 20:20)wsnipex Wrote: yes, the missing 23,976p and 24p modes are the problem. Maybe the TV could do it with HDMI.

(2012-11-13, 20:24)fritsch Wrote: @alexandervdm:

I had to read twice. You really use VGA to SVIDEO to connect your TV? Isn't there any other option?
Thank you for your answers. Unfortunately my TV only has SCART, Composite and S-video inputs. Because most modern (mini-itx) motherboards do not carry s-video/composite outputs anymore, I decided to purchase this converter to transform the VGA signal to something I could hook up to my TV. I did not think that having only 60/75 Hz for 800x600 (as the converter's manual indicates) would be a problem. Are there still software options available that I can use to fix this problem? I'd hate to have to get a new TV or, if my current TV can do lower Hz's; a complicated graphics-card+riser with native s-video set-up..

I thought that the "Sync playback to display" option would allow me to resamble my video's to 60 fps. If I understand the issue correctly, the refresh rate needs to match the fps.. Which makes sense to be honest. Thanks again for taking the time to consider my problem Smile


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - fritsch - 2012-11-13

Yes frequency should match fps or be an even multiply of it, so the frames in between can be calculated nicely.

With your setup you should see slight stutter every now and then. I would try to fix your display to a refresh rate and keep Sync Playback to Display disabled.


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - alexandervdm - 2012-11-13

Thanks for the explanation. I've looked more closely at the converter I bought, and it seems it can only do 60Hz for all modes. The manual, box and website all contradict each other on which video modes are supported lol.. One thing I don't understand still though. I never had any issues playing normal SD content of 24 fps with my Xbox. Does that mean it would do the refresh-rate magic because it was hooked up to my TV directly (without converter), or can something else software-wise have occurred?

My apologies for hijacking the topic btw, hope to enjoy my xbmc-xvba build soon, perhaps with a new TV Smile



RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - FernetMenta - 2012-11-13

@alexandervdm can you upgrade to testing version and post a debug log? This would give me chance to see more clearly what's happening.


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - alexandervdm - 2012-11-13

(2012-11-13, 22:49)FernetMenta Wrote: @alexandervdm can you upgrade to testing version and post a debug log? This would give me chance to see more clearly what's happening.
Assuming you meant pre-frodo, I just cloned and compiled your git master branch, and started with a fresh profile. This log is me trying to play the same file again. I configured a few quick settings (like vertical sync) on an earlier instance.





RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - fritsch - 2012-11-14

@alexandervdm:

All the files you are playing in this log are
Quote:NOTICE: CDVDVideoCodecFFmpeg::Open() Using codec: MPEG-4 part 2

So at least there is no hw decoding involved (in this case). I don't see anything obious. But let's see what fernetmenta squeezes out of the logfile :-)


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - FernetMenta - 2012-11-14

@alexandervdm: can you post a log when playing something longer than just a couple of seconds? Also please give a description of what you have observed and done at what time.


RE: Howto Install XBMC PVR Xvba for AMD Radeon/Fusion and Nvidia GPUs - lm_1 - 2012-11-14

hi2all
I installed ubuntu 12.04 by first message this thread. Device - Acer Revo 70. All worked. I have soundbar and connected it via spdif, but sound comes only through hdmi. how this is change?
Code:
aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Generic [HD-Audio Generic], device 3: HDMI 0 [HDMI 0]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: SB [HDA ATI SB], device 0: ALC662 rev1 Analog [ALC662 rev1 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: SB [HDA ATI SB], device 1: ALC662 rev1 Digital [ALC662 rev1 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
fglrx version: 12.09 beta
--
sorry for my bad english