remove venc & vdec binaries from packages (#1045)

pull/1047/head
cronyx 2023-10-13 21:28:38 +03:00 committed by GitHub
parent cee2d87a81
commit 0619fa099b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
6 changed files with 30 additions and 5 deletions

View File

@ -0,0 +1,18 @@
#!/bin/sh
#
# Start vdec decoder
#
case "$1" in
start)
echo "Starting vdec decoder service..."
vdec -p 5600 -d frame -c h265 --bg-r 30 --bg-g 0 --bg-b 30 --osd &
;;
stop)
echo "Stopping vdec decoder service..."
kill -9 $(pidof vdec)
;;
*)
echo "Usage: $0 {start|stop}"
exit 1
esac

View File

@ -4,11 +4,16 @@
#
################################################################################
VDEC_OPENIPC_SITE = https://github.com/OpenIPC/silicon_research/releases/download/latest/vdec
VDEC_OPENIPC_LICENSE = MIT
define VDEC_OPENIPC_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin
cp $(VDEC_OPENIPC_PKGDIR)/files/vdec $(TARGET_DIR)/usr/bin/vdec
curl -k -L -o $(@D)/vdec $(VDEC_OPENIPC_SITE)
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/vdec
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/init.d
cp $(VDEC_OPENIPC_PKGDIR)/files/S98vdec $(TARGET_DIR)/etc/init.d/S98vdec
endef
$(eval $(generic-package))

View File

@ -12,7 +12,7 @@ case "$1" in
venc -p 5600 -f 30 -r 7168 -n 1400 -c 265cbr -d frame -v 200_imx307F -s 720p &
;;
stop)
echo "Stopping venc encoder services..."
echo "Stopping venc encoder service..."
kill -9 $(pidof venc)
;;
*)

View File

@ -4,11 +4,13 @@
#
################################################################################
VENC_OPENIPC_SITE = https://github.com/OpenIPC/silicon_research/releases/download/latest/venc
VENC_OPENIPC_LICENSE = MIT
define VENC_OPENIPC_INSTALL_TARGET_CMDS
$(INSTALL) -m 755 -d $(TARGET_DIR)/usr/bin
cp $(VENC_OPENIPC_PKGDIR)/files/venc $(TARGET_DIR)/usr/bin/venc
curl -k -L -o $(@D)/venc $(VENC_OPENIPC_SITE)
$(INSTALL) -m 755 -t $(TARGET_DIR)/usr/bin $(@D)/venc
$(INSTALL) -m 755 -d $(TARGET_DIR)/etc/init.d
cp $(VENC_OPENIPC_PKGDIR)/files/S98venc $(TARGET_DIR)/etc/init.d/S98venc