Page 1 of 1

Raspberry pi 4 running multiple instances on separate Tvs

Posted: 23 Nov 2022 16:38
by rijotech
Hi, I'm working on a project using Raspberry pi 4 with two HDMI and VLC ruand I was wondering if there is a way to run VLC with an identifier so that I can kill a VLC process leaving the other running?
https://user-images.githubusercontent.c ... 014c8e.mp4

Re: Raspberry pi 4 running multiple instances on separate Tvs

Posted: 23 Nov 2022 18:00
by InTheWings
do some basic linux process management

Re: Raspberry pi 4 running multiple instances on separate Tvs

Posted: 23 Nov 2022 18:25
by rijotech
do some basic linux process management
I know how to kill the process manually and individually using Pid, the problem is I launch and kill VLC on each tv via PHP and web interface and the Pid process changes id constantly unless there is a way to assign a static Pid id to a VLC process, now that would be great since I'll know which process to kill.
Let me do some digging around to see if I can assign a Pid id to a process.
and thanks for your response.

Re: Raspberry pi 4 running multiple instances on separate Tvs

Posted: 24 Nov 2022 09:42
by Alaric
How do you launch VLC using PHP exactly? You process spawning API should give you the pid of the spawned process so you can track and kill it.