Page 4 of 5 FirstFirst ... 2345 LastLast
Results 31 to 40 of 45

Thread: HOWTO: Record internet radio using VLC

  1. #31
    Join Date
    Jul 2009
    Location
    CyberspacEastEngland
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HOWTO: Record internet radio using VLC

    hi guys very useful thread here thank you


    trying to record highest sound quality classical radio station in europe
    NRK alltid klassisk which broadcasts online at 384kbps
    but finding a little hitch here any ideas?


    cvlc --run-time=40 http://lyd.nrk.no:80/nrk_radio_klassisk_wma_h --sout "#duplicate{dst=std{access=file,mux=asf,dst=/home/shantiq/nrrrrrrk.wma}" vlc://quit ;

    and i get this on terminal


    cvlc --run-time=40 http://lyd.nrk.no:80/nrk_radio_klassisk_wma_h --sout "#duplicate{dst=std{access=file,mux=asf,dst=/home/shantiq/nrrrrrrk.wma}" vlc://quit ;
    VLC media player 1.2.0-git Twoflower (revision 1ee61ad)
    [0x6c5de0] dummy interface: using the dummy interface module...
    [0x6a2970] main playlist: stopping playback
    [0x6cc380] access_mms access error: cannot read data 2
    [0x6f8550] access_mms access error: cannot connect to 10.103.0.72:80
    [0x9d3f70] main input error: open of `mmsh://10.103.0.72:80/nrk_radio_klassisk_wma_h?MSWMExt=.asf' failed
    [0x9d3f70] main input error: Your input can't be opened
    [0x9d3f70] main input error: VLC is unable to open the MRL 'mmsh://10.103.0.72:80/nrk_radio_klassisk_wma_h?MSWMExt=.asf'. Check the log for details.
    [0x7440f0] dummy demux: command `quit'
    Linux is Latin for off-the-beaten-track [◄►] ● Is there Voodoo in the machine?
    ShanArt ● Mark as SolvedXmms

  2. #32
    Join Date
    Jul 2009
    Location
    CyberspacEastEngland
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HOWTO: Record internet radio using VLC

    also here


    trying to run the script in combination with cron ( can one do that /? )


    45 11 * * 3 cvlc --run-time=3600 http://mp3.live.tv-radio.com:80/fran...ehautdebit.mp3 --sout "#duplicate{dst=std{access=file,mux=raw,dst=/home/shantiq/france_musique_aujourdhui-$NOW.mp3}" vlc://quit ;

    but it does not start. is it simply not possible to combine both; or does someting need be modified in the lines i am using

    ps I am feeding the cron info through mousepad which works with other timed recordings
    Last edited by shantiq; September 21st, 2011 at 06:32 PM.
    Linux is Latin for off-the-beaten-track [◄►] ● Is there Voodoo in the machine?
    ShanArt ● Mark as SolvedXmms

  3. #33
    Join Date
    Jun 2007
    Beans
    13,101

    Re: HOWTO: Record internet radio using VLC

    Quote Originally Posted by shantiq View Post
    hi guys very useful thread here thank you


    trying to record highest sound quality classical radio station in europe
    NRK alltid klassisk which broadcasts online at 384kbps
    but finding a little hitch here any ideas?
    You are using http in the command - that should be

    cvlc --run-time=40 mmsh://lyd.nrk.no:80/nrk_radio_klassisk_wma_h ect.

  4. #34
    Join Date
    Jul 2009
    Location
    CyberspacEastEngland
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HOWTO: Record internet radio using VLC

    thank you mc4man it works and gives me this but works !


    cvlc --run-time=40 mmsh://lyd.nrk.no:80/nrk_radio_klassisk_wma_h --sout "#duplicate{dst=std{access=file,mux=asf,dst=/home/shantiq/nrrrrrrk.wma}" vlc://quit ;
    VLC media player 1.2.0-git Twoflower (revision 1ee61ad)
    [0xf56de0] dummy interface: using the dummy interface module...
    [0xf686b0] access_mms access error: cannot read data 2
    [0xfb78a0] dummy demux: command `quit'


    do you or anyone else have any idea on the other one with cron
    Last edited by shantiq; September 21st, 2011 at 06:19 PM.
    Linux is Latin for off-the-beaten-track [◄►] ● Is there Voodoo in the machine?
    ShanArt ● Mark as SolvedXmms

  5. #35
    Join Date
    Jun 2007
    Beans
    13,101

    Re: HOWTO: Record internet radio using VLC

    Quote Originally Posted by shantiq View Post
    also here


    trying to run the script in combination with cron ( can one do that /? )

    but it does not start. is it simply not possible to combine both; or does someting need be modified in the lines i am using

    ps I am feeding the cron info through mousepad which works with other timed recordings
    What you're calling a script is just the command, you'd do fine if you create an actual script for THIS stream & then in your crontab just /path/to/scriptname
    You can refer back to post one for this - though for Ex. the mp3 stream
    use this for your script, name it something unique & simple (1 word), then make executable -

    Code:
    #!/bin/bash
    NOW=$(date +"%b-%d-%y")
    cvlc --run-time=3600 http://mp3.live.tv-radio.com/francemusique/all/francemusiquehautdebit.mp3 --sout "#duplicate{dst=std{access=file,mux=raw,dst=/home/shantiq/france_musique_aujourdhui-$NOW.mp3}" vlc://quit ;
    Then your crontab would be -
    Code:
    45 11 * * 3 /path/to/scriptname
    For every stream you want to auto record then create a new script as above, just alter the cvlc command to suit

  6. #36
    Join Date
    Jul 2009
    Location
    CyberspacEastEngland
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HOWTO: Record internet radio using VLC

    ok thanx for that that shows me how to not confuse script and command


    so i saved a document called frmusique.sh in home folder


    #!/bin/bash
    NOW=$(date +"%b-%d-%y")
    cvlc --run-time=36 http://mp3.live.tv-radio.com/francem...ehautdebit.mp3 --sout "#duplicate{dst=std{access=file,mux=raw,dst=/home/shantiq/france_musique_aujourdhui-$NOW.mp3}" vlc://quit ;


    made it executable



    entered

    Code:
    10 9 * * * frmusique.sh
    in my cron page to test

    and got nothing ... what might you think am not seeing / understanding ?
    Linux is Latin for off-the-beaten-track [◄►] ● Is there Voodoo in the machine?
    ShanArt ● Mark as SolvedXmms

  7. #37
    Join Date
    Jun 2007
    Beans
    13,101

    Re: HOWTO: Record internet radio using VLC

    Quote Originally Posted by shantiq View Post

    Code:
    10 9 * * * frmusique.sh
    in my cron page to test

    and got nothing ... what might you think am not seeing / understanding ?
    You need to full path the script so if it was sitting loose in your home folder then -

    Code:
    10 9 * * * /home/shantiq/frmusique.sh
    You may want to create a folder for scripts or a bin folder in home - in any event do the full path in crontab

  8. #38
    Join Date
    Jul 2009
    Location
    CyberspacEastEngland
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HOWTO: Record internet radio using VLC

    i have a script folder


    but i did this as the full path to script folder did not work


    so i placed it in home folder


    and with or without full path nothing happens still
    Linux is Latin for off-the-beaten-track [◄►] ● Is there Voodoo in the machine?
    ShanArt ● Mark as SolvedXmms

  9. #39
    Join Date
    Jun 2007
    Beans
    13,101

    Re: HOWTO: Record internet radio using VLC

    Well 1st confirm the script itself runs - d. left click on and choose 'run in terminal' or open a terminal & run it. (just Drag & Drop your script into the terminal, click on terminal to return focus, press enter

    Tried your last one here, no issue, - was started from cron - see screen, in 2nd one it's the test2 entry
    Attached Images Attached Images

  10. #40
    Join Date
    Jul 2009
    Location
    CyberspacEastEngland
    Beans
    Hidden!
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: HOWTO: Record internet radio using VLC

    thanx for your time mc4


    i ran

    Code:
    shantiq@shan:~$ #!/bin/bash
    shantiq@shan:~$ NOW=$(date +"%b-%d-%y")
    shantiq@shan:~$ cvlc --run-time=36 http://mp3.live.tv-radio.com/francemusique/all/francemusiquehautdebit.mp3 --sout "#duplicate{dst=std{access=file,mux=raw,dst=/home/shantiq/france_musique_aujourdhui-$NOW.mp3}" vlc://quit ;
    VLC media player 1.2.0-git Twoflower (revision 1ee61ad)
    [0xa49630] dummy interface: using the dummy interface module...
    [0xa62000] mux_dummy mux: Open
    [0xa67690] access_http access: Raw-audio server found, mp3 demuxer selected
    [0xa4cf50] dummy demux: command `quit'
    shantiq@shan:~$



    as you see perfect


    i think it might be a path issue ??

    could otherwise maybe be : i keep my .cron file in my home folder and edit it through mousepad which has not been a problem with other cron jobs ?
    Linux is Latin for off-the-beaten-track [◄►] ● Is there Voodoo in the machine?
    ShanArt ● Mark as SolvedXmms

Page 4 of 5 FirstFirst ... 2345 LastLast

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
  •