diff --git a/multimedia/Makefile b/multimedia/Makefile index 16294517fe57..38e391fdb7da 100644 --- a/multimedia/Makefile +++ b/multimedia/Makefile @@ -1,416 +1,417 @@ COMMENT = Multimedia software SUBDIR += Bento4 SUBDIR += ab-av1 SUBDIR += ab25 SUBDIR += alass SUBDIR += aom SUBDIR += aravis SUBDIR += arcan SUBDIR += aribb24 SUBDIR += assimp SUBDIR += atomicparsley SUBDIR += audacious SUBDIR += audacious-plugins SUBDIR += av1an SUBDIR += avidemux SUBDIR += avidemux-cli SUBDIR += avidemux-plugins SUBDIR += avidemux-qt5 SUBDIR += baka-mplayer SUBDIR += bcmatroska2 SUBDIR += bino SUBDIR += bitstream SUBDIR += blind SUBDIR += btavctpd SUBDIR += butt SUBDIR += ccextractor SUBDIR += celluloid SUBDIR += cheese SUBDIR += chilitags SUBDIR += cineencoder SUBDIR += clapper SUBDIR += clutter-gst SUBDIR += clutter-gst3 SUBDIR += cmrt SUBDIR += cmrtlib SUBDIR += cx88 SUBDIR += dav1d SUBDIR += decord SUBDIR += deforaos-camera SUBDIR += deforaos-player SUBDIR += dovi_tool SUBDIR += dragon SUBDIR += droidcam SUBDIR += dtv-scan-tables SUBDIR += dv2sub SUBDIR += dvb-apps SUBDIR += dvbcut SUBDIR += dvbsnoop SUBDIR += dvd-slideshow SUBDIR += dvdauthor SUBDIR += dvdid SUBDIR += dvdread SUBDIR += dvdstyler SUBDIR += elementary-videos SUBDIR += emby-server SUBDIR += ffaudioconverter SUBDIR += ffdec SUBDIR += ffmpeg SUBDIR += ffmpeg3 SUBDIR += ffmpeg4 SUBDIR += ffmpegthumbnailer SUBDIR += ffms2 SUBDIR += ffnvcodec-headers SUBDIR += filebot SUBDIR += flvmeta SUBDIR += fswebcam SUBDIR += gaupol SUBDIR += gavl SUBDIR += get_iplayer SUBDIR += gmmlib SUBDIR += gmp-api SUBDIR += gpac SUBDIR += gpodder SUBDIR += gst123 SUBDIR += gstreamer1 SUBDIR += gstreamer1-editing-services SUBDIR += gstreamer1-libav SUBDIR += gstreamer1-plugins SUBDIR += gstreamer1-plugins-all SUBDIR += gstreamer1-plugins-aom SUBDIR += gstreamer1-plugins-assrender SUBDIR += gstreamer1-plugins-bad SUBDIR += gstreamer1-plugins-core SUBDIR += gstreamer1-plugins-dash SUBDIR += gstreamer1-plugins-dts SUBDIR += gstreamer1-plugins-dv SUBDIR += gstreamer1-plugins-dvdread SUBDIR += gstreamer1-plugins-good SUBDIR += gstreamer1-plugins-hls SUBDIR += gstreamer1-plugins-libde265 SUBDIR += gstreamer1-plugins-mpeg2dec SUBDIR += gstreamer1-plugins-mpeg2enc SUBDIR += gstreamer1-plugins-mplex SUBDIR += gstreamer1-plugins-msdk SUBDIR += gstreamer1-plugins-openh264 SUBDIR += gstreamer1-plugins-resindvd SUBDIR += gstreamer1-plugins-rust SUBDIR += gstreamer1-plugins-smoothstreaming SUBDIR += gstreamer1-plugins-svt-av1 SUBDIR += gstreamer1-plugins-svt-hevc SUBDIR += gstreamer1-plugins-svt-vp9 SUBDIR += gstreamer1-plugins-theora SUBDIR += gstreamer1-plugins-ttml SUBDIR += gstreamer1-plugins-ugly SUBDIR += gstreamer1-plugins-v4l2 SUBDIR += gstreamer1-plugins-vpx SUBDIR += gstreamer1-plugins-webrtc SUBDIR += gstreamer1-plugins-x264 SUBDIR += gstreamer1-plugins-x265 SUBDIR += gstreamer1-rtsp-server SUBDIR += gstreamer1-vaapi SUBDIR += gstreamermm SUBDIR += gtk-pipe-viewer SUBDIR += gtk-youtube-viewer SUBDIR += guvcview SUBDIR += handbrake SUBDIR += haruna SUBDIR += harvid SUBDIR += helvum SUBDIR += intel-media-sdk SUBDIR += iso2mkv SUBDIR += jellyfin SUBDIR += jellyfin-media-player SUBDIR += jmref SUBDIR += kaffeine SUBDIR += kamoso SUBDIR += kasts SUBDIR += kdemultimedia SUBDIR += kdemultimedia-ffmpegthumbs SUBDIR += kdenlive SUBDIR += kew SUBDIR += kf5-kmediaplayer SUBDIR += kmplayer SUBDIR += kodi SUBDIR += kodi-addon-inputstream.adaptive SUBDIR += kodi-addon-peripheral.joystick SUBDIR += kodi-addon-pvr.hts SUBDIR += kodi-addon-pvr.iptvsimple SUBDIR += kodi-addon-screensaver.biogenesis SUBDIR += kodi-addon-screensaver.matrixtrails SUBDIR += kodi-addon-screensaver.stars SUBDIR += kodi-addon-visualization.fishbmc SUBDIR += kodi-addon-visualization.projectm SUBDIR += kodi-addon-visualization.shadertoy SUBDIR += kodi-addon-visualization.spectrum SUBDIR += kooha SUBDIR += kvazaar SUBDIR += l-smash SUBDIR += lebiniou SUBDIR += lebiniou-data SUBDIR += libaacs SUBDIR += libass SUBDIR += libbdplus SUBDIR += libbluray SUBDIR += libcec SUBDIR += libdc1394 SUBDIR += libdca SUBDIR += libdcadec SUBDIR += libde265 SUBDIR += libdv SUBDIR += libdvbcsa SUBDIR += libdvbpsi SUBDIR += libdvdcss SUBDIR += libdvdnav SUBDIR += libdvdread SUBDIR += libgav1 SUBDIR += libhdhomerun SUBDIR += libmatroska SUBDIR += libmediaart SUBDIR += libmediainfo SUBDIR += libmpeg2 SUBDIR += libmtp SUBDIR += libndi SUBDIR += libopenshot SUBDIR += librav1e SUBDIR += librespot SUBDIR += librist SUBDIR += libtheora SUBDIR += libtuner SUBDIR += libudfread SUBDIR += libuvc SUBDIR += libv4l SUBDIR += libva SUBDIR += libva-intel-driver SUBDIR += libva-intel-hybrid-driver SUBDIR += libva-intel-media-driver SUBDIR += libva-nvidia-driver SUBDIR += libva-utils SUBDIR += libva-vdpau-driver SUBDIR += libvdpau SUBDIR += libvdpau-va-gl SUBDIR += libvlcpp SUBDIR += libvpx SUBDIR += libwebm SUBDIR += libx264 SUBDIR += libxine SUBDIR += libxspf SUBDIR += libzen SUBDIR += linux-c7-libtheora SUBDIR += linux-c7-libv4l SUBDIR += linux-rl9-aom SUBDIR += linux-rl9-ffmpeg SUBDIR += linux-rl9-gstreamer1 SUBDIR += linux-rl9-gstreamer1-libav SUBDIR += linux-rl9-libtheora SUBDIR += linux-rl9-libv4l SUBDIR += linux-rl9-libva SUBDIR += linux-rl9-libvdpau SUBDIR += linux-rl9-libvpx SUBDIR += linux-rl9-qt5-qtmultimedia SUBDIR += linux-rl9-vmaf SUBDIR += linux-tsmuxer SUBDIR += linux_dvbwrapper-kmod SUBDIR += livego SUBDIR += lives SUBDIR += lms SUBDIR += lsdvd SUBDIR += m2vrequantiser SUBDIR += makemkv SUBDIR += mediaelch SUBDIR += mediainfo SUBDIR += mediamtx SUBDIR += mencoder SUBDIR += minisatip SUBDIR += minitube SUBDIR += mjpegtools SUBDIR += mkclean SUBDIR += mkvalidator SUBDIR += mkvtoolnix SUBDIR += mlt7 SUBDIR += mlt7-glaxnimate SUBDIR += mlt7-qt SUBDIR += motion SUBDIR += mp3cd SUBDIR += mp4v2 SUBDIR += mpc-qt SUBDIR += mplayer SUBDIR += mplayer-skins SUBDIR += mplex SUBDIR += mpv SUBDIR += mpv-mpris SUBDIR += mpvpaper SUBDIR += mpvqt SUBDIR += msopenh264 SUBDIR += mswebrtc SUBDIR += musikcube SUBDIR += musique SUBDIR += mxflib SUBDIR += mythtv SUBDIR += naludump SUBDIR += navidrome SUBDIR += neolink SUBDIR += nostt SUBDIR += nymphcast SUBDIR += nymphcastlib SUBDIR += nymphrpc SUBDIR += obs-multi-rtmp SUBDIR += obs-recursion-effect SUBDIR += obs-streamfx SUBDIR += obs-studio SUBDIR += obs-text-pthread SUBDIR += obs-waveform SUBDIR += obuparse SUBDIR += oggvideotools SUBDIR += ogmtools SUBDIR += olive SUBDIR += onevpl SUBDIR += openh264 SUBDIR += openshot SUBDIR += opentimelineio SUBDIR += opentoonz SUBDIR += oscam SUBDIR += ossia-score SUBDIR += p5-Audio-M4P SUBDIR += p5-FFmpeg-Command SUBDIR += p5-FLV-Info SUBDIR += p5-File-Format-RIFF SUBDIR += p5-MP4-Info SUBDIR += p5-Net-UPnP SUBDIR += p5-Subtitles SUBDIR += peek SUBDIR += phonon SUBDIR += phonon-designerplugin SUBDIR += phonon-mpv SUBDIR += phonon-vlc SUBDIR += photofilmstrip SUBDIR += pipe-viewer SUBDIR += pipewire SUBDIR += pitivi SUBDIR += plasmatube SUBDIR += playerctl SUBDIR += plexmediaserver SUBDIR += plexmediaserver-plexpass SUBDIR += podcastdl SUBDIR += poe SUBDIR += ptx-kmod SUBDIR += pwcbsd SUBDIR += pwcview SUBDIR += py-av SUBDIR += py-cec SUBDIR += py-decord SUBDIR += py-enzyme SUBDIR += py-gstreamer1 SUBDIR += py-guessit SUBDIR += py-knowit SUBDIR += py-mat2 SUBDIR += py-metadata-cleaner SUBDIR += py-mido SUBDIR += py-moviepy SUBDIR += py-opentimelineio SUBDIR += py-periscope SUBDIR += py-pretty_midi SUBDIR += py-pymediainfo SUBDIR += py-pysubs2 SUBDIR += py-python-mpv SUBDIR += py-pytube SUBDIR += py-scenedetect SUBDIR += py-soco SUBDIR += py-srt SUBDIR += py-subliminal SUBDIR += py-tartube + SUBDIR += py-torchcodec SUBDIR += py-trakit SUBDIR += py-tvnamer SUBDIR += py-ustreamer SUBDIR += qmmp-plugin-pack-qt5 SUBDIR += qmmp-plugin-pack-qt6 SUBDIR += qmmp-qt5 SUBDIR += qmmp-qt6 SUBDIR += qpwgraph SUBDIR += qt5-multimedia SUBDIR += qt6-multimedia SUBDIR += quodlibet SUBDIR += qwinff SUBDIR += rage SUBDIR += rav1e SUBDIR += recordmydesktop SUBDIR += replex SUBDIR += ringrtc SUBDIR += rubygem-av SUBDIR += rubygem-clutter-gstreamer SUBDIR += rubygem-flvtool2 SUBDIR += rubygem-gstreamer SUBDIR += rubygem-streamio-ffmpeg SUBDIR += scte35dump SUBDIR += shotcut SUBDIR += shotcut-qt6 SUBDIR += showtime SUBDIR += simplescreenrecorder SUBDIR += smpeg SUBDIR += smpeg2 SUBDIR += smplayer SUBDIR += smplayer-skins SUBDIR += smplayer-themes SUBDIR += snapcast SUBDIR += streamlink SUBDIR += subtitlecomposer SUBDIR += subtitleoffsetmodifier SUBDIR += subtools SUBDIR += supersonic SUBDIR += svt-av1 SUBDIR += svt-av1-hdr SUBDIR += svt-hevc SUBDIR += svt-vp9 SUBDIR += syncplay SUBDIR += szap-s2 SUBDIR += tautulli SUBDIR += tenacity SUBDIR += termplay SUBDIR += tinyobjloader SUBDIR += tivodecode SUBDIR += totem SUBDIR += totem-pl-parser SUBDIR += tsduck SUBDIR += tvheadend SUBDIR += ustreamer SUBDIR += uvg266 SUBDIR += uxplay SUBDIR += v4l-utils SUBDIR += v4l_compat SUBDIR += vamps SUBDIR += vapoursynth SUBDIR += vapoursynth-l-smash-works SUBDIR += vapoursynth-vmaf SUBDIR += vcdgear SUBDIR += vcdimager SUBDIR += vdpauinfo SUBDIR += vid.stab SUBDIR += video-trimmer SUBDIR += vlc SUBDIR += vmaf SUBDIR += vvdec SUBDIR += vvenc SUBDIR += w_scan2 SUBDIR += webcamd SUBDIR += webcamoid SUBDIR += wf-recorder SUBDIR += winff SUBDIR += wireplumber SUBDIR += wl-screenrec SUBDIR += wlrobs SUBDIR += x264 SUBDIR += x265 SUBDIR += xanim SUBDIR += xawtv SUBDIR += xfce4-parole SUBDIR += xine SUBDIR += xporthdmv SUBDIR += xvid SUBDIR += yamdi SUBDIR += youtui SUBDIR += ytfzf SUBDIR += zart SUBDIR += zoneminder .include diff --git a/multimedia/py-torchcodec/Makefile b/multimedia/py-torchcodec/Makefile new file mode 100644 index 000000000000..b043dba285c1 --- /dev/null +++ b/multimedia/py-torchcodec/Makefile @@ -0,0 +1,41 @@ +PORTNAME= torchcodec +DISTVERSIONPREFIX= v +DISTVERSION= 0.10.0 +CATEGORIES= multimedia python +#MASTER_SITES= PYPI # no tarball +PKGNAMEPREFIX= ${PYTHON_PKGNAMEPREFIX} + +PATCH_SITES= https://github.com/${GH_ACCOUNT}/${GH_PROJECT}/commit/ +PATCHFILES+= 906a2753082f6591df841331c7713a8c30e1f7f4.patch:-p1 # https://github.com/meta-pytorch/torchcodec/pull/1193 + +MAINTAINER= yuri@FreeBSD.org +COMMENT= PyTorch media decoding and encoding +WWW= https://github.com/pytorch/torchcodec + +LICENSE= BSD3CLAUSE +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= ${PY_SETUPTOOLS} \ + ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}wheel>0:devel/py-wheel@${PY_FLAVOR} \ + pybind11>0:devel/pybind11 +LIB_DEPENDS= libabsl_base.so:devel/abseil \ + libavformat.so:multimedia/ffmpeg \ + libprotobuf.so:devel/protobuf +RUN_DEPENDS= ${PYTHON_PKGNAMEPREFIX}pytorch>0:misc/py-pytorch@${PY_FLAVOR} \ + ${PYTHON_PKGNAMEPREFIX}torchvision>0:misc/py-torchvision@${PY_FLAVOR} +TEST_DEPENDS= ${PYNUMPY} + +USES= cmake:indirect compiler:c++17-lang python +USE_PYTHON= pep517 autoplist pytest + +USE_GITHUB= yes +GH_ACCOUNT= meta-pytorch + +#MAKE_ENV= BUILD_AGAINST_ALL_FFMPEG_FROM_S3=1 # downloads binaries with this choice, see https://github.com/meta-pytorch/torchcodec/issues/1194 +MAKE_ENV= I_CONFIRM_THIS_IS_NOT_A_LICENSE_VIOLATION=1 +TEST_ENV= ${MAKE_ENV} PYTHONPATH=${STAGEDIR}${PYTHONPREFIX_SITELIBDIR} + +# tests as of 0.10.0: 290 failed, 910 passed, 546 skipped in 357.51s (0:05:57), see https://github.com/meta-pytorch/torchcodec/issues/1192 + +.include diff --git a/multimedia/py-torchcodec/distinfo b/multimedia/py-torchcodec/distinfo new file mode 100644 index 000000000000..3d73194fd06e --- /dev/null +++ b/multimedia/py-torchcodec/distinfo @@ -0,0 +1,5 @@ +TIMESTAMP = 1769305124 +SHA256 (meta-pytorch-torchcodec-v0.10.0_GH0.tar.gz) = a970d3dd51f65ee12898397e54079bcd19c9d498cddfb661379721cfcc2c36e2 +SIZE (meta-pytorch-torchcodec-v0.10.0_GH0.tar.gz) = 11507970 +SHA256 (906a2753082f6591df841331c7713a8c30e1f7f4.patch) = 06985809525b9e44fb401dea8e477fd5c0107058ef3fdd6faac4f516c2da6a13 +SIZE (906a2753082f6591df841331c7713a8c30e1f7f4.patch) = 997 diff --git a/multimedia/py-torchcodec/pkg-descr b/multimedia/py-torchcodec/pkg-descr new file mode 100644 index 000000000000..e738fb259946 --- /dev/null +++ b/multimedia/py-torchcodec/pkg-descr @@ -0,0 +1,7 @@ +Hardware-accelerated video and audio decoding for PyTorch. + +TorchCodec is a library that provides fast and easy-to-use tools for +decoding video and audio directly into PyTorch tensors. It uses FFmpeg +as a backend and is optimized for performance, with support for +hardware acceleration. This makes it ideal for machine learning pipelines +that process large amounts of video and audio data.