Quantcast

gstreamer interaction with Gnome

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

gstreamer interaction with Gnome

Jim McCloskey

I hope it's OK to ask for help with user difficulties on this list. I
am at my wits' end trying to understand this problem and nobody on the
Debian lists has been able to help.

OS: Debian testing (squeeze)
libgstreamer0.10-0, version 0.10.26

The problem has to do with audio playback:

All basic alsa applications work fine (aplay, alsaplayer, mpg321,
ogg123 etc); audio playback with mplayer (and derivatives) works fine;
audio playback with xine (and derivatives) works fine.

But with all and only the audio players that use gstreamer as their
backend (rhythmbox, banshee, listen and so on), the track seems to
play, no errors are reported, but there is silence.

However, this on the command-line:

  gst-launch-0.10 filesrc location="miles-ahead.ogg" ! oggdemux ! vorbisdec ! audioconvert ! audioresample ! alsasink

produces great audio playback, as does this:

  gst-launch-0.10 filesrc location="conamara.mp3" ! mad ! audioconvert ! audioresample ! alsasink

Also this:

   gst-launch-0.10 filesrc location="coinnleach.wav" ! wavparse ! alsasink

works great.

   gst-launch-0.10 audiotestsrc ! alsasink

produces a pure tone.

All of this seems to suggest that there is nothing inherently wrong
either with the gstreamer setup or with the alsa setup.

However, this:

   gst-launch-0.10 playbin uri=file:///home/jim/Music/coinnleach.wav
   gst-launch-0.10 playbin2 uri=file:///home/jim/Music/coinnleach.wav

produces no errors:

    Setting pipeline to PAUSED ...
    Pipeline is PREROLLING ...
    Pipeline is PREROLLED ...
    Setting pipeline to PLAYING ...
    New clock: GstPulseSinkClock

but produces only silence.  No audible playback. If Gnome applications
in general use playbin or playbin2, perhaps this is the ultimate source
of the problem?

Any help, or pointers to relevant documentation, would be really appreciated.

Thank you very much,

Jim

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gstreamer interaction with Gnome

Stefan Sauer
Jim McCloskey wrote:

> I hope it's OK to ask for help with user difficulties on this list. I
> am at my wits' end trying to understand this problem and nobody on the
> Debian lists has been able to help.
>
> OS: Debian testing (squeeze)
> libgstreamer0.10-0, version 0.10.26
>
> The problem has to do with audio playback:
>
> All basic alsa applications work fine (aplay, alsaplayer, mpg321,
> ogg123 etc); audio playback with mplayer (and derivatives) works fine;
> audio playback with xine (and derivatives) works fine.
>
> But with all and only the audio players that use gstreamer as their
> backend (rhythmbox, banshee, listen and so on), the track seems to
> play, no errors are reported, but there is silence.
>
> However, this on the command-line:
>
>   gst-launch-0.10 filesrc location="miles-ahead.ogg" ! oggdemux ! vorbisdec ! audioconvert ! audioresample ! alsasink
>
> produces great audio playback, as does this:
>
>   gst-launch-0.10 filesrc location="conamara.mp3" ! mad ! audioconvert ! audioresample ! alsasink
>
> Also this:
>
>    gst-launch-0.10 filesrc location="coinnleach.wav" ! wavparse ! alsasink
>
> works great.
>
>    gst-launch-0.10 audiotestsrc ! alsasink
>
> produces a pure tone.
>
> All of this seems to suggest that there is nothing inherently wrong
> either with the gstreamer setup or with the alsa setup.
>
> However, this:
>
>    gst-launch-0.10 playbin uri=file:///home/jim/Music/coinnleach.wav
>    gst-launch-0.10 playbin2 uri=file:///home/jim/Music/coinnleach.wav
>
> produces no errors:
>
>     Setting pipeline to PAUSED ...
>     Pipeline is PREROLLING ...
>     Pipeline is PREROLLED ...
>     Setting pipeline to PLAYING ...
>     New clock: GstPulseSinkClock
>
> but produces only silence.  No audible playback. If Gnome applications
> in general use playbin or playbin2, perhaps this is the ultimate source
> of the problem?
>  
run
> gstreamer-properties
what audiosink is selected there?

Stefan

> Any help, or pointers to relevant documentation, would be really appreciated.
>
> Thank you very much,
>
> Jim
>
> ------------------------------------------------------------------------------
> Download Intel® Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>  


------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gstreamer interaction with Gnome

Marco Ballesio
Hi,

checking on the totem code (both Ubuntu 9.10 or Fedora 12) and it
always overrides the gstreamer-properties settings with pulsesink. Ig
you e.g. don't want to use pulseaudio in your CPU bound box you'll
have to either manually modify totem or not use it as well.

Are there any bugs in totem about this?

Regards

On Mon, Mar 22, 2010 at 6:55 PM, Stefan Kost <[hidden email]> wrote:

> Jim McCloskey wrote:
>> I hope it's OK to ask for help with user difficulties on this list. I
>> am at my wits' end trying to understand this problem and nobody on the
>> Debian lists has been able to help.
>>
>> OS: Debian testing (squeeze)
>> libgstreamer0.10-0, version 0.10.26
>>
>> The problem has to do with audio playback:
>>
>> All basic alsa applications work fine (aplay, alsaplayer, mpg321,
>> ogg123 etc); audio playback with mplayer (and derivatives) works fine;
>> audio playback with xine (and derivatives) works fine.
>>
>> But with all and only the audio players that use gstreamer as their
>> backend (rhythmbox, banshee, listen and so on), the track seems to
>> play, no errors are reported, but there is silence.
>>
>> However, this on the command-line:
>>
>>   gst-launch-0.10 filesrc location="miles-ahead.ogg" ! oggdemux ! vorbisdec ! audioconvert ! audioresample ! alsasink
>>
>> produces great audio playback, as does this:
>>
>>   gst-launch-0.10 filesrc location="conamara.mp3" ! mad ! audioconvert ! audioresample ! alsasink
>>
>> Also this:
>>
>>    gst-launch-0.10 filesrc location="coinnleach.wav" ! wavparse ! alsasink
>>
>> works great.
>>
>>    gst-launch-0.10 audiotestsrc ! alsasink
>>
>> produces a pure tone.
>>
>> All of this seems to suggest that there is nothing inherently wrong
>> either with the gstreamer setup or with the alsa setup.
>>
>> However, this:
>>
>>    gst-launch-0.10 playbin uri=file:///home/jim/Music/coinnleach.wav
>>    gst-launch-0.10 playbin2 uri=file:///home/jim/Music/coinnleach.wav
>>
>> produces no errors:
>>
>>     Setting pipeline to PAUSED ...
>>     Pipeline is PREROLLING ...
>>     Pipeline is PREROLLED ...
>>     Setting pipeline to PLAYING ...
>>     New clock: GstPulseSinkClock
>>
>> but produces only silence.  No audible playback. If Gnome applications
>> in general use playbin or playbin2, perhaps this is the ultimate source
>> of the problem?
>>
> run
>> gstreamer-properties
> what audiosink is selected there?
>
> Stefan
>> Any help, or pointers to relevant documentation, would be really appreciated.
>>
>> Thank you very much,
>>
>> Jim
>>
>> ------------------------------------------------------------------------------
>> Download Intel&#174; Parallel Studio Eval
>> Try the new software tools for yourself. Speed compiling, find bugs
>> proactively, and fine-tune applications for parallel performance.
>> See why Intel Parallel Studio got high marks during beta.
>> http://p.sf.net/sfu/intel-sw-dev
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gstreamer interaction with Gnome

Tim-Philipp Müller-2
On Fri, 2010-04-16 at 09:49 +0300, Marco Ballesio wrote:

Hi,

> checking on the totem code (both Ubuntu 9.10 or Fedora 12) and it
> always overrides the gstreamer-properties settings with pulsesink. Ig
> you e.g. don't want to use pulseaudio in your CPU bound box you'll
> have to either manually modify totem or not use it as well.
>
> Are there any bugs in totem about this?

Last I checked, gstreamer-properties was useless for configuring
totem/rhythmbox/etc., because it configures the wrong gconf key for the
audio output. Totem/rhythmbox and other playback applications use
gconfaudiosink with the 'Music and Movies' profile, which is configured
in the 'musicaudiosink' key in gconf, while gstreamer-properties sets
the 'audiosink' key (gconftool-2 -R /system/gstreamer/0.10/default).

 Cheers
  -Tim



------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: gstreamer interaction with Gnome

Marco Ballesio
Hi,

last time I checked in Totem code the gconf element was factually
overridden by pulsesink _in the source code_ , that is "no pulseaudio
no party".

Maybe they actually fixed it in the latest releases, I'll check in
totem sources asap.

For a quick check you may try and do the following:

1) unistall / stop pulseaudio on your pc
2) set the audio sink element to e.g. alsasink from gstreamer-properties
3) try to play with totem somethink with an audio track.

If it works, the issue is fixed.

Regards,
Marco

On Fri, Apr 16, 2010 at 11:26 AM, Tim-Philipp Müller <[hidden email]> wrote:

> On Fri, 2010-04-16 at 09:49 +0300, Marco Ballesio wrote:
>
> Hi,
>
>> checking on the totem code (both Ubuntu 9.10 or Fedora 12) and it
>> always overrides the gstreamer-properties settings with pulsesink. Ig
>> you e.g. don't want to use pulseaudio in your CPU bound box you'll
>> have to either manually modify totem or not use it as well.
>>
>> Are there any bugs in totem about this?
>
> Last I checked, gstreamer-properties was useless for configuring
> totem/rhythmbox/etc., because it configures the wrong gconf key for the
> audio output. Totem/rhythmbox and other playback applications use
> gconfaudiosink with the 'Music and Movies' profile, which is configured
> in the 'musicaudiosink' key in gconf, while gstreamer-properties sets
> the 'audiosink' key (gconftool-2 -R /system/gstreamer/0.10/default).
>
>  Cheers
>  -Tim
>
>
>
> ------------------------------------------------------------------------------
> Download Intel&#174; Parallel Studio Eval
> Try the new software tools for yourself. Speed compiling, find bugs
> proactively, and fine-tune applications for parallel performance.
> See why Intel Parallel Studio got high marks during beta.
> http://p.sf.net/sfu/intel-sw-dev
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Loading...