0

I'm having trouble launching a command line in background. The command I'm trying tu run in background is :

raspivid -o - -t 0 -n | cvlc -vvv stream:///dev/stdin --sout '#rtp{sdp=rtsp://:8554/cam}' :demux=h264

It's running on raspbian stretch lite on a Raspberry 2. It works fine when I leave the terminal open... I can access the stream with a VLC client. But of course, I can't keep the terminal open.

I tried to add a & at the end of the command line (I read it runs the command in background) but I still see all the logs at the screen and I don't have the hand on the terminal.

I also tried to had the command in the /etc/rc.local file but I don't know if the command worked (I don't know where the logs for vlc are) But since I can't open the stream on a VLC client, I suppose it didn't work as expected.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.