Paul:

I am guessing there is a bug with the GStreamer WAV plugin recording
WAV files in mono.  Would you mind filing a bug about this at
http://bugzilla.gnome.org?

>> It seems like the WAV files created by sound-juicer are corrupt. Why
>> don't you try to run the gst-launch command to rip a file from a CD.
>> This should be what sound-juicer is running behind the scenes:
>>
>> gst-launch cdda2wav track=2 ! wavenc ! filesink location=/tmp/foo.wav
>
> Using the above command created a good WAV file. The command embedded
> into Sound Juicer is:
>
> audio/x-raw-int,rate=22050,channels=1 ! wavenc name=enc

Looking at sound-juicer, this seems to be the "Voice, Lossless" profile.
I would not think that this would be a good choice for ripping CD music
if you cared about quality.  I would think you would want
"CD Quality, Lossy" or "CD Quality, Lossless" depending on whether you
wanted to use ogg-vorbis or WAV.

Note the cryptic string is telling you it will record at 22050 Hz (CD
quality is 44100 Hz), and it is recording with 1 channel (mono) instead
of 2 channels (stereo).

In other words, this profile is intended to be used when recording
voice or AM radio, where quality and stereo is not as important as when
you are listening to Metallica or KoRn or whatever.  :)

> I'm not an expert at interpreting this.

This corresponds to the following pipeline:

gst-launch cdda2wav track=2 ! 'audio/x-raw-int,rate=22050,channels=1' !
    wavenc name=enc ! filesink=/tmp/foo.wav

This is explained in the "gst-launch" manpage, so I would check out
that manpage if you run into any further confusion about how this
works.  So I am just explaining how you can test the sound-juicer
"profiles" via gst-launch if you want.

It would be good to spend some time testing the various options to
see if we could track down which one is specifically not working.
Does the problem only happen if channels or rate is set to a
particular value?

> OK, with some experimenting the command that works is:
>
> audio/x-raw-int,rate=44100,channels=2 ! wavenc name=enc
>
> This is saved in "Voice, Lossless (wav type)

Ah, so the problem seems to be specific to recording WAV in mono
or at 22050.  It might be good to use gst-launch and try to track
down if the problem is with the rate value or the channels value.

>> If you find that things aren't working, it would probably be a good
>> idea to file a bug at http://bugzilla.gnome.org in the GStreamer
>> category with the debugging information you found, or contact the
>> gstreamer-devel mailing list and see if they might have some
>> pointers.
>
> Things are working, what may be broken is when I edit to add a new
> "output format" in "edit profiles", why doesn't it show up in my
> selection list?

I think you found another bug.  Probably should file this one at
http://bugzilla.gnome.org under the "sound-juicer" category.  :)

> This way I can add to create a WAV file with the correct
> bit rate and 2 channels as the sample command that works.

The sound-juicer program already provides "CD Quality, Lossless" which
I think would be what you want.  Why can't you use this?

Brian

Reply via email to