Skip to main content

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 @ end
-t 4:00:00 $filename1 &
have 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.

alternatively add
code:
sleep 240m; killall avconv
after & @ end of script, when timer recording mplayer using cron.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support Multimedia Software [SOLVED] Recording streaming radio


Ubuntu

Comments

Popular posts from this blog

Thread: Can not create raid array: mdadm: no raid-devices specified.

Thread: HOW TO: Package and theme GTK+ / Gtkmm apps in Linux for Windows

Thread: Twinview issues