pyvideotools 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,102 @@
1
+ Metadata-Version: 2.4
2
+ Name: pyvideotools
3
+ Version: 0.1.0
4
+ Summary: Video metric and encoding tools
5
+ Home-page: https://github.com/Noam-Hache/pyvideotools
6
+ Author: Noam Hache
7
+ Author-email: Noam Hache <noam.hache@gmail.com>
8
+ License-Expression: MIT
9
+ Project-URL: Homepage, https://github.com/Noam-Hache/pyvideotools
10
+ Project-URL: Issues, https://github.com/Noam-Hache/pyvideotools/issues
11
+ Classifier: Programming Language :: Python :: 3
12
+ Classifier: Operating System :: OS Independent
13
+ Requires-Python: >=3.13
14
+ Description-Content-Type: text/markdown
15
+ License-File: LICENSE
16
+ Requires-Dist: setuptools>=84.0.0
17
+ Requires-Dist: vsjetpack[source]>=2.2.4
18
+ Dynamic: author
19
+ Dynamic: home-page
20
+ Dynamic: license-file
21
+
22
+ # pyvideotools : Quality Metrics & Video Encoding
23
+
24
+ WIP
25
+
26
+ Python utilities for video quality measurement and video encoding using VapourSynth.
27
+
28
+ Simple metric usage with statistics.
29
+ x264 and SVT-AV1 bindings.
30
+
31
+ ## Features
32
+ - Quality metrics
33
+ - SSIMULACRA2
34
+ - XPSNR
35
+ - Butteraugli
36
+ - CVVDP
37
+ - CPU and GPU implementations
38
+ - x264 and SVT-AV1 encoding (WIP)
39
+
40
+ ## Requirements
41
+
42
+ - Python
43
+ - [VapourSynth](https://www.vapoursynth.com/)
44
+ - [L-SMASH Works](https://github.com/HomeOfAviSynthPlusEvolution/L-SMASH-Works)
45
+ - [VS-ZIP](https://github.com/dnjulek/vapoursynth-zip) and/or [VSHIP](https://codeberg.org/Line-fr/Vship)
46
+ - [FFmpeg](https://ffmpeg.org/), [x264](https://www.videolan.org/developers/x264.html), [SVT-AV1](https://gitlab.com/AOMediaCodec/SVT-AV1), or [Turbo-Metrics](https://github.com/Gui-Yom/turbo-metrics) depending on the features used
47
+
48
+ ## Examples
49
+ ### Quality metrics examples
50
+
51
+ ```python
52
+ from src.pyvideotools import metrics
53
+ from pathlib import Path
54
+
55
+ metric = metrics.VSzipSSIMULACRA2(
56
+ source=Path("source.mkv"),
57
+ distorted=Path("encoded.mkv"),
58
+ skip=3,
59
+ )
60
+
61
+ metric.run()
62
+
63
+ print(metric.scores_standard_deviation)
64
+ print(metric.scores_median)
65
+ ```
66
+
67
+ ### Encoding examples
68
+
69
+ SVT-AV1 CRF Encoding
70
+ ```python
71
+ from src.pyvideotools import encoders
72
+
73
+ cmd = encoders.SVTAV1CommandBuilder()
74
+ cmd.input("input.mkv")
75
+ cmd.preset("4")
76
+ cmd.crf(30)
77
+ cmd.output("output.mkv", overwrite=True)
78
+ cmd.run()
79
+ ```
80
+
81
+ x264 2-pass target bitrate
82
+ ```python
83
+ from src.pyvideotools import encoders
84
+
85
+ cmd = encoders.x264CommandBuilder()
86
+ cmd.input("input.mkv")
87
+ cmd.preset("faster")
88
+ cmd.bitrate(682)
89
+ cmd.passes(2)
90
+ cmd.output("output.mkv", overwrite=True)
91
+ cmd.run()
92
+ ```
93
+
94
+
95
+ ## Supported Implementations
96
+
97
+ | Metric | CPU | GPU |
98
+ | ----------- | ---------------------- | ----- |
99
+ | SSIMULACRA2 | VS-ZIP / Turbo-Metrics | VSHIP |
100
+ | XPSNR | VS-ZIP / FFmpeg | - |
101
+ | Butteraugli | - | VSHIP |
102
+ | CVVDP | - | VSHIP |
@@ -0,0 +1,5 @@
1
+ pyvideotools-0.1.0.dist-info/licenses/LICENSE,sha256=gPbFx8P3JreTGNiOST4yHrua1obaMArwYMiuQOYI2-0,1091
2
+ pyvideotools-0.1.0.dist-info/METADATA,sha256=1KRjezk9H-XLg78PCZb6bD2i1QA_QRx_OWlpwwnQaqU,2669
3
+ pyvideotools-0.1.0.dist-info/WHEEL,sha256=YVMoNqKzERt-wjUZwJ33xBGAwnFl-4cqbYkTtWa4itE,91
4
+ pyvideotools-0.1.0.dist-info/top_level.txt,sha256=AbpHGcgLb-kRsJGnwFEktk7uzpZOCcBY74-YBdrKVGs,1
5
+ pyvideotools-0.1.0.dist-info/RECORD,,
@@ -0,0 +1,5 @@
1
+ Wheel-Version: 1.0
2
+ Generator: setuptools (84.0.0)
3
+ Root-Is-Purelib: true
4
+ Tag: py3-none-any
5
+
@@ -0,0 +1,9 @@
1
+ MIT License
2
+
3
+ Copyright 2026 Noam Hache noam.hache@gmail.com
4
+
5
+ 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:
6
+
7
+ The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
8
+
9
+ 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.
@@ -0,0 +1 @@
1
+