GithubHelp home page GithubHelp logo

vapoursynth-tonemapping's Introduction

vapoursynth-tonemapping

Conversion from HDR (matrix=2020, primaries=2020) to full HD SDR (matrix=709, primaries=709)

Functions:

  • bt2390_ictcp : tonemapping in ICtCp color space, the tonemapping operator used is bt2390

BASIC USAGE

import age_tm

import vapoursynth as vs

c = core.ffms2.Source(source = '...')

c=age_tm.bt2390_ictcp(c,target_nits=100,source_peak=1000)

c.set_output()

vapoursynth-tonemapping's People

Contributors

age1988 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

kiyamou

vapoursynth-tonemapping's Issues

What does MasteringDisplayMaxLuminance stand for?

When I try to use this script, I get the error.
No key named MasteringDisplayMaxLuminance exists

I know MasteringDisplayMaxLuminance is a parameter in ffms2. However, VapourSynth's Python API doesn't seem to have it.

So could you explain the meaning of this code?
(https://github.com/age1988/vapoursynth-tonemapping/blob/master/age_tm.py#L223)

if source_peak is None:
    source_peak=c.get_frame(0).props.MasteringDisplayMaxLuminance

There is my script and error info.

import vapoursynth as vs
import age_tm as tm

core = vs.get_core()

src = r"..."
src = core.ffms2.Source(src)
res = tm.reinhard_yuv(src, target_nits=120, source_peak=None)

res.set_output()
Traceback (most recent call last):
File "src\cython\vapoursynth.pyx", line 872, in vapoursynth.VideoProps.__getattr__
File "src\cython\vapoursynth.pyx", line 772, in vapoursynth.VideoProps.__getitem__
KeyError: 'No key named MasteringDisplayMaxLuminance exists'

......

File "C:\Program Files\Python38\lib\site-packages\age_tm.py", line 224, in reinhard_yuv
source_peak = c.get_frame(0).props.MasteringDisplayMaxLuminance
File "src\cython\vapoursynth.pyx", line 874, in vapoursynth.VideoProps.__getattr__
AttributeError

Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.