Find the answer to your Linux question:
Results 1 to 6 of 6
Can someone explain to me how I can listen to the stream at http://media.hiof.no/streams/m3u/nrk-mpetre-128.m3u in mpg123? I can't make it work....
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2003
    Posts
    6

    Streaming in mpg123


    Can someone explain to me how I can listen to the stream at http://media.hiof.no/streams/m3u/nrk-mpetre-128.m3u in mpg123? I can't make it work.

  2. #2
    Linux Enthusiast
    Join Date
    Feb 2003
    Location
    Ontario, Canada
    Posts
    556
    select open with /usr/bin/xmms (xmms should be there)

    if you are using red hat 8 or higher you need to the mpg123 codec to listen to mp3's - go to the xmms website to get it.

  3. #3
    Just Joined!
    Join Date
    Apr 2003
    Posts
    6
    I should have mentioned that I am trying to use it in console only. I don't have the possibility to run X because it is a relatively old machine. Therefore, no XMMS

    You do not know how to use mpg123 to play the stream?

  4. $spacer_open
    $spacer_close
  5. #4
    Linux Guru
    Join Date
    Oct 2001
    Location
    Täby, Sweden
    Posts
    7,578
    mpg123 can't "play" m3u files. Download the m3u file and make mpg123 play from the actual URL in there instead. Note that if this is mpg321 and not truly mpg123, it can't play directly over HTTP, so you'll have to use wget and pipe it into mpg123, somewhat like this:
    Code:
    wget -O - `wget -O - http://media.hiof.no/streams/m3u/nrk-mpetre-128.m3u` | mpg123 -
    (When you have mpg321, mpg123 is a symlink pointing to mpg321)
    For better performance, you might have to pipe it through "buffer" as well. If you don't have buffer, search rpmfind.net for it.

  6. #5
    Linux User
    Join Date
    Feb 2003
    Location
    Norway, Asker
    Posts
    267
    or you can use mplayer, like "mplayer url"

  7. #6
    Just Joined!
    Join Date
    Apr 2003
    Posts
    6
    Quote Originally Posted by Dolda2000
    mpg123 can't "play" m3u files. Download the m3u file and make mpg123 play from the actual URL in there instead. Note that if this is mpg321 and not truly mpg123, it can't play directly over HTTP, so you'll have to use wget and pipe it into mpg123, somewhat like this:
    Code:
    wget -O - `wget -O - http://media.hiof.no/streams/m3u/nrk-mpetre-128.m3u` | mpg123 -
    (When you have mpg321, mpg123 is a symlink pointing to mpg321)
    For better performance, you might have to pipe it through "buffer" as well. If you don't have buffer, search rpmfind.net for it.
    thanks! This worked perfectly.

Posting Permissions

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