Skip to content

Commit 9188e4a

Browse files
committed
README updates for usage
1 parent 6b7b69e commit 9188e4a

File tree

2 files changed

+4
-11
lines changed

2 files changed

+4
-11
lines changed

README.md

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ Tools to transcode video files into HEVC, experiment with different encoder pres
88
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.
99

1010
```
11-
usage: transcode.py [-h] [--install | --uninstall] [--file FILE | --all] [--quality QUALITY] [--preset PRESET] [--baseline | --best]
12-
[--small] [--delete]
11+
usage: transcode.py [-h] [--install | --uninstall] [--file FILE | --all] [--quality QUALITY] [--preset PRESET]
12+
[--baseline | --best] [--small] [--delete]
1313
14-
Transcodes given file(s) to HEVC format.
14+
Transcodes given file(s) in ./source/ to HEVC format.
1515
1616
optional arguments:
1717
-h, --help show this help message and exit
@@ -70,10 +70,3 @@ compareEncoding.py
7070
├── test-RF18.mp4
7171
└── test-RF24.mp4
7272
```
73-
74-
<br>
75-
<br>
76-
77-
### Assumptions:
78-
Assumes that H.264 and HEVC encodes have the same base filename and live in "source" and "hevc" directories relative to compareEncoding.py and transcode.py:<br>
79-
<img src="https://i.imgur.com/1hZwNnV.png" width="200"/>

transcode.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
def evaluate_args():
1818
""" Exits with error messages if command-line arguments are invalid
1919
"""
20-
parser = argparse.ArgumentParser(description="Transcodes given file(s) to HEVC format.")
20+
parser = argparse.ArgumentParser(description="Transcodes given file(s) in .{sep}source{sep} to HEVC format.".format(sep=os.sep))
2121
install_group = parser.add_mutually_exclusive_group()
2222
install_group.add_argument("--install", action="store_true", help="install symlink to transcode.py on $PATH")
2323
install_group.add_argument("--uninstall", action="store_true", help="remove symlink to transcode.py")

0 commit comments

Comments
 (0)