mkv2cast 1.2.7.post4__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.
mkv2cast/__init__.py ADDED
@@ -0,0 +1,77 @@
1
+ """
2
+ mkv2cast - Smart MKV to Chromecast-compatible converter with hardware acceleration.
3
+
4
+ This tool converts MKV video files to formats compatible with Chromecast devices
5
+ and smart TVs, using VAAPI, QSV, or CPU encoding with intelligent codec detection.
6
+
7
+ Copyright (C) 2024-2026 voldardard
8
+ License: GPL-3.0 (https://www.gnu.org/licenses/gpl-3.0.html)
9
+
10
+ Example usage:
11
+ # As a command-line tool
12
+ $ mkv2cast movie.mkv
13
+ $ mkv2cast --hw vaapi --vaapi-qp 20
14
+
15
+ # As a Python module
16
+ from mkv2cast import convert_file, Config
17
+
18
+ config = Config(hw="vaapi", crf=20)
19
+ result = convert_file("movie.mkv", config)
20
+ """
21
+
22
+ __version__ = "1.2.7.post4"
23
+ __author__ = "voldardard"
24
+ __license__ = "GPL-3.0"
25
+ __copyright__ = "Copyright (C) 2024-2026 voldardard"
26
+ __url__ = "https://github.com/voldardard/mkv2cast"
27
+ __description__ = "Smart MKV to Chromecast-compatible converter with hardware acceleration"
28
+
29
+ # Public API exports
30
+ from mkv2cast.config import Config, get_app_dirs, is_script_mode, load_config_file
31
+ from mkv2cast.converter import (
32
+ Decision,
33
+ ProgressCallback,
34
+ build_transcode_cmd,
35
+ convert_batch,
36
+ convert_file,
37
+ decide_for,
38
+ pick_backend,
39
+ )
40
+ from mkv2cast.history import HistoryDB
41
+ from mkv2cast.i18n import _, setup_i18n
42
+ from mkv2cast.integrity import integrity_check
43
+ from mkv2cast.json_progress import JSONProgressOutput, parse_ffmpeg_progress_for_json
44
+ from mkv2cast.notifications import send_notification
45
+
46
+ __all__ = [
47
+ # Version info
48
+ "__version__",
49
+ "__author__",
50
+ "__license__",
51
+ "__url__",
52
+ # Config
53
+ "Config",
54
+ "get_app_dirs",
55
+ "load_config_file",
56
+ "is_script_mode",
57
+ # Converter
58
+ "Decision",
59
+ "ProgressCallback",
60
+ "decide_for",
61
+ "pick_backend",
62
+ "build_transcode_cmd",
63
+ "convert_file",
64
+ "convert_batch",
65
+ # History
66
+ "HistoryDB",
67
+ # Integrity
68
+ "integrity_check",
69
+ # i18n
70
+ "_",
71
+ "setup_i18n",
72
+ # Notifications
73
+ "send_notification",
74
+ # JSON progress
75
+ "JSONProgressOutput",
76
+ "parse_ffmpeg_progress_for_json",
77
+ ]
mkv2cast/__main__.py ADDED
@@ -0,0 +1,14 @@
1
+ """
2
+ Entry point for running mkv2cast as a module: python -m mkv2cast
3
+
4
+ This allows the package to be executed directly:
5
+ python -m mkv2cast movie.mkv
6
+ python -m mkv2cast --help
7
+ """
8
+
9
+ import sys
10
+
11
+ from mkv2cast.cli import main
12
+
13
+ if __name__ == "__main__":
14
+ sys.exit(main())