Bug 284781 - VLC backend for Phonon doesn't work on HDMI
Summary: VLC backend for Phonon doesn't work on HDMI
Status: RESOLVED WORKSFORME
Alias: None
Product: phonon-backend-vlc
Classification: Frameworks and Libraries
Component: general (show other bugs)
Version: 0.4.1
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Harald Sitter
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-10-23 13:04 UTC by Nicola Mori
Modified: 2011-11-20 17:19 UTC (History)
7 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nicola Mori 2011-10-23 13:04:01 UTC
Version:           4.7 (using KDE 4.7.2) 
OS:                Linux

When using VLC backend, Phonon is unable to play on HDMI. Using GStreamer backend makes everything work.

Reproducible: Always

Steps to Reproduce:
Connect the PC to a TV using an HDMI cable. Install VLC backend, go to System Settings->Multimedia->Phonon. Select VLC backend from the "Backend" tab, then select HDMI device on the "Device preference" tab. Then click on Test button.

Actual Results:  
Test sound is played by the laptop speakers instead of TV speakers.

Expected Results:  
TV speakers should play the test sound

Tested on Sony Vaio VGN-SR21M laptop with Mobility Radeon HD3470 and Catalyst 11.8.

$ aplay -l
**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC262 Analog [ALC262 Analog]
  Subdevices: 1/1
  Subdevice #0: subdevice #0
card 1: HDMI [HDA ATI HDMI], device 3: HDMI 0 [HDMI 0]
  Subdevices: 0/1
  Subdevice #0: subdevice #0

VLC player correctly sends output to TV when watching a movie, and GStreamer Phonon backend works, so I think it is something restricted to VLC backend.
Comment 1 Myriam Schweingruber 2011-10-28 02:18:45 UTC
Which exact version of the phonon-backend-vlc is this about?
Comment 2 Nicola Mori 2011-10-29 10:20:38 UTC
Hi Myryam, sorry for not providing such a basic information :)
I'm using 0.4.1 version, obtained from official Archlinux repository (package name is phonon-vlc 0.4.1-1).
Comment 3 Myriam Schweingruber 2011-10-29 14:52:29 UTC
Thank you for the fast feedback :)
Comment 4 Harald Sitter 2011-11-05 21:17:08 UTC
Do you have PulseAudio installed?
Comment 5 Nicola Mori 2011-11-06 16:09:35 UTC
No, I don't. Is it needed to make vlc backend work with HDMI? Should I try to install it?
Comment 6 Nicola Mori 2011-11-19 13:25:50 UTC
I did not understand if I should use or not use PulseAudio to make the backend work. Anyway, when I spotted the problem I did not have it installed and the backend did not work. So I installed PulseAudio but this does not solve the problem at all.
Comment 7 Colin Guthrie 2011-11-19 18:24:20 UTC
I would generally say you should always use PulseAudio, but then as upstream PA maintainer, I would say that :)

Can I ask if you saw the list of selectable devices change when PA was installed? if not, then something is likely wrong (such as not compiling vlc with pulseaudio support). The list of devices should be very much simplified and you should be able to see only the devices you have selected. You may need to change h/w profile in PA to enable the HDMI in this case.

Please supply the output of "pacmd ls" and a screen shot of the device selection list.

Please also refer to http://pulseaudio.org/wiki/KDE for some example screenshots of how things should look.
Comment 8 Nicola Mori 2011-11-20 15:48:27 UTC
Colin, I tried again with PulseAudio and this time things were much smoother. Devices list behave as you stated, and also phonon is now able to play on HDMI using VLC backend. So I'm satisfied with it and according to me the bug can be closed. Anyway, is this the intended behavior of VLC backend? If PulseAudio really is the only way to make it work on HDMI, then it should be written somewhere (maybe it is and maybe I should have search it more carefully, I don't know...).
Thanks everybody for the precious support! :)
Comment 9 Colin Guthrie 2011-11-20 17:08:40 UTC
Hi Nicola,

Glad you got it working :)

In theory VLC backend should work with HDMI even without PA, but PA is generally part of the recommended setup in KDE and pretty much all the major distributions do this out of the box by default these days.

As our resources are limited, we do tend to focus on the "standard" setup primarily and the other configurations get less attention, so I'll leave it to Harald to see if he wants to close this bug or work on the underlying cause.
Comment 10 Myriam Schweingruber 2011-11-20 17:19:07 UTC
Thank you all for the feedback.