I am trying to implement the live streaming video from raspberry pi cam. I am a java developer having little knowledge of Linux.
I have successfully implemented the raspivid command to stream the live video on the web page using following command;
raspivid -t 0 -w 960 -h 540 -fps 25 -b 500000 -vf -o - | ffmpeg -i - -vcodec copy -an -f flv -metadata streamName=myStream tcp://0.0.0.0:6666
I am trying to add some controls on running live video steam like adding contrast and brightness etc
--contrast, -co Set image contrast (-100 to 100)
--brightness, -br Set image brightness (0 to 100)
but it needs to restart the complete raspivid command to take effect on web, like first to kill the raspivid process add the corresponding control and restart the complete raspivid command again. Is it possible to run separate commands for raspivid controls I mean different raspivid command to start streaming and different to add contrast and brightness without interrupting the previous command. If not then how we can do this?
Is there any way to write a sub process within a main process so that we can restart the sub process without affecting the main running process?
Thanks in advance