Results 1 to 5 of 5

Thread: Recording internet radio using VLC

  1. #1
    Join Date
    Aug 2006
    Beans
    445

    Recording internet radio using VLC

    I am seemingly having a problem with the command "vlc://quit".

    I have an .sh file which accesses a streaming url. If I leave "vlc://quit" in the .sh file it executes immediately - i.e. supposedly goes through all the preceding commands but closes down (quits) before anything happens.

    If I take it out everything is fine ( vlc opens, finds, plays/records & stops). But, of course, I'm left with vlc still open.

    Anyone have any idea what I am, or my OS is, doing wrong or otherwise what's going on here?

  2. #2
    Join Date
    Dec 2006
    Beans
    7,349

    Re: Recording internet radio using VLC

    Are you actually using cvlc? If so perhaps use the following in ~/.bashrc:

    Code:
    alias cvlc='cvlc --play-and-exit'
    or incorporate this option into your script.
    You think that's air you're breathing now?

  3. #3
    Join Date
    Aug 2006
    Beans
    445

    Re: Recording internet radio using VLC

    Actually I have been using both. Switching from cvlc to vlc when it didn't work to see if I could figure out what was going on - I could not. And, I understood - incorrectly I guess - that closing (quit-ting) a cvlc session was accomplished with the same vlc command.

    All of that to say that your suggestion worked. And now it opens, plays, records, shuts down and goes away. So thank you SO MUCH for that.

    But ... now I have another problem. The above works just fine for an .mp3 stream. But does NOT work at all for an .asf(x) stream even if the .asf stream works just fine using the vlc GUI and clicking on record (as opposed to using --sout).

    Any idea what might be going on there?

  4. #4
    Join Date
    Dec 2006
    Beans
    7,349

    Re: Recording internet radio using VLC

    Glad to hear that you have at least partial resolution of your issue . Unfortunately I am not much of a vlc man really and certainly not much of an expert with the vlc commandline. However if your stream is actually an asx one bear in mind that this is actually an xml metafile that may have several streams and/or different urls embedded within it. Perhaps this is is mucking with your script?
    You think that's air you're breathing now?

  5. #5
    Join Date
    Aug 2006
    Beans
    445

    Re: Recording internet radio using VLC

    Well, thanks anyway for your assistance, it's good to get (c)vlc performing "as it should".

    Alas the streams really are asx - thanks Bloomberg and BBC!

    I'd like to think perhaps someone can take on the difference between a CLI --sout and a GUI click on record. Whether to explain what it is, get it fixed or offer a work-around.

    Thanks again.

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
  •