Hi,
When executing (in a command prompt) a gst-launch-ed pipeline that is capturing a live feed, what's the best way to stop it other than ctrl-C? I want to close it automatically,without the use of the keyboard...
Any suggestions??
Hi,
I tried to find the process id and kill the process, but i think thats not the correct way...
Can anyone suggest me an alternate/correct way of stopping livestreaming using gst-launch????
The best way is to send the pipeline to NULL state in case you launching the pipeline inside a C program. From the shell, You can send a SIGINT signal with the command kill, check the man info.
Leo
if it works on the shell, then it should work using the system call 'system'. Just remember that looking at gst process with ps, it with also pick the grep command, so I dont think those pipes will work all the time.
Leo