Welcome to Doom9's Forum, THE in-place to be for everyone interested in DVD conversion.

Before you start posting please read the forum rules. By posting to this forum you agree to abide by the rules.

 

Go Back   Doom9's Forum > Capturing and Editing Video > VapourSynth

Reply
 
Thread Tools Search this Thread Display Modes
Old 9th August 2021, 06:35   #1  |  Link
Yomiko
Registered User
 
Join Date: Aug 2021
Posts: 39
ICCConvert - Little CMS based color management in VS

https://github.com/YomikoR/VapourSynth-ICCConvert

I ported some elementary features of Little CMS for color management in VapourSynth.


Features:

- Color profile conversion.
- Playback like in the mpv player (BT.1886 or overridden with a custom gamma).
- Extract color profile from image (when built with ImageMagick 7).
- Auto detection of the display color profile loaded for the current monitor, so that the plugin can be included in a Python wrapper for other users.


About auto profile detection:

- Since the main purpose of the plugin is QC, it's strongly recommended to manually specify the input for actual encoding.
- The detected window refers to the editor interface of VS Editor, or the console where you launch VS Preview, etc., NOT the preview windows of these editors.
- Windows: foreground window.
- Linux, X11: window of input focus. Recommended to build with colord support.
- Linux, Wayland: not yet implemented. Let's see if there will be a colord alternative for Wayland.
- MacOS: not yet implemented. Help wanted.


Help wanted:
- Correctness and auto profile detection in MacOS. I don't have a device.

Last edited by Yomiko; 2nd September 2021 at 10:36.
Yomiko is offline   Reply With Quote
Old 1st September 2021, 10:56   #2  |  Link
Yomiko
Registered User
 
Join Date: Aug 2021
Posts: 39
Release 3.0

- Old function names are changed to "Convert" and "Playback", respectively.
- Added an "Extract" function that provides the embedded ICC profile of an input image with its default rendering intent.
Yomiko is offline   Reply With Quote
Old 19th September 2021, 16:37   #3  |  Link
Yomiko
Registered User
 
Join Date: Aug 2021
Posts: 39
Release 3.2

It has been a lot saner.

Now it can read embedded ICC profiles from the frame property "ICCProfile". Check the flag "prefer_props". These profiles are hashed so that duplication of them from frames won't cause a big performance loss.

This feature is only shipped with the new VS API.
Yomiko is offline   Reply With Quote
Old 19th September 2021, 18:06   #4  |  Link
Myrsloik
Professional Code Monkey
 
Myrsloik's Avatar
 
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,419
Unfortunately new imwri builds are taking a bit longer than expected due to imagemagick being horrible to compile/link with in windows. Will hopefully be fixed soon.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet
Myrsloik is online now   Reply With Quote
Reply

Tags
icc, lcms, vapoursynth

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 23:34.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2021, vBulletin Solutions Inc.