You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+19-4Lines changed: 19 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,19 +4,34 @@ Tools to transcode video files into HEVC, experiment with different encoder pres
4
4
<br>
5
5
<br>
6
6
7
+
## setup.py
8
+
python script to manage `$PATH` symlink to transcode.py.
9
+
10
+
```
11
+
usage: setup.py [-h] (--install | --uninstall)
12
+
13
+
Manages $PATH symlink for transcode.py
14
+
15
+
optional arguments:
16
+
-h, --help show this help message and exit
17
+
--install install symlink to transcode.py on $PATH
18
+
--uninstall remove symlink to transcode.py
19
+
```
20
+
21
+
<br>
22
+
<br>
23
+
7
24
## transcode.py
8
25
python script to transcode movies to HEVC using custom encoder options based on source file's resolution. This has only been tested with H.264 MP4 files, but should work with source files with any of the following extensions: ".mp4", ".m4v", ".mov", ".mkv", ".mpg", ".mpeg", ".avi", ".wmv", ".flv", ".webm", ".ts" but YMMV.
sys.exit("Error: {script_path_location} exists on $PATH but is not a symlink, skipping uninstall.\n".format(script_path_location=script_path_location))
sys.exit("\n{script_name} already on $PATH at {script_path_location}, skipping install.\n".format(script_name=script_name, script_path_location=script_path_location))
98
+
else:
99
+
link()
100
+
else:
101
+
ifnotscript_on_path:
102
+
sys.exit("\n{script_name} not on $PATH, skipping uninstall.\n".format(script_name=script_name))
103
+
else:
104
+
unlink()
105
+
106
+
iflen(sys.argv) >2:
107
+
print("\nFATAL: --install/--uninstall may not be called with any other arguments")
sys.exit("Error: {script_path_location} exists on $PATH but is not a symlink, skipping uninstall.\n".format(script_path_location=script_path_location))
sys.exit("\n{script_name} already on $PATH at {script_path_location}, skipping install.\n".format(script_name=script_name, script_path_location=script_path_location))
163
-
else:
164
-
link()
165
-
else:
166
-
ifnotscript_on_path:
167
-
sys.exit("\n{script_name} not on $PATH, skipping uninstall.\n".format(script_name=script_name))
0 commit comments