Im using ffmpeg to record online stream. I want to record in small pieces
with killing ffmpeg process and starting again. Trying to do it with command
watch -n 40 "pkill ffmpeg; ffmpeg -i http://SiteName.com/playlist.m3u8 radioSTREAM.$(date +%d-%m-%g-%Hh%Mm%Ss).mp3" but it stucking. How to make it work ?
Additional question is how to put all this construction in