Comment 7 for bug 1097610

Revision history for this message
Alexander Schlarb (alexander255) wrote :

Just wanted to chime in. I needed to convert some music today and your tool worked almost perfectly for me. :+1:

Regarding this issue: I'm using `soundconverter` 3.0.0~alpha1+git20151209-1 with GStreamer 1.0 from Debian Multimedia and tried to convert some 320 MP3s into Opus. However I got an error message when I tried to do so:

    GStreamer error when creating pipeline
    gst_parse_error: no property "cbr" in element "opusenc3" (2)

After finding this issue, I did a short investigation and it turns out that the `cbr` option does not exist in GStreamer 1.0; instead the `bitrate-type` option was introduced:

    bitrate-type : Bitrate type
                         flags: readable, writable, changeable in NULL, READY, PAUSED or PLAYING state
                          Enum "GstOpusEncBitrateType" Default: 0, "cbr"
                             (0): cbr - CBR
                             (1): vbr - VBR
                             (2): constrained-vbr - Constrained VBR

Replacing `cbr=false` with `bitrate-type=vbr` resulted in a proper VBR Opus being generated:

    Processing file "10 Running In Place.opus"...

    New logical stream (#1, serial: 30e48d71): type opus
    Encoded with Encoded with GStreamer opusenc
    User comments section follows...
            ALBUM=Feeding The Wolves (Deluxe Edition)
            ALBUMARTIST=10 Years
            ARTIST=10 Years
            COMMENT=0
            DATE=2010
            DISCNUMBER=1
            DISCTOTAL=1
            GENRE=Rock
            METADATA_BLOCK_PICTURE=3|image/jpeg||0x0x0|<20581 bytes of image data>
            TITLE=Running In Place
            TRACKNUMBER=10
    Opus stream 1:
            Pre-skip: 312
            Playback gain: 0 dB
            Channels: 2
            Original sample rate: 48000Hz
            Packet duration: 20.0ms (max), 20.0ms (avg), 20.0ms (min)
            Page duration: 520.0ms (max), 185.3ms (avg), 120.0ms (min)
            Total data length: 5144236 bytes (overhead: 1.6%)
            Playback length: 3m:35.875s
            Average bitrate: 190.6 kb/s, w/o overhead: 187.6 kb/s
    Logical stream 1 ended