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
Register FAQ Calendar Today's Posts Search

Reply
 
Thread Tools Search this Thread Display Modes
Old 12th December 2018, 04:33   #261  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by videoh View Post
I like to remind people to look at the CPU utilization too, because savings can be applied to CPU things, especially encoding.
Consider my following script:

Code:
import vapoursynth as vs

core = vs.get_core ()
core.max_cache_size = 8192

core.avs.LoadPlugin ("C:/Program Files (x86)/dgdecnv/x64 Binaries/DGDecodeNV.dll")

vid = core.avs.DGSource (r'i:\jobs\inter.dgi', resize_w=1920, resize_h=1080, fulldepth=True)
vid = core.dghdrtosdr.DGHDRtoSDR (clip=vid, fulldepth=False)
vid = core.avs.DGDenoise (vid, strength=0.12, searchw=9)

vid.set_output ()

The typical CPU-utilization for a job like this is 99% CPU (for the x264 process), and about 0.3% for vspipe (YAY GPU!)

On a non-GPU accelerated jon, CPU saturation for the vspipe process is around 50% (with haf.QTGMC). So, yeah, whatever can be done in GPU, I'll take it!
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 12th December 2018, 05:18   #262  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Quote:
Originally Posted by asarian View Post
So, yeah, whatever can be done in GPU, I'll take it!
Have a look at DGBob() and PVBob() instead of QTGMC for deinterlacing if you are after blazing speed. Decomb is also implemented for GPU (DGTelecide and DGDecimate).

Maybe getting OT for this thread.

Last edited by videoh; 12th December 2018 at 05:22.
videoh is offline   Reply With Quote
Old 10th January 2019, 07:51   #263  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by videoh View Post
You may like this one as it is GPU accelerated. Apply it after resizing on the GPU (if needed) for maximum performance.
I'm loving it!

I noticed, however, that sometimes DGHDRtoSDR still leaves things too washed out, as it were. See: https://1drv.ms/u/s!AhSxhQ9g_mrMlEJQ6vC4Z8ExAKlg

Those are stills from the movie Divergent. The overlapped image (on the right, with the black bars) is from the original blu-ray; the underlying, big image is what DGHDRtoSDR produced (with default values).

In Photoshop, I needed +48 contrast to have it look kinda like the blu-ray. Sadly, I found no contrast parameter for DGHDRtoSDR (brightness didn't seem to affect much of anything). Is there a way to achieve this?

Thanks.

EDIT: 'what DGHDRtoSDR produced' from the UHD source, of course.
__________________
Gorgeous, delicious, deculture!

Last edited by asarian; 10th January 2019 at 19:09.
asarian is offline   Reply With Quote
Old 10th January 2019, 19:55   #264  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Quote:
Originally Posted by asarian View Post
Sadly, I found no contrast parameter for DGHDRtoSDR (brightness didn't seem to affect much of anything). Is there a way to achieve this?
Use Tweak() in your Avisynth script.
videoh is offline   Reply With Quote
Old 10th January 2019, 21:10   #265  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by videoh View Post
Use Tweak() in your Avisynth script.
Thanks. I see it's part of havsfunc itself.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 15th February 2019, 10:43   #266  |  Link
RainyDog
Registered User
 
Join Date: May 2009
Posts: 184
Is it possible to use fmtconv to resize and crop together?

For example, in avisynth you can the below script when the exact crop is a row of 21 black pixels at both the top and bottom to avoid either overcropping or undercropping by 2 pixels.

Spline36Resize(1920, 1038, 0, 21, -0, -21)

Thanks.
RainyDog is offline   Reply With Quote
Old 15th February 2019, 10:50   #267  |  Link
sneaker_ger
Registered User
 
Join Date: Dec 2002
Posts: 5,565
See documentation about "resample" "sx", "sy", "sw", "sh" parameters.

Quote:
sx, sy

Coordinate of the top-left corner of the picture sub-area used as source for the resizing. They can be fractional. If negative, the picture is extended by replicating the left pixel column.

These parameters are arrays, so it’s possible to specify a different value for each plane. The last value is used for the unspecified planes. The coordinates are always related to the pixel dimensions, you don’t need to scale them with the chroma subsampling.

sw, sh

Size in pixels of the sub-area to resize. They can be fractional. If 0, the area has the same size as the source clip. If negative, they define coordinates relative to the bottom-right corner, in a Crop-like manner. These parameters are arrays like sx and sy.
sneaker_ger is offline   Reply With Quote
Old 21st February 2019, 22:38   #268  |  Link
zorr
Registered User
 
Join Date: Mar 2018
Posts: 447
Quote:
Originally Posted by Wolfberry View Post
If you are using the dll from the official release, I will recommend to use the one from ChaosKing's FATPACK or the one in my signature as it is compiled with a newer compiler and might save you from random crashes.
I'm using the FATPACK version but fmtconv.dll is dated March 2016 and has the exact same date as the official version. Is the more recent (and hopefully less buggy) version still available somewhere?
zorr is offline   Reply With Quote
Old 22nd February 2019, 09:10   #269  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by zorr View Post
I'm using the FATPACK version but fmtconv.dll is dated March 2016 and has the exact same date as the official version. Is the more recent (and hopefully less buggy) version still available somewhere?
I'm using the one Wolfberry linked to (his own version), but the link doesn't seem valid any more. Sad, because that one is very stable.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 23rd February 2019, 01:40   #270  |  Link
zorr
Registered User
 
Join Date: Mar 2018
Posts: 447
Quote:
Originally Posted by asarian View Post
I'm using the one Wolfberry linked to (his own version), but the link doesn't seem valid any more. Sad, because that one is very stable.
Could you share the file? It could be included in the next FATPACK.
zorr is offline   Reply With Quote
Old 23rd February 2019, 02:53   #271  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by zorr View Post
Could you share the file? It could be included in the next FATPACK.
Here it is: fmtconv.dll

It's for 64-bit, btw.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 23rd February 2019, 02:58   #272  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,377
wolfberry has 3 public shared fmtconv versions, which one are you linking to? or is it a different one ?
https://drive.google.com/drive/folde...mHKYLzO3elemlC
poisondeathray is offline   Reply With Quote
Old 23rd February 2019, 10:19   #273  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by poisondeathray View Post
wolfberry has 3 public shared fmtconv versions, which one are you linking to? or is it a different one ?
https://drive.google.com/drive/folde...mHKYLzO3elemlC
If I recall correctly, he had a separate vapoursynth directory there (which I couldn't find any more earlier either). The fmtconv version I took was dated 8 Dec 2018 (which I don't see any more either). Said directory had things like a new libdfttest too.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 23rd February 2019, 20:33   #274  |  Link
wonkey_monkey
Formerly davidh*****
 
wonkey_monkey's Avatar
 
Join Date: Jan 2004
Posts: 2,496
A warning, as people still seem to be posting directly to threads and may not be aware:

It appears that the forum may have been hacked. There is a suspicious "test" announcement, apparently from tebasuna51 (but probably not), parts of the forum are not working, and there appear to be some malicious javascript files.

I'm not speaking in any official capacity here, but I would recommend, at the very least, NOT entering your password anywhere on Doom9 for the time being.

Please refer to this post: https://forum.doom9.org/showthread.p...wpost&t=176128
__________________
My AviSynth filters / I'm the Doctor
wonkey_monkey is offline   Reply With Quote
Old 27th February 2019, 19:43   #275  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by wonkey_monkey View Post
A warning, as people still seem to be posting directly to threads and may not be aware:

It appears that the forum may have been hacked. There is a suspicious "test" announcement, apparently from tebasuna51 (but probably not), parts of the forum are not working, and there appear to be some malicious javascript files.

I'm not speaking in any official capacity here, but I would recommend, at the very least, NOT entering your password anywhere on Doom9 for the time being.

Please refer to this post: https://forum.doom9.org/showthread.p...wpost&t=176128

The guy that did speak in an official capacity ('Swede'), is he legit?! He has locked his announcement, so I can't react, but suggests ppl change their password... which would be an ideal hack (as you need to enter your old password on the form there too) if it's illegit.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 27th February 2019, 20:23   #276  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Swede is legit.
videoh is offline   Reply With Quote
Old 27th February 2019, 21:39   #277  |  Link
asarian
Registered User
 
Join Date: May 2005
Posts: 1,462
Quote:
Originally Posted by videoh View Post
Swede is legit.
Puts my mind at ease. Thanks.
__________________
Gorgeous, delicious, deculture!
asarian is offline   Reply With Quote
Old 4th October 2019, 17:50   #278  |  Link
groucho86
Registered User
 
Join Date: Apr 2016
Posts: 85
Hi everyone,
Just opened up an issue on fmtconv's github, wondering if anyone had any insight here.

I have a SGamut3.Cine Linear EXR. It seems like the Linear to Slog3 conversion is clipping in the highlights.

Code:
import vapoursynth as vs
import muvsfunc
core = vs.get_core()

input_path = 'source_sgamut

c = core.imwri.Read(input_path,float_output=True)
c = core.fmtc.transfer (clip=c, transs='linear', transd='slog3')
c.set_output()
Test material is here:
https://github.com/EleonoreMizo/fmtc...o_slog3_tb.zip

Includes:
source_sgamut3cine_linear.exr <-- source file
resolve_delinearized.tif <-- expected result
vs_delinearized.png <-- fmtconv result
groucho86 is offline   Reply With Quote
Old 4th October 2019, 19:14   #279  |  Link
age
Registered User
 
Join Date: Oct 2015
Posts: 54
Yes it looks so
Code:
import vapoursynth as vs
import muvsfunc
core = vs.get_core()

input_path = 'source_sgamut

c = core.imwri.Read(input_path,float_output=True)
#c = core.std.Expr(clips=[c], expr="  x 0.9 *")
c = core.std.Expr(clips=[c], expr="  x  0.01125000 >= x 0.01 +  0.19 / log 10 log / 261.5 * 420 + 1023 / 171.2102946929  95 -   x *   0.01125000  95 + /  1023 / ?")
c.set_output()
Not sure if the resolve result is right either, maybe there is need to scaling from linear to reflection multiply by 0.9

https://github.com/videovillage/Latt...sues/issues/17

https://pro.sony/s3/cms-static-conte...7494271406.pdf
age is offline   Reply With Quote
Old 4th October 2019, 20:27   #280  |  Link
groucho86
Registered User
 
Join Date: Apr 2016
Posts: 85
Thanks age! Your expr matches well to the DCTL I am using in Resolve. The 0.9 does not seem relevant in this case.

Any idea why fmtconv would be clipping? I looked at TransOpSLog3.cpp and nothing's jumping out at me. Maybe I'm not looking in the right place.
groucho86 is offline   Reply With Quote
Reply


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 14:57.


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