HwCodecDetect 0.1.4__tar.gz → 0.1.5__tar.gz
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.
- {hwcodecdetect-0.1.4/src/HwCodecDetect.egg-info → hwcodecdetect-0.1.5}/PKG-INFO +8 -8
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5}/README.md +7 -7
- hwcodecdetect-0.1.5/VERSION +1 -0
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5}/src/HwCodecDetect/run_tests.py +27 -13
- hwcodecdetect-0.1.5/src/HwCodecDetect/version.py +1 -0
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5/src/HwCodecDetect.egg-info}/PKG-INFO +8 -8
- hwcodecdetect-0.1.4/VERSION +0 -1
- hwcodecdetect-0.1.4/src/HwCodecDetect/version.py +0 -1
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5}/LICENSE +0 -0
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5}/MANIFEST.in +0 -0
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5}/pyproject.toml +0 -0
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5}/requirements.txt +0 -0
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5}/setup.cfg +0 -0
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5}/setup.py +0 -0
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5}/src/HwCodecDetect/__init__.py +0 -0
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5}/src/HwCodecDetect/install_ffmpeg_if_needed.py +0 -0
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5}/src/HwCodecDetect.egg-info/SOURCES.txt +0 -0
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5}/src/HwCodecDetect.egg-info/dependency_links.txt +0 -0
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5}/src/HwCodecDetect.egg-info/entry_points.txt +0 -0
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5}/src/HwCodecDetect.egg-info/requires.txt +0 -0
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5}/src/HwCodecDetect.egg-info/top_level.txt +0 -0
- {hwcodecdetect-0.1.4 → hwcodecdetect-0.1.5}/src/HwCodecDetect.egg-info/zip-safe +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: HwCodecDetect
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: A cross-platform tool to automatically detect and test hardware video decoders/encoders using FFmpeg.
|
|
5
5
|
Home-page: https://github.com/whyb/HwCodecDetect
|
|
6
6
|
Author: whyb
|
|
@@ -77,14 +77,14 @@ You can install and use HwCodecDetect in two ways.
|
|
|
77
77
|
### Method 1: Install via PyPI (Recommended)
|
|
78
78
|
This is the easiest method if you just want to use the tool quickly.
|
|
79
79
|
|
|
80
|
-
1. Install: Use pip to install
|
|
80
|
+
1. Install: Use pip to install hwcodecdetect from the [official PyPI repository](https://pypi.org/project/hwcodecdetect).
|
|
81
81
|
```bash
|
|
82
|
-
pip install
|
|
82
|
+
pip install hwcodecdetect
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
2. Run: After installation, run the
|
|
85
|
+
2. Run: After installation, run the hwcodecdetect command directly from your terminal.
|
|
86
86
|
```bash
|
|
87
|
-
|
|
87
|
+
hwcodecdetect
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
### Method 2: Download and Run Executable (Standalone)
|
|
@@ -112,7 +112,7 @@ Use this method if you have cloned the project source code from GitHub and want
|
|
|
112
112
|
|
|
113
113
|
1. Clone the repository: First, clone the project source code to your local machine.
|
|
114
114
|
```bash
|
|
115
|
-
git clone https://github.com/whyb/HwCodecDetect.git
|
|
115
|
+
git clone https://github.com/whyb/HwCodecDetect.git ./HwCodecDetect
|
|
116
116
|
```
|
|
117
117
|
|
|
118
118
|
2. Install dependencies: Navigate into the project's root directory and use pip to install the required dependencies.
|
|
@@ -121,9 +121,9 @@ Use this method if you have cloned the project source code from GitHub and want
|
|
|
121
121
|
pip install .
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
-
3. Run: After the installation is complete, run the
|
|
124
|
+
3. Run: After the installation is complete, run the hwcodecdetect command directly.
|
|
125
125
|
```bash
|
|
126
|
-
|
|
126
|
+
hwcodecdetect
|
|
127
127
|
```
|
|
128
128
|
|
|
129
129
|
## Demo
|
|
@@ -51,14 +51,14 @@ You can install and use HwCodecDetect in two ways.
|
|
|
51
51
|
### Method 1: Install via PyPI (Recommended)
|
|
52
52
|
This is the easiest method if you just want to use the tool quickly.
|
|
53
53
|
|
|
54
|
-
1. Install: Use pip to install
|
|
54
|
+
1. Install: Use pip to install hwcodecdetect from the [official PyPI repository](https://pypi.org/project/hwcodecdetect).
|
|
55
55
|
```bash
|
|
56
|
-
pip install
|
|
56
|
+
pip install hwcodecdetect
|
|
57
57
|
```
|
|
58
58
|
|
|
59
|
-
2. Run: After installation, run the
|
|
59
|
+
2. Run: After installation, run the hwcodecdetect command directly from your terminal.
|
|
60
60
|
```bash
|
|
61
|
-
|
|
61
|
+
hwcodecdetect
|
|
62
62
|
```
|
|
63
63
|
|
|
64
64
|
### Method 2: Download and Run Executable (Standalone)
|
|
@@ -86,7 +86,7 @@ Use this method if you have cloned the project source code from GitHub and want
|
|
|
86
86
|
|
|
87
87
|
1. Clone the repository: First, clone the project source code to your local machine.
|
|
88
88
|
```bash
|
|
89
|
-
git clone https://github.com/whyb/HwCodecDetect.git
|
|
89
|
+
git clone https://github.com/whyb/HwCodecDetect.git ./HwCodecDetect
|
|
90
90
|
```
|
|
91
91
|
|
|
92
92
|
2. Install dependencies: Navigate into the project's root directory and use pip to install the required dependencies.
|
|
@@ -95,9 +95,9 @@ Use this method if you have cloned the project source code from GitHub and want
|
|
|
95
95
|
pip install .
|
|
96
96
|
```
|
|
97
97
|
|
|
98
|
-
3. Run: After the installation is complete, run the
|
|
98
|
+
3. Run: After the installation is complete, run the hwcodecdetect command directly.
|
|
99
99
|
```bash
|
|
100
|
-
|
|
100
|
+
hwcodecdetect
|
|
101
101
|
```
|
|
102
102
|
|
|
103
103
|
## Demo
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
0.1.5
|
|
@@ -257,19 +257,33 @@ def _run_encoder_test_single(test_data):
|
|
|
257
257
|
codec, encoder, res_name, res_size, test_dir, verbose = test_data
|
|
258
258
|
file_ext = ".webm" if codec in ["vp8", "vp9"] else ".mp4"
|
|
259
259
|
output_file = os.path.join(test_dir, f"{encoder}_{res_name}{file_ext}")
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
260
|
+
if "vulkan" in encoder:
|
|
261
|
+
command = [
|
|
262
|
+
"ffmpeg",
|
|
263
|
+
"-loglevel", "quiet",
|
|
264
|
+
"-hide_banner",
|
|
265
|
+
"-y",
|
|
266
|
+
"-init_hw_device", "vulkan=vk:0",
|
|
267
|
+
"-f", "lavfi",
|
|
268
|
+
"-i", f"color=white:s={res_size}:d=1",
|
|
269
|
+
"-frames:v", "1",
|
|
270
|
+
"-vf", "format=nv12,hwupload,format=vulkan",
|
|
271
|
+
"-c:v", encoder,
|
|
272
|
+
output_file,
|
|
273
|
+
]
|
|
274
|
+
else:
|
|
275
|
+
command = [
|
|
276
|
+
"ffmpeg",
|
|
277
|
+
"-loglevel", "quiet",
|
|
278
|
+
"-hide_banner",
|
|
279
|
+
"-y",
|
|
280
|
+
"-f", "lavfi",
|
|
281
|
+
"-i", f"color=white:s={res_size}:d=1",
|
|
282
|
+
"-frames:v", "1",
|
|
283
|
+
"-c:v", encoder,
|
|
284
|
+
"-pixel_format", "yuv420p",
|
|
285
|
+
output_file,
|
|
286
|
+
]
|
|
273
287
|
|
|
274
288
|
if "qsv" in encoder:
|
|
275
289
|
command.insert(9, "-dual_gfx")
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
__version__ = "0.1.5"
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: HwCodecDetect
|
|
3
|
-
Version: 0.1.
|
|
3
|
+
Version: 0.1.5
|
|
4
4
|
Summary: A cross-platform tool to automatically detect and test hardware video decoders/encoders using FFmpeg.
|
|
5
5
|
Home-page: https://github.com/whyb/HwCodecDetect
|
|
6
6
|
Author: whyb
|
|
@@ -77,14 +77,14 @@ You can install and use HwCodecDetect in two ways.
|
|
|
77
77
|
### Method 1: Install via PyPI (Recommended)
|
|
78
78
|
This is the easiest method if you just want to use the tool quickly.
|
|
79
79
|
|
|
80
|
-
1. Install: Use pip to install
|
|
80
|
+
1. Install: Use pip to install hwcodecdetect from the [official PyPI repository](https://pypi.org/project/hwcodecdetect).
|
|
81
81
|
```bash
|
|
82
|
-
pip install
|
|
82
|
+
pip install hwcodecdetect
|
|
83
83
|
```
|
|
84
84
|
|
|
85
|
-
2. Run: After installation, run the
|
|
85
|
+
2. Run: After installation, run the hwcodecdetect command directly from your terminal.
|
|
86
86
|
```bash
|
|
87
|
-
|
|
87
|
+
hwcodecdetect
|
|
88
88
|
```
|
|
89
89
|
|
|
90
90
|
### Method 2: Download and Run Executable (Standalone)
|
|
@@ -112,7 +112,7 @@ Use this method if you have cloned the project source code from GitHub and want
|
|
|
112
112
|
|
|
113
113
|
1. Clone the repository: First, clone the project source code to your local machine.
|
|
114
114
|
```bash
|
|
115
|
-
git clone https://github.com/whyb/HwCodecDetect.git
|
|
115
|
+
git clone https://github.com/whyb/HwCodecDetect.git ./HwCodecDetect
|
|
116
116
|
```
|
|
117
117
|
|
|
118
118
|
2. Install dependencies: Navigate into the project's root directory and use pip to install the required dependencies.
|
|
@@ -121,9 +121,9 @@ Use this method if you have cloned the project source code from GitHub and want
|
|
|
121
121
|
pip install .
|
|
122
122
|
```
|
|
123
123
|
|
|
124
|
-
3. Run: After the installation is complete, run the
|
|
124
|
+
3. Run: After the installation is complete, run the hwcodecdetect command directly.
|
|
125
125
|
```bash
|
|
126
|
-
|
|
126
|
+
hwcodecdetect
|
|
127
127
|
```
|
|
128
128
|
|
|
129
129
|
## Demo
|
hwcodecdetect-0.1.4/VERSION
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
0.1.4
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
__version__ = "0.1.4"
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|