Bug#892147: Please create the Pragha package with complete audio (api) support

2018-04-27 Thread Gabriel F. T. Gomes
On 22 Apr 2018, Jürgen Göricke wrote:

>I can also resolve the URL with curl and play it back with the
>gstreamer framework

Ack.  That's valuable information for me.

>but directly in pragha the link extracted with
>curl is not played back. At least the artist's name, the title played
>and the channel in the pragha are resolved as text, but unfortunately
>no music is played.

That's very curious, but at least it means that gstreamer is able to
read something from the parsed URL. :)

>And yes, the volume control in pragha _and_ the
>system is set to full volume.

Hehehe, thanks for checking and for reporting this, too.

>Small additional information, in audacious I can play any online
>streaming link immediately with curl, or similar workarounds without
>any effort. I also got this package from the Debian repository.

OK, thanks for checking.

>It would be nice, though, if pragha could also enable problem-free
>playback of the live streaming sources.

Indeed and I'll probably need a little help from you to try and
reproduce it on my system.

>How else can I help you to find the problem?

Since I want to reproduce the problem on my system, I need to learn how
to make a pulseaudio-free installation, so that I can have a system
similar to yours (my system has the full XFCE stack installed and it
brings pulseaudio by default, I think).

So...  When and if you can spare some time, could you please tell me
what you use on your system?

Did you install with debootstrap, netinst?
Which window manager (so I don't get pulseaudio unintentionally)?
Which audio related packages you installed (gstreamer*, *alsa*)?
Any other packages you believe I should pay attention to?

Please feel free to ignore my request if you don't wish to give that
many details about your computer (I honestly don't know if my request
is intrusive, hehehe).


Cheers,
Gabriel



Bug#892147: Please create the Pragha package with complete audio (api) support

2018-04-21 Thread Jürgen Göricke
Hello Gabriel,

I can also resolve the URL with curl and play it back with the gstreamer 
framework, but directly in pragha the link extracted with curl is not played 
back.
At least the artist's name, the title played and the channel in the pragha are 
resolved as text, but unfortunately no music is played.
And yes, the volume control in pragha _and_ the system is set to full volume.

Small additional information, in audacious I can play any online streaming link 
immediately with curl, or similar workarounds without any effort.
I also got this package from the Debian repository.

It would be nice, though, if pragha could also enable problem-free playback of 
the live streaming sources.

How else can I help you to find the problem?

Best regards


> I still do not understand what prevents .m3u URLs (such as the one
> you want to use) from being played correctly on pragha, but I collected
> some extra information and I have a workaround for you.
> 
> First, the workaround:
> 
> Use curl to display what's in your .m3u URL:
> 
> $ curl http://media-ice.musicradio.com/ClassicFMMP3.m3u 
> http://media-the.musicradio.com:80/ClassicFMMP3
> 
> Then use this URL, instead of the original, to test your gstreamer 
> installation:
> 
> $ gst-launch-1.0 -v playbin 
> uri=http://media-the.musicradio.com:80/ClassicFMMP3
> 
> You can add this link to Pragha and it will work.
> 
> Could you test this workaround on your system and tell me if it works?
> 
> 
> 
> I'll keep trying to understand why the original URL is not acceptable.  Below 
> is the output of a call to gst-launch-1.0, which shows that the problem is 
> the lack of a decoder for 'text/uri-list' (it seems odd that a *decoder*
> is needed for text/uri-list.  I'd expect a *parser*.)
> 
> $ gst-launch-1.0 -v playbin > 
> uri=http://media-ice.musicradio.com/ClassicFMMP3.m3u Setting pipeline to 
> PAUSED ...
> Pipeline is PREROLLING ...
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: ring-buffer-max-size = 0
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-size = -1
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-duration = -1
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: use-buffering = false
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: download = false
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: uri = 
> http://media-ice.musicradio.com/ClassicFMMP3.m3u
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: connection-speed = 0
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: source = 
> "\(GstSoupHTTPSrc\)\ source"
> Got context from element 'source': gst.soup.session=context, 
> session=(SoupSession)NULL, force=(boolean)false;
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstTypeFindElement:typefindelement0.GstPad:src:
>  caps = text/uri-list
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind:
>  force-caps = text/uri-list
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0: 
> sink-caps = text/uri-list
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstQueue2:queue2-0.GstPad:sink:
>  caps = text/uri-list
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstQueue2:queue2-0.GstPad:src:
>  caps = text/uri-list
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0.GstGhostPad:sink.GstProxyPad:proxypad0:
>  caps = text/uri-list
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src:
>  caps = text/uri-list
> Missing element: text/uri-list decoder
> WARNING: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: No 
> decoder available for type 'text/uri-list'.
> Additional debug info:
> gsturidecodebin.c(921): unknown_type_cb (): 
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0
> ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: Your 
> GStreamer installation is missing a plug-in.
> Additional debug info:
> gsturidecodebin.c(988): no_more_pads_full (): 
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0:
> no suitable plugins found:
> gstdecodebin2.c(4640): gst_decode_bin_expose (): 
> /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0:
> no suitable plugins found:
> Missing decoder: text/uri-list (text/uri-list)
> 
> ERROR: pipeline doesn't want to preroll.
> Setting pipeline to NULL ...
> Freeing pipeline ...


pgpzi5ujBad2x.pgp
Description: Digitale Signatur von OpenPGP


Bug#892147: Please create the Pragha package with complete audio (api) support

2018-04-11 Thread Gabriel F. T. Gomes
On 05 Apr 2018, Jürgen Göricke wrote:

>Oh, I'm so surprised! Because the error message suggests otherwise.

I still do not understand what prevents .m3u URLs (such as the one
you want to use) from being played correctly on pragha, but I collected
some extra information and I have a workaround for you.

First, the workaround:

Use curl to display what's in your .m3u URL:

$ curl http://media-ice.musicradio.com/ClassicFMMP3.m3u 
http://media-the.musicradio.com:80/ClassicFMMP3

Then use this URL, instead of the original, to test your gstreamer installation:

$ gst-launch-1.0 -v playbin 
uri=http://media-the.musicradio.com:80/ClassicFMMP3

You can add this link to Pragha and it will work.

Could you test this workaround on your system and tell me if it works?



I'll keep trying to understand why the original URL is not acceptable.  Below 
is the output of a call to gst-launch-1.0, which shows that the problem is the 
lack of a decoder for 'text/uri-list' (it seems odd that a *decoder* is needed 
for text/uri-list.  I'd expect a *parser*.)

$ gst-launch-1.0 -v playbin
uri=http://media-ice.musicradio.com/ClassicFMMP3.m3u Setting pipeline to PAUSED 
...
Pipeline is PREROLLING ...
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: ring-buffer-max-size = 0
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-size = -1
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: buffer-duration = -1
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: use-buffering = false
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: download = false
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: uri = 
http://media-ice.musicradio.com/ClassicFMMP3.m3u
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: connection-speed = 0
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: source = 
"\(GstSoupHTTPSrc\)\ source"
Got context from element 'source': gst.soup.session=context, 
session=(SoupSession)NULL, force=(boolean)false;
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstTypeFindElement:typefindelement0.GstPad:src:
 caps = text/uri-list
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind:
 force-caps = text/uri-list
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0: 
sink-caps = text/uri-list
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstQueue2:queue2-0.GstPad:sink:
 caps = text/uri-list
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstQueue2:queue2-0.GstPad:src:
 caps = text/uri-list
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0.GstGhostPad:sink.GstProxyPad:proxypad0:
 caps = text/uri-list
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0/GstTypeFindElement:typefind.GstPad:src:
 caps = text/uri-list
Missing element: text/uri-list decoder
WARNING: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: No 
decoder available for type 'text/uri-list'.
Additional debug info:
gsturidecodebin.c(921): unknown_type_cb (): 
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0
ERROR: from element /GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0: Your 
GStreamer installation is missing a plug-in.
Additional debug info:
gsturidecodebin.c(988): no_more_pads_full (): 
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0:
no suitable plugins found:
gstdecodebin2.c(4640): gst_decode_bin_expose (): 
/GstPlayBin:playbin0/GstURIDecodeBin:uridecodebin0/GstDecodeBin:decodebin0:
no suitable plugins found:
Missing decoder: text/uri-list (text/uri-list)

ERROR: pipeline doesn't want to preroll.
Setting pipeline to NULL ...
Freeing pipeline ...



Bug#892147: Please create the Pragha package with complete audio (api) support

2018-04-04 Thread Jürgen Göricke
Hello Gabriel,

> I tested it in my system, which has pulseaudio and this doesn't work 
> either...  

Oh, I'm so surprised! Because the error message suggests otherwise.

> So, I'm guessing that this is not a problem specific to alsa.  

This could be assumed, at least for the time being, if we look at the facts to 
date.

> I don't know how to solve that, yet, but I'll investigate.  

Maybe it makes sense to contact the Pragha project (upstream) directly and 
report the problem there? This might help to find and fix the bug faster and 
provide all distributions with a bugfix release.

> Thanks for the additional information! :)  

You're welcome! We are all interested in solving this problem and to be able to 
offer all community members (almost) error-free software.

> Just to confirm, have you tried to play an audio file (a .ogg file, for 
> instance)?
> Did it work?  (I'm asking to be sure that the problem is only when playing 
> from online radios).

Yes, I tried playing local audio files.
Both ogg and mp3 files can be played without problems!


pgpqGHO9akgxF.pgp
Description: Digitale Signatur von OpenPGP


Bug#892147: Please create the Pragha package with complete audio (api) support

2018-04-04 Thread Gabriel F. T. Gomes
On Wed, 04 Apr 2018, Jürgen Göricke wrote:

>I have installed only a ALSA instance (alsa-tools alsa-utils and 
>gstreamer1.0-alsa) on my system.
>In the Pragha settings I have selected Alsa as my audio system.
>There is no pulse audio on my system.

OK.

>In my case I can't do a live stream, for example Classic FM from London 
>(http://media-ice.musicradio.com/ClassicFMMP3.m3u)
>Pragha reports (see screenshot) that a gstreamer plugin is missing

I tested it in my system, which has pulseaudio and this doesn't work
either...  So, I'm guessing that this is not a problem specific to alsa.

I don't know how to solve that, yet, but I'll investigate.

Thanks for the additional information! :)

>I hope my information helps you to narrow the problem down a bit?

It does! :)

>If you have any further questions, I will try to answer them as soon as 
>possible!

Just to confirm, have you tried to play an audio file (a .ogg file, for
instance)?  Did it work?  (I'm asking to be sure that the problem is only
when playing from online radios).



Bug#892147: Please create the Pragha package with complete audio (api) support

2018-04-04 Thread Jürgen Göricke
Hello Gabriel,

Sorry to keep answering so late!

I have installed only a ALSA instance (alsa-tools alsa-utils and 
gstreamer1.0-alsa) on my system.
In the Pragha settings I have selected Alsa as my audio system.
There is no pulse audio on my system.
In my case I can't do a live stream, for example Classic FM from London 
(http://media-ice.musicradio.com/ClassicFMMP3.m3u)
Pragha reports (see screenshot) that a gstreamer plugin is missing

My Audio Hardware:

aplay -l
 List of PLAYBACK Hardware Devices 
card 0: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
  Subdevices: 0/1
  Subdevice #0: subdevice #0
card 0: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
  Subdevices: 1/1
  Subdevice #0: subdevice #0

aplay -L
null
Discard all samples (playback) or generate zero samples (capture)
default:CARD=PCH
HDA Intel PCH, ALC892 Analog
Default Audio Device
sysdefault:CARD=PCH
HDA Intel PCH, ALC892 Analog
Default Audio Device
front:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Front speakers
surround21:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
2.1 Surround output to Front and Subwoofer speakers
surround40:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
4.0 Surround output to Front and Rear speakers
surround41:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
4.1 Surround output to Front, Rear and Subwoofer speakers
surround50:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
5.0 Surround output to Front, Center and Rear speakers
surround51:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
5.1 Surround output to Front, Center, Rear and Subwoofer speakers
surround71:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
7.1 Surround output to Front, Center, Side, Rear and Woofer speakers
iec958:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Digital
IEC958 (S/PDIF) Digital Audio Output
dmix:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Direct sample mixing device
dmix:CARD=PCH,DEV=1
HDA Intel PCH, ALC892 Digital
Direct sample mixing device
dsnoop:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Direct sample snooping device
dsnoop:CARD=PCH,DEV=1
HDA Intel PCH, ALC892 Digital
Direct sample snooping device
hw:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Direct hardware device without any conversions
hw:CARD=PCH,DEV=1
HDA Intel PCH, ALC892 Digital
Direct hardware device without any conversions
plughw:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Hardware device with all software conversions
plughw:CARD=PCH,DEV=1
HDA Intel PCH, ALC892 Digital
Hardware device with all software conversions

> If what I mentioned above is not enough and there is actually something 
> missing in the build of pragha, I think I'll need some help to fix it.
Unfortunately I am not a software developer and I don't know exactly how I can 
give support?

> Do you know how to do it?
No, since I'm not sure what exactly is meant?

> I looked into pragha's code and I didn't find any macros preventing alsa code 
> from being built.
But there must be some reason why I can't use pragha with full functionality?

> In your machine do you build pragha from sources?  If so...
No, I installed the pragha package from the Debian repository.

>  - Do you need to pass any additional flags to configure?
No I did not create pragha from source code.

>  - Do you have any development libraries installed?
No I have no development libraries installed.


I hope my information helps you to narrow the problem down a bit?
If you have any further questions, I will try to answer them as soon as 
possible!


pgpAym_MgiQbi.pgp
Description: Digitale Signatur von OpenPGP


Bug#892147: Please create the Pragha package with complete audio (api) support

2018-04-01 Thread Gabriel F. T. Gomes
Hi, Jürgen Göricke,

Have you tried to do what I suggested? (i.e.: Change the "Audio Device"
in pragha settings to "hw:1" or "default:1")


pgpt6JOT2ujxZ.pgp
Description: OpenPGP digital signature


Bug#892147: Please create the Pragha package with complete audio (api) support

2018-03-11 Thread Gabriel F. T. Gomes
On 06 Mar 2018, Jürgen Göricke wrote:

>Please create the Pragha package with gstreamer1.0-alsa _and_
>gstreamer1.0-pulseaudio support.

In order to try to reproduce this, I:

  - Installed gstreamer1.0-alsa;
  - Killed the pulseaudio daemon;
  - Selected alsa as the "Audio Sink" on pragha settings.

then I got the following error message:

  Error playing current track ()
  Reason: Could not open audio device for playback.

Is this the same error you're seeing?


Afterwards, I used "aplay -l" and "aplay -L" to learn what audio
devices I had (I'm only listing the outputs related to PCH, since all
other outputs are not actually connected to speakers):

  # aplay -l
   List of PLAYBACK Hardware Devices 
  [...]
  card 1: PCH [HDA Intel PCH], device 0: ALC892 Analog [ALC892 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
  card 1: PCH [HDA Intel PCH], device 1: ALC892 Digital [ALC892 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
  [...]

  # aplay -L
  [...]
  default:CARD=PCH
HDA Intel PCH, ALC892 Analog
Default Audio Device
  [...]
  hw:CARD=PCH,DEV=0
HDA Intel PCH, ALC892 Analog
Direct hardware device without any conversions
  hw:CARD=PCH,DEV=1
HDA Intel PCH, ALC892 Digital
Direct hardware device without any conversions
  [...]
  (there were other PCH related devices, but too many to list here)


With that output, I understood that I also needed to modify the name of
the "Audio Device" in pragha settings to "hw:1" or "default:1".

Afterwards, audio worked again.

Do you think that this could still be going through pulseaudio?
(I don't know how to completely get rid of pulseaudio to make more
tests.  Pulseaudio was automatically installed by xfce, I guess).


Maybe you also need to change the "Audio Device" on pragha settings?

>It should be possible
>to install and use either gstreamer1.0-alsa or
>gstreamer1.0-pulseaudio.

If what I mentioned above is not enough and there is actually something
missing in the build of pragha, I think I'll need some help to fix it.

Do you know how to do it?  I looked into pragha's code and I didn't
find any macros preventing alsa code from being built.

In your machine do you build pragha from sources?  If so...

  - Do you need to pass any additional flags to configure?
  - Do you have any development libraries installed?


>Since Pragha is one of the few audio players
>that meets my requirements for a slim audio player, it would be
>wonderful if users who don't want to use the Pulseaudio could use this
>player. Thank you very much!

Thank you for reporting! :)

Let's try to make it work for you and for others.


pgpdQg2qW1Np4.pgp
Description: OpenPGP digital signature


Bug#892147: Please create the Pragha package with complete audio (api) support

2018-03-05 Thread Jürgen Göricke
Package: pragha
Version: 1.3.3-1
Severity: wishlist

Dear Maintainer,

Please create the Pragha package with gstreamer1.0-alsa _and_ 
gstreamer1.0-pulseaudio support.
Reason: There are still many users of this package who don't want to use 
Pulseaudio.
It should be possible to install and use either gstreamer1.0-alsa or 
gstreamer1.0-pulseaudio.
Since Pragha is one of the few audio players that meets my requirements for a 
slim audio player, it would be wonderful if users who don't want to use the 
Pulseaudio could use this player.
Thank you very much!


-- System Information:
Debian Release: Sid
  APT prefers unstable
  APT policy: (600, 'unstable')
Architecture: amd64 (x86_64)

Kernel: Linux 4.15.0-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8), 
LANGUAGE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages pragha depends on:
ii  libatk1.0-0  2.26.1-3
ii  libc62.27-1
ii  libcairo-gobject21.15.10-2
ii  libcairo21.15.10-2
ii  libgdk-pixbuf2.0-0   2.36.11-1
ii  libglib2.0-0 2.54.3-2
ii  libgstreamer1.0-01.12.4-1
ii  libgtk-3-0   3.22.28-1
ii  libpango-1.0-0   1.40.14-1
ii  libpangocairo-1.0-0  1.40.14-1
ii  libsqlite3-0 3.22.0-1
ii  libtag1v51.11.1+dfsg.1-0.2
ii  libtagc0 1.11.1+dfsg.1-0.2

Versions of packages pragha recommends:
ii  gstreamer1.0-plugins-good  1.12.4-1+b1
pn  gstreamer1.0-pulseaudio

pragha suggests no packages.

-- no debconf information


pgp4WTqHC3l6E.pgp
Description: Digitale Signatur von OpenPGP