Re: [SailfishDevel] GStreamer does not support HTTP streaming -- Workaround?

2013-07-12 Thread Erlend Boe
Hi Mohammed,

after doing zypper install gst-plugins-good, it now works.
Thanks!

can you confirm that the gst-plugins-good will be part of the next Sailfish 
release, and will be installed in the shipping product?

Regards,
Erlend

On 11.07.2013, at 17:17, Mohammed Hassan mohammed.has...@jollamobile.com 
wrote:

 On Thu, Jul 11, 2013 at 01:21:44PM +, Thomas B. Rücker wrote:
 Hi,
 
 On 07/11/2013 12:40 PM, Erlend Boe wrote:
 I tried to play an .ogg audio file using a http url in my application (from 
 qml), but it is not working.
 The error message that I get is:
 GStreamer; Unable to play - 
 http://upload.wikimedia.org/wikipedia/commons/4/4b/En-us-surname.ogg; 
 Error: No URI handler implemented for http.
 
 I then saw that also MeeGo once had this problem, bug 1584.
 (performing a similar test in the simulator gives the same error as in bug 
 1584)
 
 Umm, that's bad and should be fixed. I suppose Mer inherited the build
 config from MeeGo.
 GStreamer is part of Nemo middleware nowadays and bugs can be filed here:
 https://bugs.nemomobile.org/
 Once it's fixed there it should automagically also appear in Sailfish as
 that uses Nemo MW.
 
 It's actually available. You only need to install gst-plugins-good in the
 emulator to get http streaming to work.
 
 It seems that nothing is depending on gst-plugins-good thus it never gets
 pulled in by default.
 
 Cheers,
 ___
 SailfishOS.org Devel mailing list

___
SailfishOS.org Devel mailing list


Re: [SailfishDevel] GStreamer does not support HTTP streaming -- Workaround?

2013-07-12 Thread Mohammed Hassan
On Fri, Jul 12, 2013 at 12:25:56PM +0200, Erlend Boe wrote:
 Hi Mohammed,
 
 sadly it stops working after rebooting the VM. The error that I get in the 
 console is:
  (HelloWorld:2291): GLib-GObject-WARNING **: invalid cast from `WebKitWebSrc' 
 to `GstBaseSrc'
 ** (HelloWorld:2291): CRITICAL **: gst_base_src_is_live: assertion 
 `GST_IS_BASE_SRC (src)' failed

That is indeed strange but judging by the error below, it doesn't look
like it's the case.

 and in the simulator:
 [root@SailfishEmul ~]# gst-launch-0.10 playbin2 
 uri=http://download.banshee-project.org/misc/http-test.ogg
 Setting pipeline to PAUSED ...
 Pipeline is PREROLLING ...
 ERROR: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0: The 
 autoaudiosink element is not working.
 Additional debug info:
 gstplaysink.c(1906): gen_audio_chain (): 
 /GstPlayBin2:playbin20/GstPlaySink:playsink0
 ERROR: pipeline doesn't want to preroll.
 Setting pipeline to NULL ...
 Freeing pipeline ...
 
 

Could you please try GST_DEBUG='*:2' gst-launch-0.10 playbin2 
uri=http://download.banshee-project.org/misc/http-test.ogg

It should at least give us some more debugging

Cheers,

 Regards,
 Erlend
 
 On 12.07.2013, at 08:30, Erlend Boe erlend...@yahoo.com wrote:
 
  Hi Mohammed,
  
  after doing zypper install gst-plugins-good, it now works.
  Thanks!
  
  can you confirm that the gst-plugins-good will be part of the next Sailfish 
  release, and will be installed in the shipping product?
  
  Regards,
  Erlend
  
  On 11.07.2013, at 17:17, Mohammed Hassan mohammed.has...@jollamobile.com 
  wrote:
  
  On Thu, Jul 11, 2013 at 01:21:44PM +, Thomas B. Rücker wrote:
  Hi,
  
  On 07/11/2013 12:40 PM, Erlend Boe wrote:
  I tried to play an .ogg audio file using a http url in my application 
  (from qml), but it is not working.
  The error message that I get is:
  GStreamer; Unable to play - 
  http://upload.wikimedia.org/wikipedia/commons/4/4b/En-us-surname.ogg; 
  Error: No URI handler implemented for http.
  
  I then saw that also MeeGo once had this problem, bug 1584.
  (performing a similar test in the simulator gives the same error as in 
  bug 1584)
  
  Umm, that's bad and should be fixed. I suppose Mer inherited the build
  config from MeeGo.
  GStreamer is part of Nemo middleware nowadays and bugs can be filed here:
  https://bugs.nemomobile.org/
  Once it's fixed there it should automagically also appear in Sailfish as
  that uses Nemo MW.
  
  It's actually available. You only need to install gst-plugins-good in the
  emulator to get http streaming to work.
  
  It seems that nothing is depending on gst-plugins-good thus it never gets
  pulled in by default.
  
  Cheers,
  ___
  SailfishOS.org Devel mailing list
  
  ___
  SailfishOS.org Devel mailing list
 
___
SailfishOS.org Devel mailing list

Re: [SailfishDevel] GStreamer does not support HTTP streaming -- Workaround?

2013-07-12 Thread Mohammed Hassan
It seems GStreamer pulsesink cannot connect to pulse audio. It then tries a few
other sinks then fails completely.

Unfortunately I do not know why pulseaudio is not working correctly.

Could someone else help here?

Cheers,

On Fri, Jul 12, 2013 at 01:58:33PM +0200, Erlend Boe wrote:
 Hi Mohammed,
 
 
 Here is the output:
 
 [root@SailfishEmul ~]# GST_DEBUG='*:2' gst-launch-0.10 playbin2 
 uri=http://download.banshee-project.org/misc/http-test.ogg
 Setting pipeline to PAUSED ...
 Pipeline is PREROLLING ...
 0:00:02.769910826  1363 0x6d901860 WARN   pulse 
 pulsesink.c:540:gst_pulseringbuffer_open_device:audiosink-actual-sink-pulse 
 error: Failed to connect: Connection refused
 0:00:02.772671188  1363 0x6d901860 WARNalsa 
 pulse.c:243:pulse_connect: alsalib error: PulseAudio: Unable to connect: 
 Connection refused
 
 0:00:02.773043893  1363 0x6d901860 WARNalsa 
 gstalsasink.c:694:gst_alsasink_open:audiosink-actual-sink-alsa error: Could 
 not open audio device for playback.
 0:00:02.773357077  1363 0x6d901860 WARNalsa 
 gstalsasink.c:694:gst_alsasink_open:audiosink-actual-sink-alsa error: 
 Playback open error on device 'default': Connection refused
 0:00:02.774327278  1363 0x6d901860 WARNoss4 
 oss4-property-probe.c:374:gst_oss4_property_probe_get_values:audiosink-actual-sink-oss4
  Can't open file descriptor to probe available devices: No such file or 
 directory
 0:00:02.774646351  1363 0x6d901860 WARNoss4sink 
 oss4-sink.c:515:gst_oss4_sink_open:audiosink-actual-sink-oss4 error: Could 
 not open audio device for playback.
 0:00:02.774945041  1363 0x6d901860 WARNoss4sink 
 oss4-sink.c:515:gst_oss4_sink_open:audiosink-actual-sink-oss4 error: system 
 error: No such file or directory
 0:00:02.775477104  1363 0x6d901860 WARN oss 
 gstosssink.c:414:gst_oss_sink_open:audiosink-actual-sink-oss error: Could 
 not open audio device for playback.
 0:00:02.775756292  1363 0x6d901860 WARN oss 
 gstosssink.c:414:gst_oss_sink_open:audiosink-actual-sink-oss error: system 
 error: No such file or directory
 0:00:02.776149518  1363 0x6d901860 WARN  autodetect 
 gstautoaudiosink.c:370:gst_auto_audio_sink_detect:audiosink error: Failed 
 to find a supported audio sink
 0:00:02.776486737  1363 0x6d901860 WARNplaysink 
 gstplaysink.c:1906:gen_audio_chain:playsink0 error: The autoaudiosink 
 element is not working.
 ERROR: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0: The 
 autoaudiosink element is not working.
 Additional debug info:
 gstplaysink.c(1906): gen_audio_chain (): 
 /GstPlayBin2:playbin20/GstPlaySink:playsink0
 ERROR: pipeline doesn't want to preroll.
 Setting pipeline to NULL ...
 Freeing pipeline ...
 [root@SailfishEmul ~]# 
 
 
 Regards,
 Erlend
 
 On 12.07.2013, at 13:23, Mohammed Hassan mohammed.has...@jollamobile.com 
 wrote:
 
  On Fri, Jul 12, 2013 at 12:25:56PM +0200, Erlend Boe wrote:
  Hi Mohammed,
  
  sadly it stops working after rebooting the VM. The error that I get in the 
  console is:
  (HelloWorld:2291): GLib-GObject-WARNING **: invalid cast from 
  `WebKitWebSrc' to `GstBaseSrc'
  ** (HelloWorld:2291): CRITICAL **: gst_base_src_is_live: assertion 
  `GST_IS_BASE_SRC (src)' failed
  
  That is indeed strange but judging by the error below, it doesn't look
  like it's the case.
  
  and in the simulator:
  [root@SailfishEmul ~]# gst-launch-0.10 playbin2 
  uri=http://download.banshee-project.org/misc/http-test.ogg
  Setting pipeline to PAUSED ...
  Pipeline is PREROLLING ...
  ERROR: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0: The 
  autoaudiosink element is not working.
  Additional debug info:
  gstplaysink.c(1906): gen_audio_chain (): 
  /GstPlayBin2:playbin20/GstPlaySink:playsink0
  ERROR: pipeline doesn't want to preroll.
  Setting pipeline to NULL ...
  Freeing pipeline ...
  
  
  
  Could you please try GST_DEBUG='*:2' gst-launch-0.10 playbin2 
  uri=http://download.banshee-project.org/misc/http-test.ogg
  
  It should at least give us some more debugging
  
  Cheers,
  
  Regards,
  Erlend
  
  On 12.07.2013, at 08:30, Erlend Boe erlend...@yahoo.com wrote:
  
  Hi Mohammed,
  
  after doing zypper install gst-plugins-good, it now works.
  Thanks!
  
  can you confirm that the gst-plugins-good will be part of the next 
  Sailfish release, and will be installed in the shipping product?
  
  Regards,
  Erlend
  
  On 11.07.2013, at 17:17, Mohammed Hassan 
  mohammed.has...@jollamobile.com wrote:
  
  On Thu, Jul 11, 2013 at 01:21:44PM +, Thomas B. Rücker wrote:
  Hi,
  
  On 07/11/2013 12:40 PM, Erlend Boe wrote:
  I tried to play an .ogg audio file using a http url in my application 
  (from qml), but it is not working.
  The error message that I get is:
  GStreamer; Unable to play - 
  http://upload.wikimedia.org/wikipedia/commons/4/4b/En-us-surname.ogg; 
  

Re: [SailfishDevel] GStreamer does not support HTTP streaming -- Workaround?

2013-07-12 Thread Matthias Barmeier
Hi,

I am new to Sailfish and can only try to give some hints.

Have you checked if pulse audio is running SYSTEM mode ?
If so you will need to have an entry like this in /etc/pulse/system.pa:

load-module module-native-protocol-tcp
auth-ip-acl=127.0.0.1;192.168.1.0/24 listen=0.0.0.0

If this entry is there check the user permissions.

The user must be member of : pulse AND pulse-access.
Hope this helps.
Ciao
Matze

Am 12.07.2013 15:02, schrieb Mohammed Hassan:
 It seems GStreamer pulsesink cannot connect to pulse audio. It then tries a 
 few
 other sinks then fails completely.

 Unfortunately I do not know why pulseaudio is not working correctly.

 Could someone else help here?

 Cheers,

 On Fri, Jul 12, 2013 at 01:58:33PM +0200, Erlend Boe wrote:
 Hi Mohammed,


 Here is the output:

 [root@SailfishEmul ~]# GST_DEBUG='*:2' gst-launch-0.10 playbin2 
 uri=http://download.banshee-project.org/misc/http-test.ogg
 Setting pipeline to PAUSED ...
 Pipeline is PREROLLING ...
 0:00:02.769910826  1363 0x6d901860 WARN   pulse 
 pulsesink.c:540:gst_pulseringbuffer_open_device:audiosink-actual-sink-pulse
  error: Failed to connect: Connection refused
 0:00:02.772671188  1363 0x6d901860 WARNalsa 
 pulse.c:243:pulse_connect: alsalib error: PulseAudio: Unable to connect: 
 Connection refused

 0:00:02.773043893  1363 0x6d901860 WARNalsa 
 gstalsasink.c:694:gst_alsasink_open:audiosink-actual-sink-alsa error: 
 Could not open audio device for playback.
 0:00:02.773357077  1363 0x6d901860 WARNalsa 
 gstalsasink.c:694:gst_alsasink_open:audiosink-actual-sink-alsa error: 
 Playback open error on device 'default': Connection refused
 0:00:02.774327278  1363 0x6d901860 WARNoss4 
 oss4-property-probe.c:374:gst_oss4_property_probe_get_values:audiosink-actual-sink-oss4
  Can't open file descriptor to probe available devices: No such file or 
 directory
 0:00:02.774646351  1363 0x6d901860 WARNoss4sink 
 oss4-sink.c:515:gst_oss4_sink_open:audiosink-actual-sink-oss4 error: Could 
 not open audio device for playback.
 0:00:02.774945041  1363 0x6d901860 WARNoss4sink 
 oss4-sink.c:515:gst_oss4_sink_open:audiosink-actual-sink-oss4 error: 
 system error: No such file or directory
 0:00:02.775477104  1363 0x6d901860 WARN oss 
 gstosssink.c:414:gst_oss_sink_open:audiosink-actual-sink-oss error: Could 
 not open audio device for playback.
 0:00:02.775756292  1363 0x6d901860 WARN oss 
 gstosssink.c:414:gst_oss_sink_open:audiosink-actual-sink-oss error: system 
 error: No such file or directory
 0:00:02.776149518  1363 0x6d901860 WARN  autodetect 
 gstautoaudiosink.c:370:gst_auto_audio_sink_detect:audiosink error: Failed 
 to find a supported audio sink
 0:00:02.776486737  1363 0x6d901860 WARNplaysink 
 gstplaysink.c:1906:gen_audio_chain:playsink0 error: The autoaudiosink 
 element is not working.
 ERROR: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0: The 
 autoaudiosink element is not working.
 Additional debug info:
 gstplaysink.c(1906): gen_audio_chain (): 
 /GstPlayBin2:playbin20/GstPlaySink:playsink0
 ERROR: pipeline doesn't want to preroll.
 Setting pipeline to NULL ...
 Freeing pipeline ...
 [root@SailfishEmul ~]# 


 Regards,
 Erlend

 On 12.07.2013, at 13:23, Mohammed Hassan mohammed.has...@jollamobile.com 
 wrote:

 On Fri, Jul 12, 2013 at 12:25:56PM +0200, Erlend Boe wrote:
 Hi Mohammed,

 sadly it stops working after rebooting the VM. The error that I get in the 
 console is:
 (HelloWorld:2291): GLib-GObject-WARNING **: invalid cast from 
 `WebKitWebSrc' to `GstBaseSrc'
 ** (HelloWorld:2291): CRITICAL **: gst_base_src_is_live: assertion 
 `GST_IS_BASE_SRC (src)' failed
 That is indeed strange but judging by the error below, it doesn't look
 like it's the case.

 and in the simulator:
 [root@SailfishEmul ~]# gst-launch-0.10 playbin2 
 uri=http://download.banshee-project.org/misc/http-test.ogg
 Setting pipeline to PAUSED ...
 Pipeline is PREROLLING ...
 ERROR: from element /GstPlayBin2:playbin20/GstPlaySink:playsink0: The 
 autoaudiosink element is not working.
 Additional debug info:
 gstplaysink.c(1906): gen_audio_chain (): 
 /GstPlayBin2:playbin20/GstPlaySink:playsink0
 ERROR: pipeline doesn't want to preroll.
 Setting pipeline to NULL ...
 Freeing pipeline ...


 Could you please try GST_DEBUG='*:2' gst-launch-0.10 playbin2 
 uri=http://download.banshee-project.org/misc/http-test.ogg

 It should at least give us some more debugging

 Cheers,

 Regards,
 Erlend

 On 12.07.2013, at 08:30, Erlend Boe erlend...@yahoo.com wrote:

 Hi Mohammed,

 after doing zypper install gst-plugins-good, it now works.
 Thanks!

 can you confirm that the gst-plugins-good will be part of the next 
 Sailfish release, and will be installed in the shipping product?

 Regards,
 Erlend

 On 11.07.2013, at 17:17, Mohammed Hassan