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. |
22nd October 2019, 21:35 | #3602 | Link | ||
Registered User
Join Date: Sep 2007
Posts: 5,346
|
With fmtconv kernel="spline", taps=6
Quote:
Quote:
|
||
22nd October 2019, 21:50 | #3603 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
22nd October 2019, 22:02 | #3604 | Link |
Registered User
Join Date: Sep 2007
Posts: 5,346
|
If you have RGBS and use Expr to add 1 to channel R , is it suppose to round the value ? Or is this the same thing as the Convolution with float input issue ?
clip2 = core.std.Expr(clip, ["x 1 +", "", ""]) e.g. in vsedit, the color picker shows R=0.921468 for clip, R=1.92147 for clip2 I would have expected 1.921468 (G, B remain unchanged at 0.921468) core.std.SetMaxCPU("none") does not affect the result, R48-RC3 x64 Last edited by poisondeathray; 22nd October 2019 at 22:21. |
22nd October 2019, 22:26 | #3605 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
22nd October 2019, 22:42 | #3606 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
From VS2008 Float.h
Code:
#define FLT_DIG 6 /* # of decimal digits of precision */ #define FLT_EPSILON 1.192092896e-07F /* smallest such that 1.0+FLT_EPSILON != 1.0 */ #define FLT_GUARD 0 #define FLT_MANT_DIG 24 /* # of bits in mantissa */ #define FLT_MAX 3.402823466e+38F /* max value */ #define FLT_MAX_10_EXP 38 /* max decimal exponent */ #define FLT_MAX_EXP 128 /* max binary exponent */ #define FLT_MIN 1.175494351e-38F /* min positive value */ #define FLT_MIN_10_EXP (-37) /* min decimal exponent */ #define FLT_MIN_EXP (-125) /* min binary exponent */ #define FLT_NORMALIZE 0 #define FLT_RADIX 2 /* exponent radix */ #define FLT_ROUNDS 1 /* addition rounding: near */
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? |
22nd October 2019, 22:52 | #3608 | Link |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
Its really the binary digits that count, and 10 is not a power of 2, so it works (rounds) a bit weird.
EDIT: If it were viewed in binary, it would make sense.
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 22nd October 2019 at 22:56. |
22nd October 2019, 23:22 | #3610 | Link | |
HeartlessS Usurer
Join Date: Dec 2009
Location: Over the rainbow
Posts: 10,980
|
PDR, a bit more.
There are a fractional number of binary digits per decimal digit, and although float only precise to 6 [EDIT: significant] digits, there will likely be one or more decimal digits which are not quite correct. EDIT: Note, below 6 significant digits Code:
0.921468 ^^^^^^ 1.921468 # Adding 1.0, last digit is not within first 6 significant digits : Note that the extra digit is printed because of the default print format, rather than it being within first 6 significant digits. ^ ^^^^^ Code:
a = 0.921468 # This was probably not exact to begin with b = a + 1.0 DIGS=32 # Digits to the right of decimal point BlankClip RT_DebugF("a=%.*f\nb=%.*f",DIGS,a,DIGS,b) RT_subtitle("a=%.*f\nb=%.*f",DIGS,a,DIGS,b) return last Code:
00000057 0.29118466 [1068] RT_DebugF: a=0.92146801948547363000000000000000 00000058 0.29125640 [1068] RT_DebugF: b=1.92146801948547360000000000000000 Code:
RT_subtitle("a=%.*f\nb=%.*f",DIGS,a,DIGS,b) Equiv RT_subtitle("a=%.32f\nb=%.32f",a,b) EDIT: Quote:
Code:
Function Log2(float n) { return Log(n) / Log(2.0) } blankclip DIGS=32 # Digits to the right of decimal point BitsPerDecDigit = Log2(10.0) Test10=Pow(2.0,BitsPerDecDigit) RT_debugF ("BitsPerDecDigit=%.*f\nTest10 =%.*f",DIGS,BitsPerDecDigit,DIGS,Test10) RT_Subtitle("BitsPerDecDigit=%.*f\nTest10 =%.*f",DIGS,BitsPerDecDigit,DIGS,Test10) return last Code:
00000231 0.29308608 [4064] RT_DebugF: BitsPerDecDigit=3.32192802429199220000000000000000 00000232 0.29313752 [4064] RT_DebugF: Test10 =9.99999904632568360000000000000000
__________________
I sometimes post sober. StainlessS@MediaFire ::: AND/OR ::: StainlessS@SendSpace "Some infinities are bigger than other infinities", but how many of them are infinitely bigger ??? Last edited by StainlessS; 28th October 2019 at 01:55. |
|
23rd October 2019, 01:35 | #3611 | Link |
Registered User
Join Date: Dec 2009
Posts: 72
|
Threadripper 1920X w/64GB ECC and Windows 10 x64
Local build of VS with the latest AVX2 fix (ac74e9b) Three runs on a script that's all float and 16-bit (CinemaDNG sequence): Code:
time vspipe -e 1000 script.vpy . 1 2 3 avg stddev relative R48-RC3+1 avx2 432.83 434.95 435.22 434.33 1.309 1.0080x sse2 431.05 433.80 436.28 433.71 2.616 1.0095x none 467.84 465.92 463.87 465.88 1.985 0.9398x R46 sse2 434.29 440.49 438.68 437.82 3.188 1.0000x |
23rd October 2019, 09:48 | #3612 | Link | |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
Quote:
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
|
23rd October 2019, 13:41 | #3613 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
23rd October 2019, 14:26 | #3614 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
Congratulations! You've won a free RC5 build which you can redeem tomorrow! That was a really stupid typo. At least there are no known image corruption problems. (test the unprivileged installs too just to be sure)
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
24th October 2019, 10:24 | #3615 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
R48-RC5
The only change from RC4 is that the installer now correctly respects the add to PATH options.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
24th October 2019, 14:31 | #3616 | Link |
Where's my loot?
Join Date: May 2019
Posts: 63
|
another bug
I've found another bug. When I try to use nyuszika7h's FFInfo the result is a pile of garbage with R48-RC4, while it was perfectly fine with R47.2. The picture is also okay without the script.
nyuszika7h's FFInfo script: https://gist.github.com/nyuszika7h/3...0b35a464ef9a91 with FFInfo: without FFInfo: Code:
import vapoursynth as vs from vapoursynth import core clip = core.ffms2.Source(source=r'some_hd_footage.mkv') clip = vs_ffinfo.FFInfo(clip, text='some text', frame_num=True, frame_type=True, frame_time=True) clip.set_output() Video parameters: Resolution: 1920x1038 Format: YUV420P8 FPS: 24000/1001 Thanks in advance Last edited by l00t; 24th October 2019 at 14:33. |
24th October 2019, 15:37 | #3617 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
The problem is in: clip.sub.Subtitle("this is art")
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
24th October 2019, 20:05 | #3618 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,548
|
R48-RC6
Fixes premultiplied maskedmerge and a few expr problems that most likely were never encountered by anyone.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
24th October 2019, 21:29 | #3619 | Link |
Where's my loot?
Join Date: May 2019
Posts: 63
|
Thanks, now it's perfect.
BTW: If someone's interested in FFInfo, I've pumped up a bit nyuszika's version: https://gist.github.com/l00tzOMG/404...d96b57b08f32ce |
24th October 2019, 23:55 | #3620 | Link | |
Registered User
Join Date: May 2011
Posts: 321
|
Quote:
With if , elif approach you can end up having hundreds of them is database is large. Look in that example: https://forum.doom9.org/showthread.p...59#post1885759 |
|
Tags |
speed, vaporware, vapoursynth |
Thread Tools | Search this Thread |
Display Modes | |
|
|