I have a google coral dev board. I want the gstreamer plugin to work with user other than default user mendel .I performed the following steps and ran into problem.
Installed the gstreamer using the following command.
sudo apt-get install -y gstreamer1.0-plugins-bad gstreamer1.0-plugins-good python3-gst-1.0 python3-gi
Then cloned the mendel user in the following script.
SRC=$1
DEST=$2
SRC_GROUPS=$(id -Gn ${SRC} | sed "s/${SRC} //g" | sed "s/ ${SRC}//g" | sed "s/ /,/g")
SRC_SHELL=$(awk -F : -v name=${SRC} '(name == $1) { print $7 }' /etc/passwd)
useradd --groups ${SRC_GROUPS} --shell ${SRC_SHELL} --create-home ${DEST}
passwd ${DEST}
3. If we save the above file under the name clone-user.sh.
Then use the following command
./clone-user.sh mendel user2
.
If we switch to the user created above using
sudo su - user2
and run the command thegst-launch-1.0 videotestsrc ! waylandsink
. Then gstreamer wont work.Where as the command
gst-launch-1.0 videotestsrc ! waylandsink
works if we are using a default user. In my case it is mendel.
I have tried the link. But it also doesnot work.