GitXplorerGitXplorer
d

direncode

public
1 stars
0 forks
0 issues

Commits

List of commits on branch master.
Verified
9f7de2e9efa7a8be5d2018c02e33e80a0f24b9ef

Rename LICENSE to LICENSE.txt

ddavidfstr committed 3 years ago
Unverified
16b734182440f069d6b5afe2483812040ef0d895

LICENSE: Recreate in format recognized by GitHub

ddavidfstr committed 3 years ago
Unverified
1119fd8e2bbdb95ca2b8fd4b00128547e0ae1f14

Upgrade to support Python 3.x. Bump minimum macOS version.

ddavidfstr committed 3 years ago
Unverified
82fe56b3a332fc1e7a48b12fd04d10dcb435d927

README: Unretire the project.

ddavidfstr committed 3 years ago
Unverified
6afe3beb78ee99c8c34e8eaa2c8c02aa1274b1c1

Fix sync_creates_to_dst() to return changed status correctly.

ddavidfstr committed 3 years ago
Verified
3b6614192d5d13873fd77a15801cb751d8cdea84

README: Retire the project.

ddavidfstr committed 7 years ago

README

The README file for this repository.

direncode

Encodes all video files in a source directory to a destination directory. Optionally, the source directory will be watched continuously for changes and any new files will be encoded.

This behavior is useful for setting up a video encoding pipeline where one directory's contents are continuously encoded to another directory.

Requirements

  • Operating System:
    • macOS 10.15.7 (Catalina) or later
    • Linux — probably works, but untested
    • Windows — probably works, but untested
  • Python 3.7 or later
  • hbencode 1.1 or later
  • watchdog 0.8.3 or later

Installation

  1. Install and configure all requirements mentioned above.
    • In particular hbencode has some required configuration.
    • watchdog can usually be installed with pip install watchdog.
  2. Copy direncode.py to somewhere in your system path.

Usage

Encode all files in directory /srcdir to directory /dstdir using:

direncode.py /srcdir /dstdir

Continously encode all files that appear in /srcdir to directory /dstdir until you interrupt the program with Control-C:

direncode.py --watch /srcdir /dstdir

Continously encode from /srcdir to /dstdir, and additionally synchronize deletions that occur in /srcdir to /dstdir:

direncode.py --watch --delete /srcdir /dstdir

Display full usage information by invoking direncode.py with no arguments:

syntax: direncode.py [<options>] SOURCE_DIR DESTINATION_DIR
    
    Options:
        -w, --watch             Continuously watch the source directory
                                and continue synchronizing both directories.
        -d, --delete            Delete extraneous files from destination.

Support

If you run into problems or have questions, feel free to file a bug or contact me.

License

This software is licensed under the MIT License.

Release Notes

  • 1.1
    • Supports --delete option to additionally synchronize deletes.
  • 1.0
    • Initial version.
    • Supports --watch option for continuous synchronization.