Re: HOWTO: Record internet radio using VLC
hi guys very useful thread here thank you :KS
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?
and i get this on terminal
Quote:
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'
Re: HOWTO: Record internet radio using VLC
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
Re: HOWTO: Record internet radio using VLC
Quote:
Originally Posted by
shantiq
hi guys very useful thread here thank you :KS
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.
Re: HOWTO: Record internet radio using VLC
thank you mc4man it works and gives me this but works !
Quote:
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
Re: HOWTO: Record internet radio using VLC
Quote:
Originally Posted by
shantiq
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
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
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 ?
Re: HOWTO: Record internet radio using VLC
Quote:
Originally Posted by
shantiq
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
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 :KS
2 Attachment(s)
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
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 ?