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