-1

Ok, so basically I'm trying to make a command run automatically after startup. The reason why I emphasize "after" is because right now, it runs the command for a sec on boot screen, but reaching desktop, it shuts down.


I've tried using crontab -e and systemd methods, both fail. Here's the command I'm trying to execute:

raspivid -o - -t 0 -fps 40 -b 6000000 | ffmpeg -re -ar 44100 -ac 2 -acodec pcm_s16le -f s16le -ac 2 -i /dev/zero -f h264 -i - -vcodec copy -acodec aac -ab 128k -g 50 -strict experimental -f flv 

Thanks in advance

  • Does this answer your question? [How to run a shell script at startup](https://stackoverflow.com/questions/12973777/how-to-run-a-shell-script-at-startup), If this link does not answer the question, then you should add more info, like errors created (should be in `/var/log/messages` if there are any errors) – Luuk May 30 '22 at 19:22

0 Answers0