Re: Anyone know how to do a "timed program" with mplayer?

From: Hugo Vanwoerkom (hvw59601_at_care2.com)
Date: 10/18/05

  • Next message: L.V.Gandhi: "Re: guessnet problem"
    To: debian-user@lists.debian.org
    Date:  Tue, 18 Oct 2005 07:51:40 -0500
    
    

    Adam Funk wrote:
    > I can listen to a continuously ogg-streaming radio station with this
    > command:
    >
    > mplayer http://engine.collegemedia.vt.edu:8000/wuvt.ogg
    >
    > and I've successfully recorded (using scripts and at) fixed-duration
    > RealPlayer radio shows to .wav to listen to them later. But I'd like to
    > record a specific show tonight from the continuous live ogg stream.
    >
    > I suppose I could set up an at job to start recording at 18:30 and another
    > to "killall mplayer" at 20:00, but I think that might cause problems (and
    > it's hideously inelegant).
    >

    I've done just that to listen to KUSC at 2AM and stop at 5AM.

    But I did it with two commands I implemented with Qt: do_sm and do_km.

    Crontab starts do_sm at 2AM and it spawns mplayer to record.

    Crontab starts do_km at 5AM and it finds the record with the PID of
    do_sm and kills it with a TERM, which mplayer gets and terminates.

    Very elegant, but only because I did it that way of course ;-)

    If you want I can send you the code but don't respond to the from
    address but to hugovanwoerkom at yahoo dot com. Care2 is the pits.

    This prompts the question again: can you list and record at the same
    time with mplayer?

    H

    -- 
    To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org 
    with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
    

  • Next message: L.V.Gandhi: "Re: guessnet problem"

    Relevant Pages

    • Re: [kde-linux] Sound conversion from .rm to.mp3 (LM---)
      ... if I wanted to convert file.rm to Vorbis I could use the command: ... IAC, if MPlayer won't do it, there are other Linux players (e.g. Xine & ... This tells mplayer to use PCM audio output driver while playing file.rm. ... found in a manual page of lame mp3 encoder. ...
      (KDE)
    • Re: Kaffeine Cannot Play DVD
      ... >> and downloaded and installed mplayer. ... >> mplayer line command. ... > You need to enable DMA for your DVD player. ...
      (alt.os.linux.suse)
    • Re: Intro and a few questions
      ... I just realized that I forgot to tell you if you use 'cron' or 'at' ... the output of whatever command you invoke will be mailed to you. ... This can get quite large for something like mplayer that updates ... arts of SSH forwarding and tunneling. ...
      (Ubuntu)
    • Re: cron jobs + (some?) output
      ... > I run mplayer from a script in the early morning as a cron job. ... it gets sent to root! ... If you want to stop this, you can redirect the output of the mplayer to ... This command will create a new log every day, ...
      (Debian-User)