xpra icon
Bug tracker and wiki

This bug tracker and wiki are being discontinued
please use https://github.com/Xpra-org/xpra instead.

Opened 9 years ago

Closed 9 years ago

Last modified 8 months ago

#236 closed defect (fixed)

XPRA_SOUND_TEST=1 fails on local system

Reported by: Smo Owned by: Antoine Martin
Priority: blocker Milestone: 0.8
Component: core Version: trunk
Keywords: Cc:

Description (last modified by Antoine Martin)


When trying to use the sound test to produce a test tone I get the following output with those variables set. The output keeps repeating itself but this is a small portion.

2013-01-16 22:26:25,274 mmap is enabled using 134MBytes area in /tmp/xpra.Bgxe0J.mmap
2013-01-16 22:26:25,296 Attached to :10 (press Control-C to detach)

2013-01-16 22:26:25,366 starting aac sound sink
2013-01-16 22:26:25,372 pipeline=appsrc name=src ! mp3parse ! faad ! \
    volume name=volume ! audioconvert ! audioresample ! \
    queue name=queue max-size-time=20000000 leaky=0 ! autoaudiosink
2013-01-16 22:26:25,417 failed to start sound sink
Traceback (most recent call last):
  File "/usr/lib64/python2.7/site-packages/xpra/client.py", line 912, in start_sound_sink
    self.sound_sink = SoundSink(codec=codec)
  File "/usr/lib64/python2.7/site-packages/xpra/sound/sink.py", line 73, in __init__
  File "/usr/lib64/python2.7/site-packages/xpra/sound/sound_pipeline.py", line 45, in setup_pipeline_and_bus
    self.pipeline = gst.parse_launch(pipeline_str)
GError: could not link mpegaudioparse0 to faad0

Change History (5)

comment:1 Changed 9 years ago by Antoine Martin

  • your pipeline is using faad (which is AAC not mp3), try with r2582 which will honour the intended codec preference order (and should therefore select MP3) - if that fixes it, it means I don't have AAC installed anywhere and therefore never hit this codepath
  • also, you should try with XPRA_SOUND_TEST=1 first (as it relies on fewer components)

Here's my pipeline in test mode:

audiotestsrc volume=0.4 freq=110 wave=2 ! audioconvert ! audioresample ! lamemp3enc ! appsink name=sink

comment:2 Changed 9 years ago by Antoine Martin

Description: modified (diff)
Owner: set to Antoine Martin
Status: newaccepted

comment:3 Changed 9 years ago by Smo

Great the new update fixed the problem.

comment:4 Changed 9 years ago by Antoine Martin

Resolution: fixed
Status: acceptedclosed

comment:5 Changed 8 months ago by migration script

this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/236

Note: See TracTickets for help on using tickets.