Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions AGENTS.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,10 @@ as `iterframes.iterframes`, and `iterframes/__init__.py` wraps its
linker. `build.rs` finds `bash.exe` on `PATH` itself, since Rust would
otherwise pick WSL's from the system directory.
- Keep the build LGPL: never pass `--enable-gpl` or `--enable-nonfree`.
- iterframes itself is Apache-2.0. The wheels carry the licenses of what
they bundle, listed in `NOTICE` with their texts in `licenses/`: when a
version in `scripts/build-ffmpeg.sh` changes, or a library is added,
update both.
- Hardware decoding (`device="mps"` / `"cuda"`, PyTorch's names, mapped
to FFmpeg's in `hardware_devices` in `src/lib.rs`): VideoToolbox on
macOS; on Linux and Windows
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ rust-version = "1.89"
description = "Iterate over the frames of a video as NumPy arrays, decoded on a background thread while you process them"
homepage = "https://github.com/alesanfra/iterframes"
repository = "https://github.com/alesanfra/iterframes"
license = "LGPL-3.0-only"
license = "Apache-2.0"
publish = false

[lib]
Expand Down
365 changes: 201 additions & 164 deletions LICENSE

Large diffs are not rendered by default.

19 changes: 19 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
iterframes
Copyright 2020 Alessio Sanfratello

This product is licensed under the Apache License, Version 2.0, found in
the LICENSE file.

The wheels also include software by third parties, under their own
licenses, whose texts are in the licenses directory:

- FFmpeg 9.0.2 (https://ffmpeg.org/), under the GNU Lesser General
Public License, version 2.1 or later: licenses/FFmpeg-LGPL-2.1.txt.
It is built without its GPL and nonfree parts. Its source and the
script that builds it, scripts/build-ffmpeg.sh, are available, so that
it can be modified, rebuilt, and relinked.
- dav1d 1.5.4 (https://code.videolan.org/videolan/dav1d), under the BSD
2-clause license: licenses/dav1d-BSD-2-Clause.txt.
- nv-codec-headers 13.0.19.0 (https://github.com/FFmpeg/nv-codec-headers),
in the Linux and Windows wheels only, under the MIT license:
licenses/nv-codec-headers-MIT.txt.
9 changes: 6 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,10 @@ lists features that are waiting for someone to build them.

## License

iterframes is released under the [LGPL-3.0](https://github.com/alesanfra/iterframes/blob/main/LICENSE). The wheels include
[FFmpeg](https://ffmpeg.org/), built under the LGPL, and
iterframes is released under the [Apache License 2.0](https://github.com/alesanfra/iterframes/blob/main/LICENSE).
The wheels include [FFmpeg](https://ffmpeg.org/), built under the LGPL, and
[dav1d](https://code.videolan.org/videolan/dav1d), under the BSD 2-clause
license.
license. They are listed in
[`NOTICE`](https://github.com/alesanfra/iterframes/blob/main/NOTICE), with
their license texts in
[`licenses/`](https://github.com/alesanfra/iterframes/tree/main/licenses).
502 changes: 502 additions & 0 deletions licenses/FFmpeg-LGPL-2.1.txt

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions licenses/dav1d-BSD-2-Clause.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Copyright © 2018-2025, VideoLAN and dav1d authors
All rights reserved.

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:

1. Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.

2. Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution.

THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26 changes: 26 additions & 0 deletions licenses/nv-codec-headers-MIT.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
nv-codec-headers 13.0.19.0 (https://github.com/FFmpeg/nv-codec-headers),
compiled into FFmpeg in the Linux and Windows wheels.

Copyright (c) 2016
Copyright (c) 2010-2024 NVIDIA Corporation

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the software, and to permit persons to whom the
software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ authors = [
]
description = "Iterate over the frames of a video as NumPy arrays, decoded on a background thread while you process them"
readme = "README.md"
license = "LGPL-3.0-only"
license-files = ["LICENSE"]
license = "Apache-2.0"
license-files = ["LICENSE", "NOTICE", "licenses/*"]
keywords = [
"video", "decoder", "ffmpeg", "frames", "numpy", "video-reader",
"pytorch", "deep-learning", "computer-vision", "nvdec", "videotoolbox",
Expand Down
2 changes: 1 addition & 1 deletion web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -510,7 +510,7 @@ <h2>Start reading frames</h2>
<footer class="site-foot">
<div class="wrap foot-in">
<p>
iterframes is <a href="https://github.com/alesanfra/iterframes/blob/main/LICENSE">LGPL-3.0</a>.
iterframes is <a href="https://github.com/alesanfra/iterframes/blob/main/LICENSE">Apache 2.0</a>.
The wheels bundle <a href="https://ffmpeg.org/">FFmpeg</a>, built under the LGPL, and
<a href="https://code.videolan.org/videolan/dav1d">dav1d</a>, under the BSD 2-clause license.
</p>
Expand Down