* OP-8090 - added fallback for ffprobe issue
Customer provided .exr returned width and height equal to 0 which caused error in extract_thumbnail. This tries to use oiiotool to get metadata about file, in our case it read it correctly.
* OP-8090 - extract logic
`get_rescaled_command_arguments` is long enough right now, new method is better testable too.
* Update openpype/lib/transcoding.py
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
---------
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
- Removed the unused `additional_input_args` parameter from the `convert_colorspace` function in `transcoding.py`
- Renamed the `additional_input_args` parameter to `additional_command_args` in the `ExtractThumbnail` class in `extract_thumbnail.py`
These changes improve code clarity and remove unnecessary parameters.
The code change fixes an issue in the transcoding.py file where the sample aspect ratio was not being parsed correctly. The fix involves modifying the way the sample aspect ratio is accessed from the stream object.
* added function to extract more information about channels
* specify layer name which should be used for ffmpeg
* changed 'get_channels_info_by_layer_name' to 'get_review_info_by_layer_name'
* modify docstring
* fix dosctring again
* implemented helper functions to get ffmpeg and oiio tool arguments
* modified validation functions to be able to handle list of arguments
* path getters can return a path in AYON mode if one argument is returned
* removed test exception
* modified docstrings
* is_oiio_supported is using new functions to get launch arguments
* new functions are in lib public =
* use new functions all over the place
* renamed 'ffmpeg_path' to 'ffmpeg_args'
* raise 'ToolNotFoundError' if tool argument could not be found
* reraise 'KnownPublishError' in publish plugins
* fix comment
* simplify args start
* ffmpeg and oiio function require tool name and support additional arguments
* renamed 'get_oiio_tools_args' to 'get_oiio_tool_args'
* fix variable name