GNOME Bugzilla – Bug 168508
sound-juice doesn't work when selecting WAV quality
Last modified: 2006-09-24 16:28:21 UTC
it works with FLAC and Ogg but not if i select WAV
Please explain "doesn't work". Does it crash or refuse to rip? If there are any messages in the terminal, or it crashes and you can get a stack trace, please add it here.
it refuses to rip, in the terminal i can see this: ** (sound-juicer:26596): WARNING **: Couldn't find an encoding element with tag support. A file with the name of the track is created, it is 0 bytes long, and the progress bar doesn't advance even if i wait 10 minutes. It just won't rip. If i choose Flac or ogg it works without problem
This is probably a GStreamer bug. What version of gstreamer and gstreamer-plugins do you have?
i'm using gstreamer CVS HEAD from a week and a half ago or something like that sorry for the delay in answering.
I have the same behavior here wih gstreamer 0.8.8, when ripping in wav format, sound juicer shows the ripping progress dialog, then enters in some kind of infinite loop, the CPU shows 100% usage, until i click cancel, then everything stops, and sound-juicer doesn't crash. I have the same message in the console: ** (sound-juicer:26596): WARNING **: Couldn't find an encoding element with tag support. With the same CD, ogg encoding works fine, and flac encoding causes segfault ! Is that related, if not, i'll open another bug.
Ross, I can see the same thing (cannot rip to wav) on an up-to-date Debian Unstable box. I'm using the Voice audio profile with the following pipeline: audio/x-raw-int,rate=22050,channels=1 ! wavenc name=enc How can I better debug this problem to see if GStreamer is the culprit? Is it possible to find the exact pipeline that sound-juicer uses to test from the command line (using gst-launch-0.8)? - Emil A snippet of the gstreamer packages and their versions: ii gstreamer0.8-a52dec 0.8.8-3 ATSC A/52 audio decoder plugin for GStreamer ii gstreamer0.8-aa 0.8.8-3 AA-lib plugin for GStreamer ii gstreamer0.8-alsa 0.8.8-3 ALSA plugin for GStreamer ii gstreamer0.8-artsd 0.8.8-3 aRtsd plugin for GStreamer ii gstreamer0.8-audiofile 0.8.8-3 AudioFile plugin for GStreamer ii gstreamer0.8-caca 0.8.8-3 Colour AsCii Art library plugin for GStreame ii gstreamer0.8-cdparanoia 0.8.8-3 cdparanoia plugin for GStreamer ii gstreamer0.8-dv 0.8.8-3 DV plugin for GStreamer ii gstreamer0.8-dvd 0.8.8-3 DVD plugin for GStreamer ii gstreamer0.8-esd 0.8.8-3 Enlightened Sound Daemon plugin for GStreame ii gstreamer0.8-festival 0.8.8-3 Festival speech synthesis plugin for GStream ii gstreamer0.8-flac 0.8.8-3 FLAC plugin for GStreamer ii gstreamer0.8-gnomevfs 0.8.8-3 Gnome VFS plugin for GStreamer ii gstreamer0.8-gsm 0.8.8-3 GSM plugin for GStreamer ii gstreamer0.8-hermes 0.8.8-3 colorspace conversion plugin for GStreamer b ii gstreamer0.8-jack 0.8.8-3 JACK plugin for GStreamer ii gstreamer0.8-jpeg 0.8.8-3 JPEG plugin for GStreamer ii gstreamer0.8-mad 0.8.8-3 MAD MPEG audio decoder plugin for GStreamer ii gstreamer0.8-mikmod 0.8.8-3 MikMod decoder plugin for GStreamer ii gstreamer0.8-misc 0.8.8-3 Collection of various GStreamer plugins ii gstreamer0.8-mpeg2dec 0.8.8-3 MPEG1 and MPEG2 video decoder plugin for GSt ii gstreamer0.8-oss 0.8.8-3 OSS plugin for GStreamer ii gstreamer0.8-plugin-apps 0.8.8-3 Simple GStreamer applications ii gstreamer0.8-sdl 0.8.8-3 SDL videosink plugin for GStreamer ii gstreamer0.8-sid 0.8.8-3 C64 SID decoder plugin for GStreamer ii gstreamer0.8-speex 0.8.8-3 Speex plugin for GStreamer ii gstreamer0.8-theora 0.8.8-3 Theora plugin for GStreamer ii gstreamer0.8-tools 0.8.10-1 Tools for use with GStreamer ii gstreamer0.8-vorbis 0.8.8-3 Vorbis plugin for GStreamer ii gstreamer0.8-x 0.8.8-3 X videosink plugin for GStreamer ii libgstreamer-gconf0.8-0 0.8.8-3 GConf support for GStreamer ii libgstreamer-gconf0.8-dev 0.8.8-3 Development files for GConf support for GStr ii libgstreamer-plugins0.8-0 0.8.8-3 Various GStreamer libraries and library plug ii libgstreamer-plugins0.8-dev 0.8.8-3 Development files for various GStreamer libr ii libgstreamer0.8-0 0.8.10-1 Core GStreamer libraries, plugins, and utili ii libgstreamer0.8-dev 0.8.10-1 GStreamer development libraries and headers
I can replicate this, but Ronald using gstreamer from CVS cannot. This may be a bug fixed in gst-plugins 0.8.10.
I can reproduce this. ** (sound-juicer:3013): WARNING **: Couldn't find an encoding element with tag support pkg-config --modversion gstreamer-plugins-0.8 ==> 0.8.10.1 pkg-config --modversion gstreamer-0.8 ==> 0.8.10.1
That warning is to be expected (WAV doesn't support tags) and is unrealted to the hang. A gdb backtrace whilst its hanging, and the strace output if it's in a busy loop, would help.
Stack Trace while in a busy loop. I get different stack trace at different time,.. STACK TRACE 1: --------------------------------------------------------------------------------
+ Trace 61718
Now in the latest CVS HEAD source, I get some errors in the command line and the application crashes. ** (sound-juicer:1610): WARNING **: Cannot link pipeline, very bad! (sound-juicer:1610): GStreamer-CRITICAL **: gst_element_set_state: assertion `GST_IS_ELEMENT (element)' failed (sound-juicer:1610): GLib-GObject-WARNING **: invalid uninstantiatable type `(null)' in cast to `GObject' (sound-juicer:1610): GLib-GObject-CRITICAL **: g_object_set: assertion `G_IS_OBJECT (object)' failed ** (sound-juicer:1610): WARNING **: Couldn't find an encoding element with tag support (sound-juicer:1610): GStreamer-CRITICAL **: gst_element_set_state: assertion `GST_IS_ELEMENT (element)' failed And here is the stack trace gdb) thread apply all bt
+ Trace 61775
Thread 4 (Thread -167883856 (LWP 1643))
Thread 1 (Thread -163264832 (LWP 1638))
AHA I knew that line would be useful. The problem is that the pipeline isn't linking properly. This is odd as sj-extractor.c, in build_encoder(), puts an audioconvert element in front of the pipeline taken from the profile. Thomas, got any idea why this would fail with the WAV profile?
Can anyone replicate this with GStreamer 0.8.10?
Ross: I still do, with GStreamer and GStreamer-plugins 0.8.10.1 Error on the command line: ** (sound-juicer:27871): WARNING **: Cannot link pipeline, very bad! Backtrace was generated from '/home/madan/opt/gnome2/bin/sound-juicer' Using host libthread_db library "/lib/libthread_db.so.1". [Thread debugging using libthread_db enabled] [New Thread -1208871232 (LWP 27871)] [New Thread 21945264 (LWP 27936)] [New Thread 21679024 (LWP 27935)] 0x00f64402 in ?? ()
+ Trace 62122
Thread 1 (Thread -1208871232 (LWP 27871))
*** Bug 315129 has been marked as a duplicate of this bug. ***
That's still an issue with gstreamer0.10
Sebastien, can you provide a backtrace for the hang ? Given that there is no opt scheduler anymore in 0.10, and neither are some other things, it'd be interesting to see what it's doing.
With the latest SJ the "Voice, Lossless" pipeline is failing to link: cdparanoiasrc ! queue ! audioconvert ! audio/x-raw-int,rate=22050,channels=1 ! wavenc name=enc ! gnomevfssink Does anyone actually use this profile? Large files with low quality, what is the point?
Ubuntu https://launchpad.net/distros/ubuntu/+source/sound-juicer/+bug/38428 is about that too: "Using dapper, Notebook Panasonic Cf-Y4 (sound : intel ICH6) Trying ripping CD, the following error is displayed. Sound Juicer could not extract this CD Reason: Failed to link pipeline. This problem happens only if I select wav in the preferences, Ogg and Flac seem working. Strangely works if launch gnome-audio-profiles-properties select wav item change audio/x-raw-int,rate=22050,channels=1 ! wavenc name=enc in audio/x-raw-int,rate=44100,channels=1 ! wavenc name=enc"
Created attachment 73264 [details] [review] add audioresample element to extractor pipeline > With the latest SJ the "Voice, Lossless" pipeline is failing to link: > > cdparanoiasrc ! queue ! audioconvert ! audio/x-raw-int,rate=22050,channels=1 ! > wavenc name=enc ! gnomevfssink This patch should fix that.
Applied to CVS, thanks Tim. Obvious really. :/ Everyone should note that "Lossless - Voice (WAV)" is *NOT* 100% lossless CD quality audio: it's mono 22khz audio.
Perhaps, to make everyone know, the label should be changed to "(Very) High Quality - Voice (WAV)"
Its not high quality. It's lossless. There is a big difference, and saying "very high quality" is more misleading than "lossless".
Then what about "Nearly Lossless"?
Its not nearly lossless, it is lossless. Anyway, SJ isn't the place to discuss the naming of the default profiles.