diff --git a/general/package/vdec-openipc/files/S98vdec b/general/package/vdec-openipc/files/S98vdec new file mode 100755 index 00000000..771712b0 --- /dev/null +++ b/general/package/vdec-openipc/files/S98vdec @@ -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 diff --git a/general/package/vdec-openipc/files/vdec b/general/package/vdec-openipc/files/vdec deleted file mode 100755 index 84e08000..00000000 Binary files a/general/package/vdec-openipc/files/vdec and /dev/null differ diff --git a/general/package/vdec-openipc/vdec-openipc.mk b/general/package/vdec-openipc/vdec-openipc.mk index b6d7f618..2770339f 100644 --- a/general/package/vdec-openipc/vdec-openipc.mk +++ b/general/package/vdec-openipc/vdec-openipc.mk @@ -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)) diff --git a/general/package/venc-openipc/files/S98venc b/general/package/venc-openipc/files/S98venc index ed0213d8..a0904ac6 100755 --- a/general/package/venc-openipc/files/S98venc +++ b/general/package/venc-openipc/files/S98venc @@ -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) ;; *) diff --git a/general/package/venc-openipc/files/venc b/general/package/venc-openipc/files/venc deleted file mode 100755 index fbf30521..00000000 Binary files a/general/package/venc-openipc/files/venc and /dev/null differ diff --git a/general/package/venc-openipc/venc-openipc.mk b/general/package/venc-openipc/venc-openipc.mk index 5ec9e8c6..cd0461aa 100644 --- a/general/package/venc-openipc/venc-openipc.mk +++ b/general/package/venc-openipc/venc-openipc.mk @@ -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