From nobody Wed Jul 17 08:44:53 2024 X-Original-To: dev-commits-ports-main@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WP8dK4lf6z5QsX1; Wed, 17 Jul 2024 08:44:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WP8dK42m3z4Q9d; Wed, 17 Jul 2024 08:44:53 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721205893; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ateYx7Pcs5WwbFehjbbTPu8jG3x78xbmRJkejmjPWWY=; b=l8dAg5k80IWCEv60FXxQZAjKv5Sei0CGRsFVRVIOZeAJ3HjA95a5VUGCWmBJZ1SyUK2cQN kSuT9LcQN1QOMlNeaB2lu69o05H7M0YCSOHXOmu2ydM5+PGODc98pC5whFlFrXvTQb6fxa RdubtMYyGS1H17lpHf2YXuF6BP+mEniM9pbcx0u8ylO4OFoBcWrocQ4BuZhf+XdThBA04H fnUE2RPdoLFRt+PmqoHB0DFX4eYYzA7GgdWYrWXj4ZLkqLOrt4OYysMIy4MevzkMxMYrnr 9KDutzRM4MMtFF9YAtgyopECVNVw7hwFrWUpq3WvQHEdhsosaqzWFnpMK0PwUw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1721205893; a=rsa-sha256; cv=none; b=BdrJt+fhRhZmTWn1/Ygu8/Sh5onOOky8G8h2Dmp6rWmQTJjm/w5CuEytvYHm7pN7MF59DY T+t0TNE14PyJY3f+WtrKFvhZZNI///7X+VPuV+F+ofP4TgmD3DRKVRLlhxMpwP0tVsuNX0 xV8QQzMHGXkv8IcZA39J0YZCkVjbPnclmFCJgoZkMYcxkW8o48jJqRNfoz0qjIpdHnB6FT Ht4AeTvzIFtIWL3iw7sOVSQYdvkvnDrm5BKRn4aibzbwEl88qCtNvuAu68Un7CSgoAVLwK IrKfpLvRJB+JAmhNVUdJj/Il9b9ZcQ5PCwmIws2Ja8ZjXAVSeLySfXG2wKe7vw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1721205893; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=ateYx7Pcs5WwbFehjbbTPu8jG3x78xbmRJkejmjPWWY=; b=hor6Kpr7TvEPQ3sYaFCIPtzc8Vak09Yxn0IVY/Fm1v02Hq9u9U4O9UdvUUhLsdB5KdN2w2 unlSEGftdiXLcycsKa+In86cgqKk4o3Fv8iUmg+5W6/E2sezMg9/b3oP0LK/UO22ykR5Bg 2JZg2iImfkG2uwyzCeJIC59OSjMO42+QXol6H1PcuNf6pNxSBU1+RK5QChtoIvu3wL65LM Y1wLeTvwfMJHN9c3YROQse8oVCJ+knI96SQhJehrSUUW0haLY7BmRRdyDoS6WBgPYjdpPB Ys5wemiTKBS2wqUT6XPqchynNt/x9FYQpq0KAOxNqwef/mGTJudTGrb/xAEpMw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4WP8dK3g17z1CcT; Wed, 17 Jul 2024 08:44:53 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 46H8irW3055381; Wed, 17 Jul 2024 08:44:53 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 46H8iraI055378; Wed, 17 Jul 2024 08:44:53 GMT (envelope-from git) Date: Wed, 17 Jul 2024 08:44:53 GMT Message-Id: <202407170844.46H8iraI055378@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Yuri Victorovich Subject: git: dcb22c03fdae - main - multimedia/py-decord: New port: Efficient video loader for deep learning List-Id: Commits to the main branch of the FreeBSD ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-ports-main@freebsd.org Sender: owner-dev-commits-ports-main@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: yuri X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: dcb22c03fdaef8dfed8301f5d764000f844c45dc Auto-Submitted: auto-generated The branch main has been updated by yuri: URL: https://cgit.FreeBSD.org/ports/commit/?id=dcb22c03fdaef8dfed8301f5d764000f844c45dc commit dcb22c03fdaef8dfed8301f5d764000f844c45dc Author: Yuri Victorovich AuthorDate: 2024-07-17 07:41:28 +0000 Commit: Yuri Victorovich CommitDate: 2024-07-17 08:44:50 +0000 multimedia/py-decord: New port: Efficient video loader for deep learning --- multimedia/Makefile | 1 + multimedia/py-decord/Makefile | 37 +++++++++++++++++++++++++++++++++++++ multimedia/py-decord/distinfo | 3 +++ multimedia/py-decord/pkg-descr | 13 +++++++++++++ 4 files changed, 54 insertions(+) diff --git a/multimedia/Makefile b/multimedia/Makefile index 4212cc6af265..f4515db9788a 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -303,6 +303,7 @@ SUBDIR += py-PySceneDetect SUBDIR += py-av SUBDIR += py-cec + SUBDIR += py-decord SUBDIR += py-enzyme SUBDIR += py-ffmpeg-python SUBDIR += py-gstreamer1 diff --git a/multimedia/py-decord/Makefile b/multimedia/py-decord/Makefile new file mode 100644 index 000000000000..c2988405d176 --- /dev/null +++ b/multimedia/py-decord/Makefile @@ -0,0 +1,37 @@ +PORTNAME= decord +DISTVERSIONPREFIX= v +DISTVERSION= 0.6.0 +CATEGORIES= multimedia python # machine-learning +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +MAINTAINER= yuri@FreeBSD.org +COMMENT= Efficient video loader for deep learning +WWW= https://github.com/olemb/mido + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/../LICENSE + +LIB_DEPENDS= libdecord.so:multimedia/decord + +USES= python +USE_PYTHON= distutils autoplist + +USE_GITHUB= yes +GH_ACCOUNT= dmlc + +WRKSRC_SUBDIR= python + +MAKE_ENV= DECORD_LIBRARY_PATH=${LOCALBASE}/lib + +POST_PLIST= fix-plist + +NO_ARCH= yes + +fix-plist: + @${REINPLACE_CMD} -e "s|decord/libdecord.so||" ${TMPPLIST} + +post-install: + @${RM} ${STAGEDIR}${PREFIX}/decord/libdecord.so + @${RMDIR} ${STAGEDIR}${PREFIX}/decord + +.include diff --git a/multimedia/py-decord/distinfo b/multimedia/py-decord/distinfo new file mode 100644 index 000000000000..9a0a424666b7 --- /dev/null +++ b/multimedia/py-decord/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1721154896 +SHA256 (dmlc-decord-v0.6.0_GH0.tar.gz) = 4aeeb102973bbf6e3b0344d53b055e49939ea47f3607fd0e8ae4aad2d4e60b5b +SIZE (dmlc-decord-v0.6.0_GH0.tar.gz) = 19222049 diff --git a/multimedia/py-decord/pkg-descr b/multimedia/py-decord/pkg-descr new file mode 100644 index 000000000000..df595fe969de --- /dev/null +++ b/multimedia/py-decord/pkg-descr @@ -0,0 +1,13 @@ +Decord is a reverse procedure of Record. It provides convenient video slicing +methods based on a thin wrapper on top of hardware accelerated video decoders, +e.g. + FFMPEG/LibAV(Done) + Nvidia Codecs(Done) + Intel Codecs + +Decord was designed to handle awkward video shuffling experience in order to +provide smooth experiences similar to random image loader for deep learning. + +Decord is also able to decode audio from both video and audio files. One can +slice video and audio together to get a synchronized result; hence providing +a one-stop solution for both video and audio decoding.