-
-
Notifications
You must be signed in to change notification settings - Fork 99
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added support for post-conversion hook.
- Loading branch information
Showing
4 changed files
with
71 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
#!/bin/sh | ||
# | ||
# This is an example of a post-conversion hook. This script is always invoked | ||
# with /bin/sh (shebang ignored). | ||
# | ||
# The first parameter is the conversion status. A value of 0 indicates that | ||
# the video has been converted successfully. Else, conversion failed. | ||
# | ||
# The second parameter is the full path to the converted video (the output). | ||
# | ||
|
||
CONVERSION_STATUS=$1 | ||
CONVERTED_FILE="$2" | ||
|
||
echo "post-conversion: Status = $CONVERSION_STATUS" | ||
echo "post-conversion: File = $CONVERTED_FILE" | ||
|
||
if [ "$CONVERSION_STATUS" -eq 0 ]; then | ||
# Successful conversion. | ||
|
||
# TODO: Do something useful. | ||
: | ||
else | ||
# Failed conversion. | ||
|
||
# TODO: Do something useful. | ||
: | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters