Conversation
luhenry
added a commit
that referenced
this pull request
Sep 10, 2026
Builds libdecord.so against a from-source LGPL FFmpeg 6.1.6 (no --enable-gpl/libx264/libvpx: decord only ever decodes), then retags the wheel py3-none since libdecord.so is loaded via ctypes. FFmpeg is built with its full default library set (avdevice included): passing -DFFMPEG_DIR to decord's CMakeLists hardcodes an unconditional link against libavdevice.so, unlike the pkg-config path, which treats it as optional. Two small patches fix FFmpeg API drift between decord's own pin (4.1.6, which predates riscv64 support entirely) and 6.1.6: bsf.h moved out of avcodec.h, and av_find_best_stream() now fills a const AVCodec**.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
decord0.6.0Compiles libdecord.so, a ctypes-loaded video/audio decoder built against FFmpeg, then packages it as a py3-none wheel. Upstream publishes no riscv64 wheel.
Mirrors upstream's pypi.yml manylinux job and tools/build_manylinux2010.sh.
Differs from upstream
wheel tagsafter building, matching upstream's own hand-renamed tagTesting
License: Wheel bundles LGPL-2.1+ FFmpeg shared libraries; upstream ships no licence text for them, so the build adds one.
Built on cp312.