Developers may need to tap into the conversion process and alter the conversion settings etc. depending on different circumstances. Here is an idea for a hook signature:
<?php
/**
* This hook allows modules to make changes to a conversion job just before it runs.
*
* $input_file
* The path to the original file.
* &$output_file
* The path where the destination file will be created.
* &$configuration
* The FFmpeg Wrapper configuration array, containing all conversion settings.
**/
function hook_ffmpeg_converter_alter($input_file, &$output_file, &$configuration) {
}
?>Thoughts?
Comments
Comment #1
osopolarYes, wold be nice to have such a hook.
I'd like to see this in ffmpeg_wrappers ffmpeg_wrapper_convert_file. See #1236964: Make the module more extentable by providing alter hooks. And ffmpeg_converter could extent this function by using the alter hook.
See also #1236572: Use ffmpeg_wrapper_convert_file instead of ffmpeg_converter_convert.