GNOME Bugzilla – Bug 140587
Gstreamer halts playing after some seconds
Last modified: 2009-08-15 18:40:50 UTC
# gst-launch-0.8 filesrc location=myfile.mp3 ! mad ! osssink gstreamer starts playing gstreamer stops playing after several seconds (varies) xmms plays the file correctly (using oss output plugin) gst debug output ends with some message about unreferencing GstAudioClock elements I'm using linux-2.6.5 and a usb audio box (Sound Blaster MP3+)
Does this happen with every media file? Also, does this happen with 'gst-launch-0.8 sinesrc ! audioconvert ! osssink'?
Yes, this happens also with 'gst-launch-0.8 sinesrc ! audioconvert ! osssink', but it only happens when I'm using my external usb - ahem - soundcard as first sound-device in alsa (so it might be an alsa bug, not a gstreamer bug, but, like I said, it doesn't happend when I'm using xmms). I'll send gstreamer debug output if you tell me what debug settings to use :-) Here's my modprobe.conf: include /etc/modprobe.conf.dist # network adapter alias eth0 natsemi # additional usb config alias usb-controller ohci-hcd #install uhci-hcd /sbin/modprobe ohci-hcd # --- ALSA configuration alias char-major-116 snd alias char-major-14 soundcore alias snd-card-1 snd-ali5451 alias snd-card-0 snd-usb-audio #--- OSS compatibility alias alias sound-slot-1 snd-ali5451 alias sound-service-1-0 snd-mixer-oss alias sound-service-1-1 snd-seq-oss alias sound-service-1-3 snd-pcm-oss alias sound-service-1-8 snd-seq-oss alias sound-service-1-12 snd-pcm-oss alias sound-slot-0 snd-usb-audio alias sound-service-0-0 snd-mixer-oss alias sound-service-0-3 snd-pcm-oss alias sound-service-0-12 snd-pcm-oss #--- Options options snd major=116 cards_limit=4 options snd-ali5451 index=1 options snd-usb-audio index=0 #--- ALSA configuration END install probe-usbmouse /sbin/modprobe mousedev || /bin/true install probe-usbkeyboard /sbin/modprobe keybdev || /sbin/modprobe usbkbd || /bin/true alias char-major-171 raw1394
It is ALSA, right? Does it work if you use: gst-launch filesrc location=$file ! mad ! audioconvert ! audioscale ! audio/x-raw-int,rate=48000 ! alsasink ? The MP3+ is similar to the Audigy2NX and requires the above (audioscale ! audio/x-raw-int,rate=48000 ! alsasink) as audiosink GConf key because the device detection is broken (this is a driver bug). With that GConf key, all works fine.
Nothing heard so marking as closed, if you still have issues please reopen.