Commit graph

80 commits

Author SHA1 Message Date
Jakub Trllo
a2387d1856 require kwargs 2025-12-15 14:09:27 +01:00
Jakub Trllo
5ca04b0d6e Merge branch 'develop' into enhancement/improve_oiio_info_performance
# Conflicts:
#	client/ayon_core/lib/transcoding.py
2025-12-15 14:07:39 +01:00
Jakub Trllo
bd2e26ea50 use 'verbose=False' at other places 2025-12-15 14:03:27 +01:00
Roy Nieterau
2a7316b262 Type hints to the arguments 2025-12-12 10:40:10 +01:00
Roy Nieterau
fef45cebb3 Merge branch 'enhancement/transcoding_oiio_tool_for_ffmpeg_one_call' of https://github.com/BigRoy/ayon-core into enhancement/transcoding_oiio_tool_for_ffmpeg_one_call 2025-12-12 10:33:06 +01:00
Roy Nieterau
f9ca97ec71 Perform actual type hint 2025-12-12 10:32:54 +01:00
Roy Nieterau
af901213a2
Update client/ayon_core/lib/transcoding.py
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2025-12-12 10:31:54 +01:00
Roy Nieterau
11ecc69b35 Refactor _input -> input_item 2025-12-12 10:31:25 +01:00
Roy Nieterau
82427cb004 Fix merge conflicts 2025-12-12 10:21:45 +01:00
Roy Nieterau
197b74d1af Merge branch 'develop' of https://github.com/ynput/ayon-core into enhancement/transcoding_oiio_tool_for_ffmpeg_one_call
# Conflicts:
#	client/ayon_core/plugins/publish/extract_color_transcode.py
2025-12-12 10:20:05 +01:00
Roy Nieterau
b1be956994 Also invert if target_colorspace, which means - always invert source display/view if we have any target colorspace or a display/view that differs from the source display/view 2025-12-10 00:38:49 +01:00
Roy Nieterau
f0e603fe7c Do not invert source display/view if it already matches target display/view 2025-12-10 00:30:16 +01:00
Vincent Ullmann
3d321b4896 add verbose-flag to get_oiio_info_for_input and changed oiio_color_convert to use verbose=False 2025-12-09 15:21:23 +00:00
Jakub Trllo
235ba786ea
Merge branch 'develop' into chore/remove_unused_split_cmd_args 2025-12-01 10:30:34 +01:00
Roy Nieterau
8a0e1afcb3 Remove unused function: split_cmd_args 2025-11-28 23:16:02 +01:00
Jakub Ježek
bad910ee03
Merge branch 'develop' into bugfix/ociodisplay 2025-11-28 15:47:25 +01:00
Roy Nieterau
e2c6687690 Preserve order when making unique to avoid error on R,G,B becoming B,G,R but the channels being using in R,G,B order in --ch argument 2025-11-11 16:46:04 +01:00
Roy Nieterau
f38a6dffba Avoid repeating input channel names if e.g. R, G and B are reading from Y channel 2025-11-11 16:40:59 +01:00
Mustafa Zaky Jafar
bc54ddbc5e
Merge branch 'develop' into bugfix/ociodisplay 2025-11-07 11:16:41 +02:00
Roy Nieterau
84db5d3965
Update client/ayon_core/lib/transcoding.py
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2025-11-05 23:00:22 +01:00
Roy Nieterau
cb81a57ddd Allow visualizing Alpha only layers for review as a color matte 2025-10-30 22:31:49 +01:00
Roy Nieterau
ad5368eaa2 Merge branch 'develop' of https://github.com/ynput/ayon-core into 989-ay-7315_extract-review-and-oiio-transcode-failing-to-transcode-media-blocking-publishes-2
# Conflicts:
#	client/ayon_core/lib/transcoding.py
#	client/ayon_core/plugins/publish/extract_color_transcode.py
2025-10-30 20:57:29 +01:00
timsergeeff
aabd9f7f50
Update client/ayon_core/lib/transcoding.py
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2025-10-10 21:55:23 +03:00
timsergeeff
2541f8909e
Update client/ayon_core/lib/transcoding.py
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2025-10-10 21:55:18 +03:00
timsergeeff
7ef330c3f4
Update client/ayon_core/lib/transcoding.py
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2025-10-10 21:55:12 +03:00
timsergeeff
0db3f67eb3
Remove unnecessary blank lines in transcoding.py 2025-10-10 15:06:51 +03:00
timsergeeff
862049d995
Refactor color conversion logic in transcoding.py 2025-10-10 13:00:09 +03:00
Jakub Trllo
0f7176c2d2 avoid duplicated code 2025-10-08 12:03:56 +02:00
Jakub Trllo
455db40985 allow 'rgba' layer name to be used if is available 2025-10-08 11:59:29 +02:00
Jakub Trllo
71da4a02ec added comments to safe import 2025-10-02 10:11:50 +02:00
Jakub Trllo
ab058d15c5 copy implementation from ayon api 2025-10-02 09:59:40 +02:00
Jakub Trllo
61011ecea0 use ayon api implementation of mime type 2025-10-02 09:53:51 +02:00
Jakub Ježek
00cfb962e4
Update client/ayon_core/lib/transcoding.py
Co-authored-by: Ondřej Samohel <33513211+antirotor@users.noreply.github.com>
2025-07-14 14:38:41 +02:00
Jakub Trllo
f673abebc8
use 'view' instead of 'screen'
Co-authored-by: Roy Nieterau <roy_nieterau@hotmail.com>
2025-06-19 10:29:45 +02:00
Jakub Trllo
2b209044ed better conditions order 2025-06-12 15:50:44 +02:00
Jakub Trllo
3eb88ae850 use 'view' instead of 'screen' 2025-06-12 15:50:34 +02:00
Jakub Trllo
28978f07c6 use standard conditions 2025-06-12 15:50:21 +02:00
Jakub Trllo
21737339d3 rename 'oiiotool_transcode' to 'oiio_color_convert' 2025-06-12 15:46:23 +02:00
Roy Nieterau
55bfd79cf3 Check against .upper() instead of .lower() to match strings more with how they are compared later in the code (improve style consistency) 2025-06-11 20:55:21 +02:00
Roy Nieterau
0c23ecc70d Add support for red, green, blue and alpha 2025-06-11 20:52:08 +02:00
Roy Nieterau
6061e8a82b Merge branch 'develop' of https://github.com/ynput/ayon-core into enhancement/transcoding_oiio_tool_for_ffmpeg_one_call
# Conflicts:
#	client/ayon_core/lib/transcoding.py
#	client/ayon_core/plugins/publish/extract_color_transcode.py
2025-06-06 14:50:06 +02:00
Roy Nieterau
4aa2f1bb86 Merge branch 'enhancement/transcoding_oiio_tool_for_ffmpeg_one_call' of https://github.com/BigRoy/ayon-core into enhancement/transcoding_oiio_tool_for_ffmpeg_one_call 2025-06-06 14:48:00 +02:00
Roy Nieterau
8fbb8c93c1 Allow more frames patterns 2025-06-06 14:47:41 +02:00
Roy Nieterau
204625b5c8
Update client/ayon_core/lib/transcoding.py
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
2025-05-20 23:55:29 +02:00
Jakub Jezek
4ebf35dd8b
Refactors docstring formatting in transcoding
Improves readability by adjusting docstring formatting
in the `convert_colorspace` function. This change ensures
consistent documentation style and enhances clarity.
2025-05-20 11:26:28 +02:00
Jakub Jezek
08f6b61a3e
Adds deprecation decorator and marks function
Introduces a `deprecated` decorator to mark functions as deprecated,
issuing a warning when they are called. The `convert_colorspace`
function is marked as deprecated, advising users to switch to
`oiiotool_transcode`.
2025-05-20 11:19:14 +02:00
Jakub Jezek
dba8d78a2a
Refactors color space conversion with oiiotool
Consolidates color space conversion logic into a dedicated
`oiiotool_transcode` function for better flexibility and clarity.

This change introduces support for display/view transformations,
enhancing the tool's ability to handle complex color management
workflows.

It also fixes issues with conflicting color space parameters and
improves handling of source and target display/view configurations.
2025-05-20 10:53:37 +02:00
Roy Nieterau
00921e7806
Update client/ayon_core/lib/transcoding.py
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
2025-05-19 12:05:28 +02:00
Roy Nieterau
5917671521 Add AR, AG, AB test case and fix behavior 2025-05-19 12:04:01 +02:00
Roy Nieterau
b8ea018b43 Clarify exception 2025-05-19 11:18:37 +02:00