mirror of https://github.com/OpenIPC/firmware.git
22 lines
400 B
Bash
Executable File
22 lines
400 B
Bash
Executable File
#!/bin/sh
|
|
#
|
|
# Start venc encoder
|
|
#
|
|
|
|
case "$1" in
|
|
start)
|
|
if ! [ -f /dev/ven ]; then
|
|
ln -s /dev/venc /dev/ven
|
|
fi
|
|
echo "Starting venc encoder service..."
|
|
venc -p 5600 -f 30 -r 7168 -n 1400 -c 265cbr -d frame -v 200_imx307F -s 720p &
|
|
;;
|
|
stop)
|
|
echo "Stopping venc encoder services..."
|
|
kill -9 $(pidof venc)
|
|
;;
|
|
*)
|
|
echo "Usage: $0 {start|stop}"
|
|
exit 1
|
|
esac
|