Linux - Radeon OSS with vdpau (howto)

  Thread Rating:
  • 24 Vote(s) - 4.67 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Post Reply
Pana_Ruplahlava Offline
Junior Member
Posts: 12
Joined: Jan 2014
Reputation: 0
Post: #3571
Angel Did not read the log, just copypaste...

BUT! It was muted! Working like a charm now! Thank you a lot! Smile
find quote
fritsch Offline
Team-Kodi Developer
Posts: 8,640
Joined: Aug 2011
Reputation: 202
Location: Karlsruhe
Post: #3572
Next time, please read - that saves us all a lot of trouble:

[Image: screenie.png]

"Your most vocal users are not reflective of your userbase" J.M.

Audio Engine: SPDIF has only 2 pcm channels. DTS, AC3 are encoded via those 2 channels. It's obviously clear that you are not able to change Speaker Layout when running via SPDIF.
No help without a proper Debug Log No answer yet? http://www.catb.org/esr/faqs/smart-questions.html
find quote
Pana_Ruplahlava Offline
Junior Member
Posts: 12
Joined: Jan 2014
Reputation: 0
Post: #3573
Well, shame on me. I read it, but just check it by muting and unmuting using GUI.
Sorry and thank you again...
(This post was last modified: 2015-04-12 16:18 by Pana_Ruplahlava.)
find quote
AlexKid Offline
Junior Member
Posts: 3
Joined: Apr 2014
Reputation: 0
Post: #3574
@fritsch
Last week i tried out steam for Linux on my Asus e45 Mini itx. With in home streaming I got allways the message "slow decode". I found this: https://launchpad.net/~oibaf/+archive/ub...s-drivers. The driver is faster with decoding the Steam stream and works as well with KODI. Next days I will install Lubuntu 15.04 when it is out, so I can use the steam launcher. What Do you think?
find quote
fritsch Offline
Team-Kodi Developer
Posts: 8,640
Joined: Aug 2011
Reputation: 202
Location: Karlsruhe
Post: #3575
Fabio's ppa can break every day - so be warned.

"Your most vocal users are not reflective of your userbase" J.M.

Audio Engine: SPDIF has only 2 pcm channels. DTS, AC3 are encoded via those 2 channels. It's obviously clear that you are not able to change Speaker Layout when running via SPDIF.
No help without a proper Debug Log No answer yet? http://www.catb.org/esr/faqs/smart-questions.html
find quote
tommy_gun Offline
Junior Member
Posts: 2
Joined: Apr 2015
Reputation: 0
Location: Freiburg / Germany
Post: #3576
Hello,

I currently upgraded to Vivid (without any thoughts Frown ) and now everithing seems messed up with upstart and systemd.
Since the kodi.conf is only for upstart, could anybody help me writing the correct file for systemd?

Thank you
(This post was last modified: 2015-04-24 19:58 by tommy_gun.)
find quote
y2kbadbug Offline
Junior Member
Posts: 9
Joined: May 2014
Reputation: 1
Location: Tapatalk User
Post: #3577
(2015-04-24 19:57)tommy_gun Wrote:  Hello,

I currently upgraded to Vivid (without any thoughts Frown ) and now everithing seems messed up with upstart and systemd.
Since the kodi.conf is only for upstart, could anybody help me writing the correct file for systemd?

Thank you

Try adding this file

Code:
root@kodi:~# cat /etc/systemd/system/kodi.service
[Unit]
Description = kodi-standalone using xinit
After = systemd-user-sessions.service network.target sound.target
Conflicts=getty@tty7.service
                                                                                                                                                                                                                                                  
[Service]                                                                                                                                                                                                                                          
User = kodi                                                                                                                                                                                                                                        
Group = kodi                                                                                                                                                                                                                                      
Type = simple                                                                                                                                                                                                                                      
PAMName=login                                                                                                                                                                                                                                      
TTYPath=/dev/tty7                                                                                                                                                                                                                                  
ExecStart = /usr/bin/xinit /usr/bin/dbus-launch --exit-with-session /usr/bin/kodi-standalone -- :0 -nolisten tcp vt7                                                                                                                              
StandardInput = tty                                                                                                                                                                                                                                
Restart = on-abort                                                                                                                                                                                                                                
Nice = 21 21                                                                                                                                                                                                                                      
                                                                                                                                                                                                                                                  
[Install]                                                                                                                                                                                                                                          
WantedBy = multi-user.target

Pay attention to the file name.

Then type

Code:
# systemctl daemon-reload
# systemctl enable kodi
# systemctl start kodi
(or reboot)

If dbus-x11 is not install, apt-get install dbus-x11

Using Tapatalk
find quote
tommy_gun Offline
Junior Member
Posts: 2
Joined: Apr 2015
Reputation: 0
Location: Freiburg / Germany
Post: #3578
@y2kbadbug thx, worked like a charm (my friday evening is saved)
find quote
arkim Offline
Junior Member
Posts: 24
Joined: Mar 2014
Reputation: 0
Location: Montpellier, France
Post: #3579
(2013-10-03 10:52)fritsch Wrote:  Mpeg-2 Crashes
If you have bad luck, you got an AMD card that does mpeg-2 decoding in shaders, which segfaults when done multithreaded. Switch Confluence to Expert and disable Mpeg-2 under Video Acceleration.

Relevant output from qvdpauinfo:
Quote:qvdpautest 0.5.2
AMD E-350 Processor
Unknown GPU

VDPAU API version : 1
VDPAU implementation : G3DVL VDPAU Driver Shared Library version 1.0

FATAL: get_bits failed : No backend implementation could be loaded.!!
MPEG DECODING (1920x1080): 59 frames/s
MPEG DECODING (1280x720): 92 frames/s
H264 DECODING (1920x1080): 38 frames/s
H264 DECODING (1280x720): 70 frames/s
VC1 DECODING (1440x1080): 85 frames/s
MPEG4 DECODING (1920x1080): 54 frames/s
MIXER WEAVE (1920x1080): 275 frames/s
MIXER BOB (1920x1080): 439 fields/s

Happy penguin:
[Image: amd-dolby-truehd-320.jpg]

Hello, i have a Zotac AD10 with AMD fusion E-350 with Radeon HD6310 and with the last version of Openelec (OpenELEC-Generic.x86_64-devel-20150422102646-r20702-g76ee671) with Kodi Isengard, all seems to be good with mpeg2 decoding.... It's very good news !!
Do some people with same hardware can confirm my "little" test ?
find quote
fritsch Offline
Team-Kodi Developer
Posts: 8,640
Joined: Aug 2011
Reputation: 202
Location: Karlsruhe
Post: #3580
I made this howto on a E350 ... it has no issue at all with Mpeg-2. HD5000 is affected,

"Your most vocal users are not reflective of your userbase" J.M.

Audio Engine: SPDIF has only 2 pcm channels. DTS, AC3 are encoded via those 2 channels. It's obviously clear that you are not able to change Speaker Layout when running via SPDIF.
No help without a proper Debug Log No answer yet? http://www.catb.org/esr/faqs/smart-questions.html
find quote
arkim Offline
Junior Member
Posts: 24
Joined: Mar 2014
Reputation: 0
Location: Montpellier, France
Post: #3581
I dont understand ?? Even with a new driver ??Huh
find quote
fritsch Offline
Team-Kodi Developer
Posts: 8,640
Joined: Aug 2011
Reputation: 202
Location: Karlsruhe
Post: #3582
There is and never was an mpeg-2 decoding issue on E350.

"Your most vocal users are not reflective of your userbase" J.M.

Audio Engine: SPDIF has only 2 pcm channels. DTS, AC3 are encoded via those 2 channels. It's obviously clear that you are not able to change Speaker Layout when running via SPDIF.
No help without a proper Debug Log No answer yet? http://www.catb.org/esr/faqs/smart-questions.html
find quote
WytRaven Offline
Junior Member
Posts: 43
Joined: Jun 2011
Reputation: 0
Post: #3583
OK so I have been pulling my hair out for about a week over this one problem I have since using this guide as a basis for upgrading to Kodi from XBMC on my media centre/server. Everything is fine with Kodi; video, sound, the works as well as all my server features. My singular issue is with the upstart script for kodi. It simply doesn't start.

I am running on Ubuntu 14.04 installed via mini.iso commandline. I have other upstart scripts working fine. However none of the others use the su command to execute.

The script I have is this exactly:
Code:
# kodi-upstart
# starts KODI on startup by using xinit.
# by default runs as kodi, to change edit below.
env USER=htpc

description     "KODI-barebones-upstart-script"
author          "Matt Filetto"

start on (filesystem and net-device-up IFACE!=lo and stopped udevtrigger)
stop on runlevel [016]

# tell upstart to respawn the process if abnormal exit
respawn
respawn limit 10 5
limit nice 21 21

script
exec su -c "xinit /usr/bin/kodi --standalone -- /usr/bin/X -bs -nolisten tcp :0" $USER
end script

and without fail I get this message in /var/log/upstart/kodi.log upon boot:
Code:
No passwd entry for user 'htpc
'
* Note that the above is verbatim

The user htpc most definitely exists and is most definitely in the passwd file. Upon boot I end up at a login prompt where I have to login manually as htpc and then launch kodi using the command from the script.

Why oh why oh why won't it just work as intended? Any ideas?
(This post was last modified: 2015-05-02 06:24 by WytRaven.)
find quote
fritsch Offline
Team-Kodi Developer
Posts: 8,640
Joined: Aug 2011
Reputation: 202
Location: Karlsruhe
Post: #3584
Code:
env USER=htpc

Windows line endings? Use a capable editor and check that line again?

"Your most vocal users are not reflective of your userbase" J.M.

Audio Engine: SPDIF has only 2 pcm channels. DTS, AC3 are encoded via those 2 channels. It's obviously clear that you are not able to change Speaker Layout when running via SPDIF.
No help without a proper Debug Log No answer yet? http://www.catb.org/esr/faqs/smart-questions.html
find quote
WytRaven Offline
Junior Member
Posts: 43
Joined: Jun 2011
Reputation: 0
Post: #3585
(2015-05-02 10:07)fritsch Wrote:  
Code:
env USER=htpc

Windows line endings? Use a capable editor and check that line again?

Hole in one. Thanks!
find quote
Post Reply