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. |
23rd September 2015, 20:55 | #161 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Try other filters and you'll see it's probably a general speed degradation. It's because I've had to temporarily stop using tcmalloc. It will be back some day soon probably. Once it has the weird VS2015 issues fixed.
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
16th January 2016, 10:35 | #162 | Link | |
Registered User
Join Date: Oct 2006
Location: Omicron Persei 8
Posts: 180
|
Quote:
I just noticed the autogen.sh in the zip-file doesn't has chmod u+x and is additionally in DOS format, thus Linux cannot execute it, only after manual chmod and conversion into "Linux" format. The file in the git repo is fine. However both libraries are installed into $PREFIX/lib/ instead of $PREFIX/lib/vapoursynth/ |
|
16th January 2016, 12:55 | #163 | Link | |
unsigned int
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
|
Quote:
__________________
Buy me a "coffee" and/or hire me to write code! |
|
22nd January 2016, 16:38 | #164 | Link |
Registered User
Join Date: Aug 2011
Posts: 103
|
I encountered a really weird bug that might relate to fmtc.bitdepth. In fact it was someone reporting bug about mvf.BM3D then did I go to figure out what's going wrong. After testing for nearly a whole day, finally I found a minimum script to reproduce this issue. video example and the test script environment: CPU is Ivy Bridge (no AVX2) Windows 7 VS R30 64bit fmtconv-r17 BM3D-r4 L-SMASH-Works-r859-20151231 Code:
import vapoursynth as vs core = vs.get_core(threads=0) core.max_cache_size = 8000 src_path = r'Madoka_01.mkv' src = core.lsmas.LWLibavSource(src_path, threads=1) src = core.fmtc.bitdepth(src, bits=32) # Comment this line will not reproduce the issue src = core.fmtc.resample(src, kernel='bicubic', a1=0, a2=0.5, css='444') # Catmull-Rom can reproduce the issue #src = core.fmtc.resample(src, kernel='spline', css='444') # Spline can reproduce the issue #src = core.fmtc.resample(src, kernel='spline36', css='444') # and some other kernels will not src = core.fmtc.matrix(src, mat='709', col_fam=vs.RGB) radius = 1 param = {'sigma':[3,3,3], 'radius':radius, 'profile':'fast', 'matrix':100} sample = vs.FLOAT # vs.INTEGER will not reproduce the issue src = core.bm3d.RGB2OPP(src, sample) flt = core.bm3d.VBasic(src, **param).bm3d.VAggregate(radius, sample) flt = core.bm3d.VFinal(src, flt, **param).bm3d.VAggregate(radius, vs.FLOAT) # vs.INTEGER will not reproduce the issue flt = core.bm3d.OPP2RGB(flt, vs.FLOAT) # vs.INTEGER will not reproduce the issue final = flt #final = core.fmtc.matrix(final, mat='709', col_fam=vs.YUV) # optionally, uncomment this line will also reproduce the issue final = core.fmtc.bitdepth(final, bits=8, dmode=3) # with float input, integer output and dmode=3~7, the output is corrupt out = final # src and flt are OK out[111:].set_output() The weird thing is that only under specific circumstance will this issue be reproduced. With a tiny change in the script (e.g. different resample kernel, vs.FLOAT->vs.INTEGER, remove the BM3D part, change dmode to 0~2) the result will be correct. Different environment may also affect it but I'm not sure. More specific information is written in the comments. I've tried converting source to lossless format and the result is the same, thus it should not be a problem relates to source filter. Last edited by mawen1250; 22nd January 2016 at 16:47. |
23rd January 2016, 03:05 | #165 | Link |
Registered User
Join Date: Aug 2011
Posts: 103
|
After more testing, I found out that it's related to the final estimate of BM3D, which can produce very large or even NaN/INF results, and break the error diffusion algorithm of fmtc.bitdepth.
Adding either one like these before fmtc.bitdepth I'll get different black areas: final = core.std.Expr(final, 'x -4294967296 max') final = core.std.Expr(final, 'x -16777216 max') final = core.std.Expr(final, 'x -65536 max') Anyway, I've fixed this issue in BM3D-r5, but I'm not sure if it's a problem for fmtc.bitdepth. |
7th February 2016, 13:42 | #168 | Link | |
Registered User
Join Date: Mar 2003
Posts: 194
|
Quote:
Lets say I have some footage which is top field first and I want to convert it to bottom field first. How would I do that in VapoutSynth please? |
|
7th February 2016, 14:29 | #169 | Link |
unsigned int
Join Date: Oct 2012
Location: 🇪🇺
Posts: 760
|
Probably by deinterlacing it and then interlacing it again. If you just take the fields as they are and display them backwards, you'll get jerky motion. Or if you put the top field at the bottom, and the bottom field at the top, it's going to look wrong. Therefore, slow processing (QTGMC) is the way to go.
__________________
Buy me a "coffee" and/or hire me to write code! |
7th February 2016, 15:02 | #170 | Link | |
Registered User
Join Date: Mar 2003
Posts: 194
|
Quote:
Code:
-vf phase=b |
|
7th February 2016, 15:22 | #171 | Link |
Professional Code Monkey
Join Date: Jun 2003
Location: Kinnarps Chair
Posts: 2,555
|
Simply delete the first field, same as in avisynth as usual...
Code:
core.std.DoubleWeave(clip.std.SeparateFields(tff=whatevertheinputis)[1:])[::2]
__________________
VapourSynth - proving that scripting languages and video processing isn't dead yet |
7th February 2016, 15:37 | #172 | Link | ||
Registered User
Join Date: Mar 2003
Posts: 194
|
Quote:
Code:
ret = core.std.DoubleWeave(ret.std.SeparateFields(tff=True)[1:])[::2] Quote:
|
||
29th February 2016, 19:06 | #173 | Link |
Registered User
Join Date: Jun 2002
Location: On thin ice
Posts: 6,837
|
can fmtconv convert to the same format used in the code below?
Code:
clip.resize.Bicubic(format=vs.COMPATBGR32)
__________________
https://github.com/stax76/software-list https://www.youtube.com/@stax76/playlists |
29th February 2016, 20:06 | #174 | Link |
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
fmtconv doesn’t output to COMPAT* formats. However you can convert to RGB24 with fmtconv and output to a COMPAT format with the builtin VS functions.
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding |
8th March 2016, 21:54 | #175 | Link |
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
fmtconv r18:
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding |
16th March 2016, 02:44 | #176 | Link | |
Registered User
Join Date: Oct 2012
Posts: 3
|
just forward J1Man's request from GitHub.
https://github.com/EleonoreMizo/fmtconv/issues/7 Quote:
|
|
16th March 2016, 14:54 | #177 | Link | |
Registered User
Join Date: Oct 2012
Posts: 3
|
One more message from J1Man. He won't be able to post on Doom9 until he has been registered for 5 days (until 3/19/2016).
Quote:
Last edited by benmanw; 17th March 2016 at 02:35. |
|
17th March 2016, 13:01 | #178 | Link |
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
J1Man:
fmtconv does not need any modification to support 1000 cd/m˛ as HDR peak white. If your 100% light value represents 1000 cd/m˛, you can divide the components by 10 so they fit in a scale where 100% means 10000 cd/m˛. For this, reduce the contrast directly in the transfer command by setting cont=0.1. Code:
clip = core.fmtc.transfer (clip, transs="linear", transd="2084", cont=1000.0/10000.0) I added the DCI-P3 colorspace to fmtconv and will release an update in the next few days.
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding Last edited by cretindesalpes; 17th March 2016 at 13:10. |
19th March 2016, 12:13 | #179 | Link |
͡҉҉ ̵̡̢̛̗̘̙̜̝̞̟̠͇̊̋̌̍̎̏̿̿
Join Date: Feb 2009
Location: No support in PM
Posts: 712
|
fmtconv r19:
__________________
dither 1.28.1 for AviSynth | avstp 1.0.4 for AviSynth development | fmtconv r30 for Vapoursynth & Avs+ | trimx264opt segmented encoding |
19th March 2016, 15:24 | #180 | Link |
Registered User
Join Date: Mar 2016
Posts: 9
|
Cretindesalpes:
Thanks for your reply and thanks for adding DCI-P3 to the primaries. I will use cont option, as you suggested, to change the luminance range. I will test the videos on my UHD tv and let you know if there are any HDR related issues. Benmanw: Thanks for forwarding my messages to the doom forum. Last edited by J1Man; 20th March 2016 at 17:43. |
|
|