ynput / OpenPype

Main OpenPype repository and AYON openpype addon codebase
https://openpype.io
MIT License
280 stars 128 forks source link

General: added fallback for broken ffprobe return #6189

Closed kalisp closed 5 months ago

kalisp commented 5 months ago

Changelog Description

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.

Additional info

AnyDesk_XwH276p3SU

This PR is a bit weird as it solves very specific use case, which could be reoccurring though as source .exr comes from Deadline render from Maya and it is not supposed to be special. This update provide just one more layer of safety.

Testing notes:

  1. test on customer site OR
  2. use attached test file from Clickup issue and run this in Tray > Console:
    
    from openpype.lib.transcoding import  get_rescaled_command_arguments

input_path = "FILE_PATH" args = get_rescaled_command_arguments("oiiotool", input_path, 1900, 1200) print(args )