Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 108141 - Gstreamer, unable to connect a52dec with alsasink
Summary: Gstreamer, unable to connect a52dec with alsasink
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Library (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: GStreamer package maintainers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 2.12
  Show dependency tree
 
Reported: 2005-10-04 19:15 UTC by Sylvain BERTRAND
Modified: 2005-11-27 06:36 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sylvain BERTRAND 2005-10-04 19:15:17 UTC
ERROR: from element /pipeline0/a52dec0: Internal GStreamer error: pad problem. 
File a bug.
Additional debug info:
gstpad.c(2562): gst_pad_set_explicit_caps: /pipeline0/a52dec0:
failed to negotiate (try_set_caps with "audio/x-raw-float, endianness=(int)1234,
width=(int)32, channels=(int)6, rate=(int)48000, buffer-frames=(int)0,
channel-positions=(GstAudioChannelPosition)< GST_AUDIO_CHANNEL_POSITION_LFE,
GST_AUDIO_CHANNEL_POSITION_FRONT_LEFT, GST_AUDIO_CHANNEL_POSITION_FRONT_CENTER,
GST_AUDIO_CHANNEL_POSITION_FRONT_RIGHT, GST_AUDIO_CHANNEL_POSITION_REAR_LEFT,
GST_AUDIO_CHANNEL_POSITION_REAR_RIGHT >" returned REFUSED)
ERROR: from element /pipeline0/a52dec0: Internal GStreamer error: negotiation
problem.  File a bug.
Execution ended after 1 iterations (sum 405751000 ns, average 405751000 ns, min
405751000 ns, max 405751000 ns).

Reproducible: Always
Steps to Reproduce:
1.
2.
3.
Comment 1 Sylvain BERTRAND 2005-10-04 19:16:31 UTC
The most pertinent command line I used to generate the error:
$gst-launch-0.8 dvdreadsrc title=1 chapter=1 ! dvddemux name=toto
toto.current_audio ! a52dec ! alsasink
Comment 2 Giacomo Perale 2005-10-05 16:37:18 UTC
could it be the (in)famous alsasink problem?

http://bugzilla.gnome.org/show_bug.cgi?id=315121
Comment 3 Sylvain BERTRAND 2005-10-05 18:14:22 UTC
Rhythmbox works fine.
If I use the "device=hw:0' property on the alsasink filter it does refuse to start.
Maybe this bug is related.
Comment 4 John N. Laliberte (RETIRED) gentoo-dev 2005-10-06 15:25:09 UTC
this bug does look like the upstream ones that debian users reported.

have you tried this? from (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=305189)
"
 I suspect this is because alsasink doesn't work "out of the box" with
 your alsa driver.  Please try the following two tests:
 1/ try running the very same pipeline with "! alsasink device=hw:0" at
 the end of the pipeline

 2/ try creating a .asoundrc file in your home directory with the
 following content:
    pcm.!default {
    type hw
    card 0
    }

    ctl.!default {
    type hw
    card 0
    }
 and then try a pipeline with alsasink (without the device= flag).
"

if you already have a .asoundrc, another suggestion was to get rid of it ( move
it ) and try again.

Report back results.  We'll probably follow upstream on this.
Comment 5 Sylvain BERTRAND 2005-10-06 17:06:39 UTC
With the provided asoundrc file, I get the same error than without the asoundrc
file and with alsasink device=hw:0

$gst-launch-0.8 dvdreadsrc title=1 chapter=1 ! dvddemux name=toto
toto.current_audio ! a52dec ! alsasink device=hw:0
EXECUTION du tube en cours ...
libdvdread: Using libdvdcss version 1.2.9 for DVD access
No accelerated IMDCT transform found

(gst-launch-0.8:7404): GStreamer-WARNING **: element a52dec0 claimed
state-change success,but state didn't change to PAUSED. State is READY (PAUSED
pending), fix the element
ERROR


I suspect a mismatch between my alsa module in kernel 2.6.13-r3 and my alsa
userland... I'm going to recompile all that... if it does work I'll be back
shortly, if not...
Comment 6 Sylvain BERTRAND 2005-10-18 17:16:06 UTC
Does not work...
Comment 7 Sylvain BERTRAND 2005-10-23 18:15:31 UTC
Updated to alsa 1.0.10rc2. I got it working with:

gst-launch-0.8 dvdreadsrc location=/dev/hdc ! dvddemux name=foo
foo.current_audio ! a52dec ! audioconvert ! alsasink device=hw:0

I must use the audioconvert filter and must use the device=hw:0(or the .asoundrc
file) parameter in order to make everything work properly.
I tried esdsink... unable to get sound from it.
Comment 8 Sylvain BERTRAND 2005-11-08 14:44:12 UTC
Gone with alsa 1.0.10rc3
Comment 9 Zaheer Abbas Merali (RETIRED) gentoo-dev 2005-11-27 06:36:25 UTC
This is not a bug, you need an audioconvert between a52dec and alsasink