I am interested in running a bash script which starts an application (in this case VLC), run it for a certain amount of time and then stop it. I can get this application to start just fine, but it will not stop, using this script:
#!/usr/bin/bash
vlc -vvv http://10.0.0.113:8000/stream.mjpg --sout="#std{access=file,mux=ogg,dst=/home/whsrobotics/vlc_project/first_try.mp4}"
sleep 10
killall vlc
Not only does it not stop the stream recording, but the app seems to freeze sometimes after I hit Ctrl+Z.
Any suggestions are appreciated.