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 at
command?
-c:a copy
instead of re-encoding it.-c:v copy -c:a copy
or i can do-c:v:a copy
?-c copy
if you want to stream copy both.