Skip to content

Commit

Permalink
Renaming project and main file and updating usages.
Browse files Browse the repository at this point in the history
  • Loading branch information
sverrirs committed Jan 14, 2017
1 parent e30c573 commit 37c4fa9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Mp4 Video Joiner
# Mp4 Video Combiner

Python script that assist in concatenating mp4 video files into a single larger file and automatically create named chapter marks at each join making it really easy to skip forward and backwards within the video file.

Expand All @@ -22,7 +22,7 @@ pip install humanize
Assuming you have a bunch of videos named "clipXX.mp4" in a folder called _videos_ then this is how you feed all of them into the concatinator and specify an output file

```
python catgen.py --match "D:\videos\clip*" -o "D:\videos\all_clips.mp4"
python combine.py --match "D:\videos\clip*" -o "D:\videos\all_clips.mp4"
```

## Advanced usage
Expand All @@ -34,7 +34,7 @@ No worries! :relieved:
The script can automatically segment the output files according to known DVD and BluRay disk sizes using the `--disk` command line argument

```
python catgen.py --match "D:\barbie\*.mp4" -o "D:\toburn\Barbie.mp4" --disk dvd8
python combine.py --match "D:\barbie\*.mp4" -o "D:\toburn\Barbie.mp4" --disk dvd8
```

This will create multiple output files
Expand All @@ -58,7 +58,7 @@ _Neat_ :thumbsup:
You can also specify a custom file size using the `--size` argument. The example below limits the output file size to 800MB.

```
python catgen.py -m "D:\barbie\*.mp4" -o "D:\toburn\Barbie.mp4" --size 800MB
python combine.py -m "D:\barbie\*.mp4" -o "D:\toburn\Barbie.mp4" --size 800MB
```

The `--size` argument supports multiple format endings such as 'MB' for megabytes and 'GB' for gigabytes. If nothing is specified then 'MB' is assumed. You can also specify fractional sizes such as '15.5GB'.
Expand All @@ -67,7 +67,7 @@ The `--size` argument supports multiple format endings such as 'MB' for megabyte
If the output file exists the script will by default print an error and terminate without doing anything. To silently overwrite existing files with the same file name you can use the `--overwrite` switch

```
python catgen.py -m "D:\barbie\*.mp4" -o "D:\toburn\Barbie.mp4" --disk dvd8 --overwrite
python combine.py -m "D:\barbie\*.mp4" -o "D:\toburn\Barbie.mp4" --disk dvd8 --overwrite
```

## Contributing
Expand Down
4 changes: 2 additions & 2 deletions src/catgen.py → src/combine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
# coding=utf-8
__version__ = "0.2.0"
__version__ = "1.0.0"
"""
Python script that generates the necessary mp4box -cat commands to concatinate multiple video files
together and generates a chapter file that marks the beginning of each concatenated file in the final result.
Expand All @@ -13,7 +13,7 @@
Requires:
pip install humanize
See: https://github.com/sverrirs/mp4box-catgen
See: https://github.com/sverrirs/mp4combine
Author: Sverrir Sigmundarson [email protected] https://www.sverrirs.com
"""
from constant import DISKSIZES, ABSSIZES # Constants for the script
Expand Down
6 changes: 4 additions & 2 deletions src/constant.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
#!/usr/bin/env python
# coding=utf-8
__version__ = "0.2.0"
__version__ = "1.0.0"
"""
Constants declaration for the catgen.py script.
Constants declaration for the combine.py script.
See: https://github.com/sverrirs/mp4combine
Author: Sverrir Sigmundarson [email protected] https://www.sverrirs.com
"""

# Most DVD±R/RWs are advertised using the definition of 1 Gigabyte = 1,000,000,000 bytes
Expand Down

0 comments on commit 37c4fa9

Please sign in to comment.