Results 1 to 4 of 4

Thread: GNOME MPlayer opens stream, command line mplayer does not

  1. #1
    Join Date
    Sep 2016
    Beans
    2

    GNOME MPlayer opens stream, command line mplayer does not

    I'm trying to stream audio from a local NPR station via mplayer. When I try and open the URL (http://wamu.org/streams/live/1/live.m3u) in mplayer via command line ($ mplayer http://wamu.org/streams/live/1/live.m3u) I get the following error:

    MPlayer 1.2.1 (Debian), built with gcc-5.3.1 (C) 2000-2016 MPlayer Team
    mplayer: could not connect to socket
    mplayer: No such file or directory
    Failed to open LIRC support. You will not be able to use your remote control.
    Resolving wamu.org for AF_INET6...
    Couldn't resolve name for AF_INET6: wamu.org
    Resolving wamu.org for AF_INET...
    Connecting to server wamu.org[199.79.48.26]: 80...
    Resolving static.wamu.org for AF_INET6...
    Couldn't resolve name for AF_INET6: static.wamu.org
    Resolving static.wamu.org for AF_INET...
    Connecting to server static.wamu.org[52.85.90.235]: 80...
    Cache size set to 320 KBytes
    Cache fill: 0.01% (31 bytes)
    libavformat version 56.40.101 (external)
    Exiting... (End of file)

    However, when I open the same stream using GNOME MPlayer it takes a few seconds to buffer and then starts playing. Since I think GNOME MPlayer is just a front end for mplayer, what can I use in the command line to open this stream?

    thanks

  2. #2
    Join Date
    Jun 2007
    Beans
    17,337

    Re: GNOME MPlayer opens stream, command line mplayer does not

    Don't particularly use mplayer much anymore but i'd guess this may work -
    Code:
    mplayer -playlist http://wamu.org/streams/live/1/live.m3u

  3. #3
    Join Date
    Jul 2005
    Location
    I think I'm here! Maybe?
    Beans
    Hidden!
    Distro
    Xubuntu 20.04 Focal Fossa

    Re: GNOME MPlayer opens stream, command line mplayer does not

    Quote Originally Posted by mc4man View Post
    Don't particularly use mplayer much anymore but i'd guess this may work -
    Code:
    mplayer -playlist http://wamu.org/streams/live/1/live.m3u
    That is the way it used to work and certainly I managed to listen to concerts broadcast as m3u playlists in the past using cron to time them and mplayer.

    The cli version of mplayer demands that you tell it that the stream is a playlist or it does exactly what you have found; nothing.
    Gnome-mplayer, however, sees that it is a playlist and manages to add that -playlist option automatically.

  4. #4
    Join Date
    Sep 2016
    Beans
    2

    Re: GNOME MPlayer opens stream, command line mplayer does not

    That's the one - thanks!

Tags for this Thread

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
  •