Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 254429 - media-libs/gstreamer: No sound with gstreamer
Summary: media-libs/gstreamer: No sound with gstreamer
Status: RESOLVED WORKSFORME
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Gentoo Sound Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2009-01-10 15:02 UTC by silent
Modified: 2009-01-14 20:53 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 silent 2009-01-10 15:02:09 UTC
Can't here sound via application using gstreamer

Reproducible: Always

Steps to Reproduce:
1. System -> Preferences -> Sound
2. Sound playback: ALSA
3. Click "Test"

Actual Results:  
audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink: Could not open audio device for playback.

Expected Results:  
Any sound.

No sound in rhythmbox, totem.
But there is sound in browser at YouTube (flash, no gstreamer)

It is gstreamer problem, though.

What can I do?
Comment 1 silent 2009-01-10 15:03:35 UTC
emerge --info

Portage 2.1.6.4 (default/linux/x86/2008.0, gcc-4.1.2, glibc-2.6.1-r0, 2.6.27-gentoo-r7 i686)
=================================================================
System uname: Linux-2.6.27-gentoo-r7-i686-Intel-R-_Core-TM-2_CPU_T5500_@_1.66GHz-with-glibc2.0
Timestamp of tree: Sat, 10 Jan 2009 13:15:01 +0000
app-shells/bash:     3.2_p39
dev-java/java-config: 1.3.7-r1, 2.1.6-r1
dev-lang/python:     2.5.2-r7
sys-apps/baselayout: 1.12.11.1
sys-apps/sandbox:    1.2.18.1-r2
sys-devel/autoconf:  2.13, 2.63
sys-devel/automake:  1.5, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10.2
sys-devel/binutils:  2.18-r3
sys-devel/gcc-config: 1.4.0-r4
sys-devel/libtool:   1.5.26
virtual/os-headers:  2.6.27-r2
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -mtune=prescott -march=prescott -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/udev/rules.d"
CXXFLAGS="-O2 -mtune=prescott -march=prescott -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="distlocks fixpackages parallel-fetch protect-owned sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://mirror.yandex.ru/gentoo-distfiles"
LANG="C"
LDFLAGS="-Wl,-O1"
LINGUAS="en"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/bobrik-cleartype"
SYNC="rsync://rsync.mirror.yandex.ru/gentoo-portage/"
USE="X a52 aac acl acpi alsa beagle bluetooth bzip2 cairo cli cracklib crypt cups dbus djvu dri dvb dvd exif fam ffmpeg flac fortran fuse gdbm gif gnome gnome-keyring gphoto2 gstreamer gtk hal iconv isdnlog ithreads jpeg jpeg2k libnotify lzma mad midi mmx mp3 mpeg mudflap nautilus ncurses nls nptl nptlonly nsplugin ogg opengl openmp pam pcre perl png pppd python raw readline reflection samba session spl sse sse2 ssl startup-notification svg sysfs tcpd threads tiff truetype unicode x86 xcomposite xml xorg xulrunner xvid zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="keyboard mouse synaptics" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en" USERLAND="GNU" VIDEO_CARDS="intel"
Unset:  CPPFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, FFLAGS, INSTALL_MASK, LC_ALL, MAKEOPTS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 2 Nicolas Uda 2009-01-11 15:49:47 UTC
emerge gst-plugins-alsa 
That should solve your problem, i encountered the same problem today. I think the gstreamer ebuild should have a use flag "alsa" that depends on the gstreamer alsa plugins. Ill write a sample one right now and upload it in afew minutes.
Comment 3 silent 2009-01-12 05:45:07 UTC
I tried it already.
And will try today, after full system rebuild.
Comment 4 silent 2009-01-12 20:07:53 UTC
The same situation =(
Comment 5 silent 2009-01-12 23:19:05 UTC
Please help me. Maybe some supposition?
Comment 6 Olivier Crete (RETIRED) gentoo-dev 2009-01-13 20:07:24 UTC
What does this give you ?

GST_DEBUG=alsasink:5 gst-launch audiotestsrc ! alsasink
Comment 7 silent 2009-01-13 21:36:05 UTC
silent@silentnote ~ $ gst-launch-0.10 audiotestsrc

Setting pipeline to PAUSED ...
Pipeline is PREROLLED ...
ERROR: from element /pipeline0/audiotestsrc0: Internal data flow error.
Additional debug info:
gstbasesrc.c(2240): gst_base_src_loop (): /pipeline0/audiotestsrc0:
streaming task paused, reason not-linked (-1)
ERROR: pipeline doesn't want to preroll.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
Setting pipeline to NULL ...
FREEING pipeline ...
silent@silentnote ~ $ alsasink
-bash: alsasink: command not found


silent@silentnote ~ $ gst-launch-0.10 audiotestsrc ! alsasink

Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /pipeline0/alsasink0: Could not open audio device for playback.
Additional debug info:
gstalsasink.c(697): gst_alsasink_open (): /pipeline0/alsasink0:
Playback open error on device 'default': Function not implemented
Setting pipeline to NULL ...
FREEING pipeline ...
Comment 8 silent 2009-01-13 21:46:28 UTC
Sorry.

GST_DEBUG=alsasink:5 gst-launch-0.10 audiotestsrc ! alsasink
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /pipeline0/alsasink0: Could not open audio device for playback.
Additional debug info:
gstalsasink.c(697): gst_alsasink_open (): /pipeline0/alsasink0:
Playback open error on device 'default': Function not implemented
Setting pipeline to NULL ...
FREEING pipeline ...


Maybe I need to recompile somewhat with [debug] use flag ?
Comment 9 Olivier Crete (RETIRED) gentoo-dev 2009-01-13 21:47:33 UTC
You're alsa is not configure properly...

see

http://www.gentoo.org/doc/en/alsa-guide.xml
Comment 10 silent 2009-01-13 23:34:15 UTC
So why can I hear sound from netscape-flash? It is not using alsa?
OK, I'll try to check the doc now, thanks.
Comment 11 silent 2009-01-14 00:15:46 UTC
1. Rebuild kernel with alsa support as a module with my sound card
2. alsaconf as root and my sound card selection, then:

Running update-modules...
 * Updating /etc/modprobe.conf by hand ... [ ok ]
 * Updating modules.dep ... [ ok ]
Loading driver...
 * Loading ALSA modules ...
 * Could not detect custom ALSA settings. Loading all detected alsa drivers.
 * Loading: snd_hda_intel ... [ ok ]
 * Loading: snd-pcm-oss ... [ ok ]
 * Loading: snd-seq ... [ ok ]
 * Restoring Mixer Levels... [ ok ]
Setting default volumes...

and OK.

3. At the reboot (alsasound at the boot runlevel) I see only snd-pcm-oss and snd-seq modules, not snd_hda_intel.

The result:

audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink profile=chat: Could not open audio device for playback.
Comment 12 silent 2009-01-14 00:19:47 UTC
silentnote home # GST_DEBUG=alsasink:5 gst-launch-0.10 audiotestsrc wave=sine freq=512 ! audioconvert ! audioresample ! gconfaudiosink profile=chat
Setting pipeline to PAUSED ...
ERROR: Pipeline doesn't want to pause.
ERROR: from element /autoaudiosink0-actual-sink-alsa: Could not open audio device for playback.
Additional debug info:
gstalsasink.c(697): gst_alsasink_open (): /autoaudiosink0-actual-sink-alsa:
Playback open error on device 'default': Function not implemented
Setting pipeline to NULL ...
FREEING pipeline ...
Comment 13 silent 2009-01-14 07:40:16 UTC
sorry, but reopening
Comment 14 Rémi Cardona (RETIRED) gentoo-dev 2009-01-14 07:43:16 UTC
You have ALSA issues that you need to fix first. And netscape-flash is possibly the worst application to debug the problem.

Please emerge mplayer with the alsa USE flag, or aplay, and use those tools to debug alsa.

Once alsa works properly, and if gstreamer still fails, please reopen another bug.

Thanks
Comment 15 silent 2009-01-14 08:27:18 UTC
ok, I'll try it at evening.
thank you.
Comment 16 silent 2009-01-14 20:53:49 UTC
Don't know what it is =(
Thanks.