After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 168508 - sound-juice doesn't work when selecting WAV quality
sound-juice doesn't work when selecting WAV quality
Status: RESOLVED FIXED
Product: sound-juicer
Classification: Applications
Component: ripping
2.14.x
Other Linux
: Normal normal
: ---
Assigned To: Sound Juicer Maintainers
Sound Juicer Maintainers
: 315129 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2005-02-25 14:58 UTC by Diego González
Modified: 2006-09-24 16:28 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
add audioresample element to extractor pipeline (880 bytes, patch)
2006-09-23 11:08 UTC, Tim-Philipp Müller
none Details | Review

Description Diego González 2005-02-25 14:58:14 UTC
it works with FLAC and Ogg but not if i select WAV
Comment 1 Ross Burton 2005-02-25 18:35:07 UTC
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.
Comment 2 Diego González 2005-02-25 21:28:28 UTC
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
Comment 3 Ross Burton 2005-02-28 12:06:47 UTC
This is probably a GStreamer bug.

What version of gstreamer and gstreamer-plugins do you have?
Comment 4 Diego González 2005-03-03 11:42:06 UTC
i'm using gstreamer CVS HEAD from a week and a half ago or something like that

sorry for the delay in answering.
Comment 5 Raphael Slinckx 2005-03-20 12:54:07 UTC
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.
Comment 6 Emil Soleyman-Zomalan 2005-06-24 23:21:35 UTC
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
Comment 7 Ross Burton 2005-07-01 18:19:55 UTC
I can replicate this, but Ronald using gstreamer from CVS cannot.  This may be a
bug fixed in gst-plugins 0.8.10.
Comment 8 Madhan Raj M 2005-07-11 07:04:50 UTC
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
Comment 9 Ross Burton 2005-07-11 11:47:22 UTC
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.
Comment 10 Madhan Raj M 2005-07-14 08:43:34 UTC
Stack Trace while in a busy loop.
I get different stack trace at different time,..

STACK TRACE 1:
--------------------------------------------------------------------------------
  • #0 unref_chain
    at gstoptimalscheduler.c line 506
  • #1 gst_opt_scheduler_iterate
    at gstoptimalscheduler.c line 2812
  • #2 gst_scheduler_iterate
    at gstscheduler.c line 744
  • #3 gst_bin_iterate_func
    at gstbin.c line 1281
  • #4 gst_marshal_BOOLEAN__VOID
    at gstmarshal.c line 509
  • #5 g_type_class_meta_marshal
    at gclosure.c line 514
  • #6 IA__g_closure_invoke
    at gclosure.c line 437
  • #7 signal_emit_unlocked_R
    at gsignal.c line 2526
  • #8 IA__g_signal_emit_valist
    at gsignal.c line 2257
  • #9 IA__g_signal_emit
    at gsignal.c line 2291
  • #10 gst_bin_iterate
    at gstbin.c line 1341
  • #11 g_idle_dispatch
    at gmain.c line 3812
  • #12 IA__g_main_context_dispatch
    at gmain.c line 1933
  • #13 g_main_context_iterate
    at gmain.c line 2564
  • #14 IA__g_main_loop_run
    at gmain.c line 2768
  • #15 IA__gtk_main
    at gtkmain.c line 974
  • #16 main
    at sj-main.c line 1275
  • #1 IA__g_signal_emit_valist
    at gsignal.c line 2255
  • #2 IA__g_signal_emit
    at gsignal.c line 2291
  • #3 gst_bin_iterate
    at gstbin.c line 1341
  • #4 g_idle_dispatch
    at gmain.c line 3812
  • #5 IA__g_main_context_dispatch
    at gmain.c line 1933
  • #6 g_main_context_iterate
    at gmain.c line 2564
  • #7 IA__g_main_loop_run
    at gmain.c line 2768
  • #8 IA__gtk_main
    at gtkmain.c line 974
  • #9 main
    at sj-main.c line 1275


Comment 11 Madhan Raj M 2005-07-15 19:58:02 UTC
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

Thread 4 (Thread -167883856 (LWP 1643))

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __nptl_setxid
    from /lib/tls/libpthread.so.0
  • #2 seteuid
    from /lib/tls/libc.so.6
  • #3 gnome_vfs_add_module_to_hash_table
    at gnome-vfs-method.c line 337
  • #4 gnome_vfs_transform_get
    at gnome-vfs-method.c line 400
  • #5 gnome_vfs_uri_new_private
    at gnome-vfs-uri.c line 570
  • #6 gnome_vfs_uri_new
    at gnome-vfs-uri.c line 531
  • #7 gst_gnomevfs_get_supported_uris
    at gstgnomevfsuri.c line 54
  • #8 gst_gnomevfssrc_uri_get_protocols
    at gstgnomevfssrc.c line 429
  • #9 gst_element_register
    at gstelementfactory.c line 253
  • #10 plugin_init
    at gstgnomevfs.c line 39
  • #11 gst_plugin_register_func
    at gstplugin.c line 214
  • #12 gst_plugin_load_file
    at gstplugin.c line 464
  • #13 gst_xml_registry_load_plugin
    at gstlibxmlregistry.c line 969
  • #14 gst_registry_load_plugin
    at gstregistry.c line 450
  • #15 gst_plugin_feature_ensure_loaded
    at gstpluginfeature.c line 108
  • #16 gst_element_factory_create
    at gstelementfactory.c line 297
  • #17 gst_element_factory_make
    at gstelementfactory.c line 367
  • #18 sj_extractor_extract_track
    at sj-extractor.c line 337
  • #19 pop_and_extract
    at sj-extracting.c line 305
  • #20 IA__g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #21 IA__g_closure_invoke
    at gclosure.c line 437
  • #22 signal_emit_unlocked_R
    at gsignal.c line 2488
  • #23 IA__g_signal_emit_valist
  • #24 IA__g_signal_emit
    at gsignal.c line 2291
  • #25 IA__gtk_button_clicked
    at gtkbutton.c line 834
  • #26 gtk_real_button_released
    at gtkbutton.c line 1369
  • #27 IA__g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #28 g_type_class_meta_marshal
    at gclosure.c line 514
  • #29 IA__g_closure_invoke
    at gclosure.c line 437
  • #30 signal_emit_unlocked_R
    at gsignal.c line 2418
  • #31 IA__g_signal_emit_valist
    at gsignal.c line 2247
  • #32 IA__g_signal_emit
    at gsignal.c line 2291
  • #33 IA__gtk_button_released
    at gtkbutton.c line 826
  • #34 gtk_button_button_release
    at gtkbutton.c line 1262
  • #35 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 83
  • #36 g_type_class_meta_marshal
    at gclosure.c line 514
  • #37 IA__g_closure_invoke
    at gclosure.c line 437
  • #38 signal_emit_unlocked_R
    at gsignal.c line 2526
  • #39 IA__g_signal_emit_valist
    at gsignal.c line 2257
  • #40 IA__g_signal_emit
    at gsignal.c line 2291
  • #41 gtk_widget_event_internal
    at gtkwidget.c line 3734
  • #42 IA__gtk_propagate_event
    at gtkmain.c line 2157
  • #43 IA__gtk_main_do_event
    at gtkmain.c line 1395
  • #44 gdk_event_dispatch
    at gdkevents-x11.c line 2265
  • #45 IA__g_main_context_dispatch
    at gmain.c line 1933
  • #46 g_main_context_iterate
    at gmain.c line 2564
  • #47 IA__g_main_loop_run
    at gmain.c line 2768
  • #48 IA__gtk_main
    at gtkmain.c line 974
  • #49 main
    at sj-main.c line 1276

Thread 1 (Thread -163264832 (LWP 1638))

  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2
  • #1 __nptl_setxid
    from /lib/tls/libpthread.so.0
  • #2 seteuid
    from /lib/tls/libc.so.6
  • #3 gnome_vfs_add_module_to_hash_table
    at gnome-vfs-method.c line 337
  • #4 gnome_vfs_transform_get
    at gnome-vfs-method.c line 400
  • #5 gnome_vfs_uri_new_private
    at gnome-vfs-uri.c line 570
  • #6 gnome_vfs_uri_new
    at gnome-vfs-uri.c line 531
  • #7 gst_gnomevfs_get_supported_uris
    at gstgnomevfsuri.c line 54
  • #8 gst_gnomevfssrc_uri_get_protocols
    at gstgnomevfssrc.c line 429
  • #9 gst_element_register
    at gstelementfactory.c line 253
  • #10 plugin_init
    at gstgnomevfs.c line 39
  • #11 gst_plugin_register_func
    at gstplugin.c line 214
  • #12 gst_plugin_load_file
    at gstplugin.c line 464
  • #13 gst_xml_registry_load_plugin
    at gstlibxmlregistry.c line 969
  • #14 gst_registry_load_plugin
    at gstregistry.c line 450
  • #15 gst_plugin_feature_ensure_loaded
    at gstpluginfeature.c line 108
  • #16 gst_element_factory_create
    at gstelementfactory.c line 297
  • #17 gst_element_factory_make
    at gstelementfactory.c line 367
  • #18 sj_extractor_extract_track
    at sj-extractor.c line 337
  • #19 pop_and_extract
    at sj-extracting.c line 305
  • #20 IA__g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #21 IA__g_closure_invoke
    at gclosure.c line 437
  • #22 signal_emit_unlocked_R
    at gsignal.c line 2488
  • #23 IA__g_signal_emit_valist
    at gsignal.c line 2247
  • #24 IA__g_signal_emit
    at gsignal.c line 2291
  • #25 IA__gtk_button_clicked
    at gtkbutton.c line 834
  • #26 gtk_real_button_released
    at gtkbutton.c line 1369
  • #27 IA__g_cclosure_marshal_VOID__VOID
    at gmarshal.c line 77
  • #28 g_type_class_meta_marshal
    at gclosure.c line 514
  • #29 IA__g_closure_invoke
    at gclosure.c line 437
  • #30 signal_emit_unlocked_R
    at gsignal.c line 2418
  • #31 IA__g_signal_emit_valist
    at gsignal.c line 2247
  • #32 IA__g_signal_emit
    at gsignal.c line 2291
  • #33 IA__gtk_button_released
    at gtkbutton.c line 826
  • #34 gtk_button_button_release
    at gtkbutton.c line 1262
  • #35 _gtk_marshal_BOOLEAN__BOXED
    at gtkmarshalers.c line 83
  • #36 g_type_class_meta_marshal
    at gclosure.c line 514
  • #37 IA__g_closure_invoke
    at gclosure.c line 437
  • #38 signal_emit_unlocked_R
    at gsignal.c line 2526
  • #39 IA__g_signal_emit_valist
    at gsignal.c line 2257
  • #40 IA__g_signal_emit
    at gsignal.c line 2291
  • #41 gtk_widget_event_internal
    at gtkwidget.c line 3734
  • #42 IA__gtk_propagate_event
    at gtkmain.c line 2157
  • #43 IA__gtk_main_do_event
    at gtkmain.c line 1395
  • #44 gdk_event_dispatch
    at gdkevents-x11.c line 2265
  • #45 IA__g_main_context_dispatch
    at gmain.c line 1933
  • #46 g_main_context_iterate
    at gmain.c line 2564
  • #47 IA__g_main_loop_run
    at gmain.c line 2768
  • #48 IA__gtk_main
    at gtkmain.c line 974
  • #49 main
    at sj-main.c line 1276
  • #0 _dl_sysinfo_int80
    from /lib/ld-linux.so.2

Comment 12 Ross Burton 2005-07-15 20:15:41 UTC
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?
Comment 13 Ross Burton 2005-08-01 10:14:56 UTC
Can anyone replicate this with GStreamer 0.8.10?
Comment 14 Madhan Raj M 2005-08-01 17:24:49 UTC
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 ?? ()

Thread 1 (Thread -1208871232 (LWP 27871))

  • #0 ??
  • #1 __waitpid_nocancel
    from /lib/libpthread.so.0
  • #2 libgnomeui_segv_handle
    at gnome-ui-init.c line 749

Comment 15 Madhan Raj M 2005-09-02 19:05:45 UTC
*** Bug 315129 has been marked as a duplicate of this bug. ***
Comment 16 Sebastien Bacher 2006-02-12 22:06:54 UTC
That's still an issue with gstreamer0.10
Comment 17 Thomas Vander Stichele 2006-02-14 19:07:34 UTC
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.
Comment 18 Ross Burton 2006-03-04 11:33:46 UTC
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?
Comment 19 Sebastien Bacher 2006-04-06 15:26:46 UTC
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"
Comment 20 Tim-Philipp Müller 2006-09-23 11:08:20 UTC
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.
Comment 21 Ross Burton 2006-09-24 11:41:47 UTC
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.
Comment 22 Thomas D Ahle 2006-09-24 14:55:22 UTC
Perhaps, to make everyone know, the label should be changed to "(Very) High Quality - Voice (WAV)"
Comment 23 Ross Burton 2006-09-24 15:29:41 UTC
Its not high quality.  It's lossless.  There is a big difference, and saying "very high quality" is more misleading than "lossless".
Comment 24 Thomas D Ahle 2006-09-24 16:16:16 UTC
Then what about "Nearly Lossless"?
Comment 25 Ross Burton 2006-09-24 16:28:21 UTC
Its not nearly lossless, it is lossless.  Anyway, SJ isn't the place to discuss the naming of the default profiles.