Bug 2406

Summary: Amarok doesn't play audio cds
Product: Mageia Reporter: Florian Hubold <doktor5000>
Component: RPM PackagesAssignee: QA Team <qa-bugs>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: Normal CC: balcaen.john, davidwhodgins, dmorganec, eeeemail, g.sprik, lmenut, shlomif, stormi-mageia, sysadmin-bugs
Version: 1Keywords: UPSTREAM, validated_update
Target Milestone: ---   
Hardware: All   
OS: Linux   
URL: https://bugs.kde.org/show_bug.cgi?id=261175
Whiteboard:
Source RPM: amarok-2.4.1-0.mga1.src.rpm CVE:
Status comment:

Description Florian Hubold 2011-08-10 16:55:18 CEST
Description of problem:

Amarok, being the primary audio player in a default KDE installation,
and the first option in device notifier when inserting an audio cd,
is not able to play those.
They also don't show up under "Local collections" as they should.
This is known upstream and AFAIU seems to be due to the switch from HAL to udisks.

Please see: https://bugs.kde.org/show_bug.cgi?id=261175 Comment 14.
Manuel Hiebel 2011-08-10 16:59:10 CEST

CC: (none) => balcaen.john

Manuel Hiebel 2011-08-10 16:59:53 CEST

Keywords: (none) => UPSTREAM

Manuel Hiebel 2011-08-10 17:12:15 CEST

CC: (none) => maarten.vanraes

Manuel Hiebel 2011-08-10 17:12:40 CEST

CC: maarten.vanraes => manuel

Comment 1 Shlomi Fish 2011-08-19 12:03:39 CEST
Amarok (2.4.3) is able to play Audio CDs on Mageia Cauldron, at least after I install all the relevant gstreamer packages. Still, this bug may need to be fixed on Mageia 1.

CC: (none) => shlomif

Comment 2 Florian Hubold 2011-08-19 12:20:09 CEST
(In reply to comment #1)
> Amarok (2.4.3) is able to play Audio CDs on Mageia Cauldron, at least after I
> install all the relevant gstreamer packages.

Could you please try 
amarok --cdplay
if an audio cd is already inserted?

This is broken for all Amarok versions i have tested so far, and that is the command which is started by the device notifier plasma widget to play an audio cd.

For me it works under Mageia 1 after i locally updated phonon-vlc backend to 0.4.1, but the audio cd only shows up when it is inserted when Amarok is running (then you see a small OSD popup saying Amarok is scanning the cd) , and then you have to click on Local Collection.
Comment 3 Shlomi Fish 2011-08-19 18:57:21 CEST
Hi,

(In reply to comment #2)
> (In reply to comment #1)
> > Amarok (2.4.3) is able to play Audio CDs on Mageia Cauldron, at least after I
> > install all the relevant gstreamer packages.
> 
> Could you please try 
> amarok --cdplay
> if an audio cd is already inserted?
> 

Yes, this command does not appear to do anything. On Mageia Cauldron as well (this bug was reported against Mageia 1). 

> This is broken for all Amarok versions i have tested so far, and that is the
> command which is started by the device notifier plasma widget to play an audio
> cd.

True.

Regards,

-- Shlomi Fish
Comment 4 John Balcaen 2011-09-01 04:46:58 CEST
Could you please test the amarok which should be soon available in core/updates_testing ?
I add 2 patches, one from upstream fixing several kde's bugs ( cf https://projects.kde.org/projects/extragear/multimedia/amarok/repository/revisions/425d684b7df0e8b50faa0cbe86eecb2d4d5022cd ) and another wrote by Luc Menut which allows to see the Audio CD in the Collection Viewer.

Here it's working correctly with phonon-gstreamer (I'll push also soon an update for phonon-vlc as soon as i tested it locally of course ).
By working i mean i'm able to enter a cd & choose amarok as autorun
then i still need to select the AudioCD inside the Collection Viewer.

URL: (none) => https://bugs.kde.org/show_bug.cgi?id=261175
Assignee: bugsquad => balcaen.john

Comment 5 John Balcaen 2011-09-01 05:00:27 CEST
Ok could you also please test the new phonon-vlc
CD playing is now working (like it does now with phonon-gstreamer).
Comment 6 Florian Hubold 2011-09-01 10:19:55 CEST
mikala, are you still interested in backtraces i got from Amarok when doing a rebuild with full debug enabled? It seemed to crash on inserting, but nothing from that was visible in Amarok itself, besides the collections scanning. Maybe it helps: http://pastebin.com/X9yJBsC5


Actually, amarok --cdplay working fine now, also phonon-vlc working fine, audio-cd has to be selected from collections viewer, but collection viewer expands automatically on the audio-cd. Even nicer.

With phonon-gstreamer, behaviour is a little different. I have an audio-cd with added video, and when clicking the autorun option from device notifier the sound of the video starts to play automatically, but otherwise, collection viewer also expands automatically on the audio-cd.

I say nicely done update, and thanks to Luc Menut :)
Comment 7 John Balcaen 2011-09-01 13:29:20 CEST
(In reply to comment #6)
> mikala, are you still interested in backtraces i got from Amarok when doing a
> rebuild with full debug enabled? It seemed to crash on inserting, but nothing
> from that was visible in Amarok itself, besides the collections scanning. Maybe
> it helps: http://pastebin.com/X9yJBsC5
Well i'm not a coder as i wrote earlier but maybe it can be useful for Luc Menut :)
I'm adding him is cc :p

> Actually, amarok --cdplay working fine now, also phonon-vlc working fine,
> audio-cd has to be selected from collections viewer, but collection viewer
> expands automatically on the audio-cd. Even nicer.
Yep that's how it's working here, the only missing things would be to auto feed the playlist.

> With phonon-gstreamer, behaviour is a little different. I have an audio-cd with
> added video, and when clicking the autorun option from device notifier the
> sound of the video starts to play automatically, but otherwise, collection
> viewer also expands automatically on the audio-cd.
I don't have any audio-cd with video on it :/


> I say nicely done update, and thanks to Luc Menut :)
All thanks should go to Luc Menut here, i'm just the messager.

CC: (none) => lmenut

Comment 8 John Balcaen 2011-09-01 14:00:39 CEST
Ok since it's working correctly for at least 3 peoples let's get more testers from QA so i'm reassign to QA for an official update.

Proposal Advisory 

« Amarok was not able to play audio-cd, this update fix this allowing also to browse the CD via the Collection Viewer. Phonon-vlc 0.4.1 is also provided in the same update to ensure that amarok can play audio cd using phonon-gstreamer or phonon-vlc backend »


How to test :

From the changes i did we should not have anymore package to add/push however just to be sure that i did not forgot some packages could you please test and install this way :
First install amarok & phonon-vlc  without updates_testing enable & try to play a audio cd with phonon-gstreamer or phonon-vlc  (you need to switch the phonon backend via systemsettings) 

Once you can noticed that it does not works you can update amarok & phonon-vlc (if you're using it)

--> To reproduce users using phonon-gstreamer (current default setup) you just need to update amarok & amarok only & ensure via systemsettings that phonon-gstreamer is selected
so 
 under x86_64 arch 
urpmi --media "Core Updates Testing " amarok amarok-utils amarok-scripts lib64amarokcore1  lib64amaroklib1 lib64amarokocsclient4 lib64amarokpud1 lib64amarok-sqlcollection1 lib64amarok-transcoding1

 under i586 arch

urpmi --media "Core Updates Testing " amarok amarok-utils amarok-scripts libamarokcore1  libamaroklib1 libamarokocsclient4 libamarokpud1 libamarok-sqlcollection1 libamarok-transcoding1

--> For users using phonon-vlc you also need to update phonon-vlc

 for x86_64 arch

urpmi --media "Core Updates Testing " amarok amarok-utils amarok-scripts lib64amarokcore1  lib64amaroklib1 lib64amarokocsclient4 lib64amarokpud1 lib64amarok-sqlcollection1 lib64amarok-transcoding1 phonon-vlc

 for i586 arch

urpmi --media "Core Updates Testing " amarok amarok-utils amarok-scripts libamarokcore1  libamaroklib1 libamarokocsclient4 libamarokpud1 libamarok-sqlcollection1 libamarok-transcoding1 phonon-vlc

To switch between both phonon-backend you just need to launch system-settings/Multimedia/Phonon/Backend & switch between vlc & gstreamer.
It is more recommanded by upstream to log out/log in after (there's a patch for this upstream in fact since some kde applications can crash sometimes while switching backend ( cf https://bugs.kde.org/show_bug.cgi?id=210427 )

Assignee: balcaen.john => qa-bugs

Comment 9 John Balcaen 2011-09-01 14:01:57 CEST
(In reply to comment #1)
> Amarok (2.4.3) is able to play Audio CDs on Mageia Cauldron, at least after I
> install all the relevant gstreamer packages. Still, this bug may need to be
> fixed on Mageia 1.
Just in case which  gstreamer packages did you install for this ?
Manuel Hiebel 2011-09-01 14:08:56 CEST

CC: manuel => (none)

Comment 10 Dave Hodgins 2011-09-01 21:31:36 CEST
Testing on i586 complete.

I used a clean install.  Used system settings to set the phonon backend to vlc.
With the Core Release versions, no sound when playing a cd track.

After updating from core updates testing, cd plays.

The srpms are
amarok-2.4.1-1.1.mga1.src.rpm
phonon-vlc-0.4.1-1.1.mga1.src.rpm

CC: (none) => davidwhodgins

Comment 11 D Morgan 2011-09-01 21:54:32 CEST
this is validated ?

CC: (none) => dmorganec

Comment 12 Samuel Verschelde 2011-09-01 21:56:32 CEST
not yet

CC: (none) => stormi

Comment 13 claire robinson 2011-09-05 16:15:32 CEST
Tested OK x86_64 for both gstreamer and phonon-vlc.

Update Validated. Thankyou for the detailed instructions!


Advisory 

------------

Amarok was not able to play audio CD's, this update corrects this allowing also to browse the CD via the Collection Viewer. Phonon-vlc 0.4.1 is also provided in the same update to ensure that amarok can play audio CD's using phonon-gstreamer or phonon-vlc backend.

------------

SRPM's

amarok-2.4.1-1.1.mga1.src.rpm
phonon-vlc-0.4.1-1.1.mga1.src.rpm


Could somebody from sysadmin please push these from core/updates_testing to core/updates.


Many thanks!

Keywords: (none) => validated_update
CC: (none) => eeeemail, sysadmin-bugs

Comment 14 D Morgan 2011-09-05 21:43:29 CEST
update pushed.

Status: NEW => RESOLVED
Resolution: (none) => FIXED

Comment 15 Gerald 2011-09-09 10:52:23 CEST
On my system, a default Mageia 1 / KDE / i586 installation + gstreamer0.10-mms + all updates:

- amarok-2.4.1-1.1.mga1 + phonon-gstreamer still doesn't work
- amarok-2.4.1-1.1.mga1 + phonon-vlc works fine

$ rpm -qa | grep gstreamer
gstreamer0.10-plugins-ugly-0.10.17-1.mga1
gstreamer0.10-plugins-base-0.10.32-3.mga1
libgstreamer-plugins-base0.10-0.10.32-3.mga1
gstreamer0.10-flac-0.10.28-1.mga1
phonon-gstreamer-4.5.1-0.mga1
gstreamer0.10-pulse-0.10.28-1.mga1
gstreamer0.10-tools-0.10.32-1.mga1
gstreamer0.10-cdparanoia-0.10.32-3.mga1
gstreamer0.10-plugins-good-0.10.28-1.mga1
gstreamer0.10-mms-0.10.21-3.mga1.tainted 
gstreamer0.10-speex-0.10.28-1.mga1
gstreamer0.10-soup-0.10.28-1.mga1
libgstreamer0.10_0.10-0.10.32-1.mga1
gstreamer0.10-ffmpeg-0.10.11-3.mga1
packagekit-gstreamer-plugin-0.6.13-3.mga1

Which other gstreamer packages are needed to get amarok playing an audio cd with the phonon-gstreameer backend?

CC: (none) => g.sprik

Comment 16 John Balcaen 2011-09-09 13:24:55 CEST
(In reply to comment #15)
What do you mean by does not work : Can you see at least the audio cd in the CollectionView?
Did you restart your KDE Session after switching the phonon backend engine ?
Comment 17 Luc Menut 2011-09-11 19:31:45 CEST
(In reply to comment #6)
> It seemed to crash on inserting, but nothing
> from that was visible in Amarok itself, besides the collections scanning. Maybe
> it helps: http://pastebin.com/X9yJBsC5
> 

@ Florian Hubold
Is it a regression introduced with my patch, or do you had such crash before?



(In reply to comment #15)
> On my system, a default Mageia 1 / KDE / i586 installation + gstreamer0.10-mms
> + all updates:
> 
> - amarok-2.4.1-1.1.mga1 + phonon-gstreamer still doesn't work

@ Gerald
do you have only one CD drive, or several CD drives on your system?
Comment 18 Florian Hubold 2011-09-12 09:31:05 CEST
(In reply to comment #17)
> (In reply to comment #6)
> > It seemed to crash on inserting, but nothing
> > from that was visible in Amarok itself, besides the collections scanning. Maybe
> > it helps: http://pastebin.com/X9yJBsC5
> > 
> 
> @ Florian Hubold
> Is it a regression introduced with my patch, or do you had such crash before?

No, it's no regression, the crash was there before.
Just thought somebody was interested in the crash informations.

If you want, i can do a full debug build and look again if the crash is now gone?
Comment 19 Gerald 2011-09-13 06:09:08 CEST
(In reply to comment #16)

> What do you mean by does not work : Can you see at least the audio cd in the
> CollectionView?

Yes, I can see the audio cd in the collection view (local music, left pane), and I can drag the tracks to the playlist (right pane).

When I click the play/pause buttom:
1) I see the lyrics of the first track of the playlist (OK)
2) I see a notification from amarok (OSD) of the current track (OK)

but amarok doesn't start playing the track:
3) I hear no music
4) the progress bar (showing the playing time) is not active
5) no notification from KDE system tray applet

With the phonon-gstreamer backend I need to click the play/pause button repeatedly (play, pause, play) before amarok starts playing a track from an audio cd (3 & 4 & 5).

With the pnonon-vlc backend, this (little) issue doesn't exist.

> Did you restart your KDE Session after switching the phonon backend engine ?

Yes.
Comment 20 Gerald 2011-09-13 06:18:14 CEST
(In reply to comment #17)

> @ Gerald
> do you have only one CD drive, or several CD drives on your system?

Luc, I have only one cd drive.