Control log level and then some #1
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Firstly, I've never written in perl before so if there's something seriously wrong, my apologies.
My main purpose was to be able to parse progress information out of the script. Adding the log-level option does that. All the other changes are things I ran into along the way.
Added File::Slurp to README requirements, as it doesn't seem to a builtin. At least in some older OS versions.
Added option to control ffmpeg's log level. Adding this option gives enough information for a system calling the encode script to collect progress from the script.
Make reading chunk file paths absolute to the temporary chunk directory. Looping through the chunk files in the tmp directory was erring, saying it couldn't find the file. Concatenating the build_dir and filename together into an absolute path fixed that.
Added removing temp chunk directory. The build_dir wasn't removed after the encode script completed.
Moved the "Success" print to after clean up, for reasons...