Thread: Recording streaming radio
i trying record 2 internet radio avconv @ 5:30am 4 hours every week day.
wrote script add /etc/crontab file
crontab :
30 5 * * 1-5 sandrine /home/sandrine/radio_internet/radiorecmatin.sh
, command avconv :
avconv -loglevel quiet -i http://stream.radiox.com/cklx.mp3 -id3v2_version 3 -write_id3v1 1 -f mp3 -acodec libmp3lame -ab 32k -metadata title="$title1" -metadata artist="$artist1" -metadata album="$album1" -metadata year="$year" -metadata date="$date" -ac 1 -t 4:00:00 $filename1 &
problem : if run manually duration of 1 minute, command stop perfectly, in script 4 hours doesn't stop. add kill process.
i not know avconv @ @ moment, gather needs different syntax ffmpeg.
however, instead of using syntax have @ endhave tried using -t 240m (240 minutes) if acceptable way define time duration in, example, streamripper, use. may talking out backside , have no way try myself on 10.04.-t 4:00:00 $filename1 &
alternatively addafter & @ end of script, when timer recording mplayer using cron.code:sleep 240m; killall avconv
Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Multimedia Software [SOLVED] Recording streaming radio
Ubuntu
Comments
Post a Comment