Page 2 of 4 FirstFirst 1234 LastLast
Results 11 to 20 of 35

Thread: Can't make MPD stream MP3 through IceCast2

  1. #11
    Join Date
    Jan 2008
    Beans
    25

    Re: Can't make MPD stream MP3 through IceCast2

    I think I have followed the instructions properly but I am still getting: output: line 221: No such encoder: lame


    I am on maverick so I am using --enable-lame

    Any suggestions for what I may be doing wrong?

    Perhaps ikonitas could tell me what he did differently that made it work?

    Joe

  2. #12
    Join Date
    Jan 2008
    Beans
    25

    Re: Can't make MPD stream MP3 through IceCast2

    A small update:

    If I comment out the encoder section like so:

    audio_output {
    type "httpd"
    name "My HTTP Stream"
    # encoder "lame" # optional, vorbis or lame
    port "8000"
    # quality "5.0" # do not define if bitrate is defined
    bitrate "192" # do not define if quality is defined
    format "44100:16:2"

    Then mpd starts normally and will in fact stream on port 8000. I can listen from a web browser, but this still does not get Mpod to stream it with the onthego setting.

  3. #13
    Join Date
    Nov 2005
    Location
    Leeds, UK
    Beans
    1,634
    Distro
    Ubuntu Development Release

    Re: Can't make MPD stream MP3 through IceCast2

    This is what I've got in maverick:
    DEB_CONFIGURE_USER_FLAGS += $(WITH_TREMOR) --enable-sqlite --enable-un --enable-ao --enable-lastfm --enable-lame -enable-lame-encoder
    and it seems to work great. (though I have just noticed that -enable-lame-encoder has only one -...nevertheless, it works.)

  4. #14
    Join Date
    Jan 2008
    Beans
    25

    Re: Can't make MPD stream MP3 through IceCast2

    Still no luck. When MetalMusicAddict says to pin our package in synaptic, what exactly is the procedure?

    I have been installing it with gdebi. Then when I look in synaptic it shows two versions of the package. One is described as (maverick), the other is (now). If I choose to force a particular one(now), it indicates it has a package to install. Doing the install, it still fails mentioning the lame encoder. I checked every other package that seemed related to lame is installed.

    Any help is much appreciated.

    Joe

  5. #15
    Join Date
    Jan 2008
    Beans
    25

    Re: Can't make MPD stream MP3 through IceCast2

    Got it working now, here is what I did:

    Used synaptic to completely remove MPD and all config files.
    Deleted all directories and files created during initial attempts.

    Followed MetalMusicAddicts instructions again, but this time, used
    --enable-lame-encoder

    When using --enable-lame I noticed in the output that it said this was an invalid config.

    Now I installed with gdebi,
    Edited /etc/mpd.conf to enable lame encoding from HTTPD,
    sudo service mpd restart

    And voila! It works.

    Sort of..

    Works over local network. Seem to have trouble accessing it from the internet. Suspect router issues but shields up shows port 8000 is open.

    Still working on it. Enjoying playing with this wonderful toy (linux)

    Learning a lot.
    Loving it.

    Thanks to everyone for their help so far.


    Joe

  6. #16
    Join Date
    Oct 2008
    Location
    San Francisco, California
    Beans
    82
    Distro
    Ubuntu 11.10 Oneiric Ocelot

    Re: Can't make MPD stream MP3 through IceCast2

    I found this very helpful. Among other things, I'd been meaning to find out how to build .debs from source packages.

    In using "./configure --help", I found that there was a listing for "--enable-lame-encoder", but none for "--enable-lame". At one point, I thought I had used just "--enable-lame-encoder", and it hadn't worked, so I tried both, and it seemed to work:

    Code:
    DEB_CONFIGURE_USER_FLAGS += $(WITH_TREMOR) --enable-sqlite --enable-un --enable-ao --enable-lastfm --enable-lame --enable-lame-encoder
    One catch: the command to pull in all the build dependencies missed "libmp3lame-dev", which was required for the build.

    To pin your custom build in Synaptic, find the installed package -- it will probably be listed as "Installed (Upgradeable)" under the Status tab -- right-click on it, and select "Lock this version."

  7. #17
    Join Date
    Jun 2009
    Location
    Berlin, Germany
    Beans
    15
    Distro
    Ubuntu

    Re: Can't make MPD stream MP3 through IceCast2

    I stumbled over a blog post about enabling LAME support in mpd, which linked to this forum thread. LAME is in universe since Ubuntu 10.10 (maverick). Therefore I enabled LAME support in mpd 0.15.15-2ubuntu2, which will be in Ubuntu 11.04 (natty).

  8. #18
    Join Date
    Jan 2005
    Beans
    Hidden!

    Re: Can't make MPD stream MP3 through IceCast2

    Awesome bdrung. I'm sure lots of folks will like this. Maybe we can get a backport for 10.10?

  9. #19
    Join Date
    Jun 2009
    Location
    Berlin, Germany
    Beans
    15
    Distro
    Ubuntu

    Re: Can't make MPD stream MP3 through IceCast2

    Not backport, but Stable Release Update (SRU). I will provide the debdiff and do the upload if you open a bug report for it and subscribe me.

    Here's the SRU procedure: https://wiki.ubuntu.com/StableReleaseUpdates

  10. #20
    Join Date
    Jan 2005
    Beans
    Hidden!

    Re: Can't make MPD stream MP3 through IceCast2

    Sure. I didn't think it would qualify for a SRU. And DONE.

Page 2 of 4 FirstFirst 1234 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •