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. |
28th June 2019, 23:55 | #21 | Link | |
Noob
Join Date: Mar 2017
Posts: 221
|
Quote:
till now i thought it will apply floyd dithering as it is default mode of f3kdb in 16bit output. i am confused now. that means specifying dither_algo is waste then as f3kdb will ignore it Last edited by Natty; 28th June 2019 at 23:57. |
|
29th June 2019, 00:34 | #22 | Link |
結城有紀
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
|
Natty:
Dither is only used on downgrading bit depth, i.e. from internal precision (16 bit) down to output bit depth (14 bit for example). If you want 16 bit output, it just gives out the original result, without touching it at all. |
29th June 2019, 12:32 | #25 | Link | |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
|
Quote:
I tried the new version of f3kdb and it works, however I noticed that as you introduced support for regular, planar high bit depth, you removed support for 16bit stacked and 16bit interleaved. I don't actually think this is the right thing to do as it will definitely break things in many other scripts that make use of f3kdb as a filter (dependency) and that were working in either 16bit stacked or 16bit interleaved. f3kdb was working with basically two modes: input_mode=1 and input_mode=2. Mode 1 means 16bit stacked, while Mode 2 means 16bit interleaved. I think that you are absolutely right to add support for regular, planar high bit depth, however you should not remove those two modes as they are really important for people relying on the old Avisynth 2.6.1 or for filters that use f3kdb as a sub-filter. This is an example of what I noticed when I was trying to encode a documentary provided in Apple ProRes 10bit planar that still had banding in low light scenes anyway: 16bit interleaved - 16bit stacked - 10bit planar In this case there's no reason to use 16bit stacked or interleaved, but as I said, removing them will break support for many filters that rely on f3kdb as dependency and will also make life harder to those using Avisynth 2.6.1. Code:
#10bit planar input, 8bit planar output works video=FFVideoSource("\\VBOXSVR\Share_Windows_Linux\Production\RAW\IMN_190319_v2.mov") audio=FFAudioSource("\\VBOXSVR\Share_Windows_Linux\Production\RAW\IMN_190319_v2.mov") Audiook=MergeChannels(audio, audio, audio, audio) AudioDub(video, audiook) f3kdb(range=15, Y=70, Cb=40, Cr=40, grainY=0, grainC=0, sample_mode=2, blur_first=true, dynamic_grain=false, opt=3, mt=true, keep_tv_range=true, output_depth=8) ### ### ### #10bit planar input -> 16bit planar -> 8bit planar output works video=FFVideoSource("\\VBOXSVR\Share_Windows_Linux\Production\RAW\IMN_190319_v2.mov") audio=FFAudioSource("\\VBOXSVR\Share_Windows_Linux\Production\RAW\IMN_190319_v2.mov") Audiook=MergeChannels(audio, audio, audio, audio) AudioDub(video, audiook) ConvertBits(16) f3kdb(range=15, Y=70, Cb=40, Cr=40, grainY=0, grainC=0, sample_mode=2, blur_first=true, dynamic_grain=false, opt=3, mt=true, keep_tv_range=true, output_depth=8) ### ### ### #10bit planar input -> 16bit planar -> 16bit planar output works video=FFVideoSource("\\VBOXSVR\Share_Windows_Linux\Production\RAW\IMN_190319_v2.mov") audio=FFAudioSource("\\VBOXSVR\Share_Windows_Linux\Production\RAW\IMN_190319_v2.mov") Audiook=MergeChannels(audio, audio, audio, audio) AudioDub(video, audiook) ConvertBits(16) f3kdb(range=15, Y=70, Cb=40, Cr=40, grainY=0, grainC=0, sample_mode=2, blur_first=true, dynamic_grain=false, opt=3, mt=true, keep_tv_range=true, output_depth=8) ### ### ### #10bit planar input -> 16bit planar ->16bit stacked -> 16bit stacked does not work #f3kdb does not have a named argument "input mode" video=FFVideoSource("\\VBOXSVR\Share_Windows_Linux\Production\RAW\IMN_190319_v2.mov") audio=FFAudioSource("\\VBOXSVR\Share_Windows_Linux\Production\RAW\IMN_190319_v2.mov") Audiook=MergeChannels(audio, audio, audio, audio) AudioDub(video, audiook) ConvertBits(16) ConvertToStacked() f3kdb(range=15, Y=70, Cb=40, Cr=40, grainY=0, grainC=0, sample_mode=2, blur_first=true, dynamic_grain=false, opt=3, mt=true, keep_tv_range=true, input_mode=1, input_depth=16, output_mode=1, output_depth=16) ### ### ### #10bit planar input -> 16bit planar ->16bit interleaved -> 16bit interleaved does not work #f3kdb does not have a named argument "input mode" video=FFVideoSource("\\VBOXSVR\Share_Windows_Linux\Production\RAW\IMN_190319_v2.mov") audio=FFAudioSource("\\VBOXSVR\Share_Windows_Linux\Production\RAW\IMN_190319_v2.mov") Audiook=MergeChannels(audio, audio, audio, audio) AudioDub(video, audiook) ConvertBits(16) ConvertToDoubleWidth() f3kdb(range=15, Y=70, Cb=40, Cr=40, grainY=0, grainC=0, sample_mode=2, blur_first=true, dynamic_grain=false, opt=3, mt=true, keep_tv_range=true, input_mode=2, input_depth=16, output_mode=2, output_depth=16) Last edited by FranceBB; 5th July 2019 at 07:24. |
|
6th July 2019, 18:01 | #27 | Link | |
結城有紀
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
|
Quote:
If you want to use legacy I/O, simply use the old version (2.0, 1.x, etc). |
|
7th July 2019, 01:07 | #28 | Link | |
Broadcast Encoder
Join Date: Nov 2013
Location: Royal Borough of Kensington & Chelsea, UK
Posts: 2,904
|
Quote:
Tl;dr I'm in favor of adding regular planar high bit depth, but I don't think that stacked and interleave support should be removed for compatibility reasons. |
|
7th July 2019, 09:03 | #29 | Link |
結城有紀
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
|
I see your point. However having both format could cause confusion.
Suppose you are f3kdb'ing 8 bit input and asking for 16 bit output. Pre 2.1 output mode defaults to 1 = stacked, and now native YUV420P16. If we return stacked by default, it's confusing for normal usage. If we return native by default, it still breaks compatibility. My recommendation is that you keep the old version auto loaded, and manually load the native version when needed, until all your existing scripts are converted. Upgrading to native HBD is a pain process. All moving parts need to be replaced by the HBD version. In my case, that means DGSource, L-Smash-works, Delogo, f3kdb and the final step avs4x26x or whatever piper. PR welcome, but I'm not going to spend time on reverting the code / adding smart or dumb condition checks to improve compatibility. Sorry. |
22nd July 2019, 18:24 | #30 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
is it possible to disable masking in F3KDB?
__________________
See My Avisynth Stuff |
23rd July 2019, 05:17 | #32 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
Code:
ImageSource("uonzj6V.png") PointResize(720,480) ConvertToYV12() mt_merge(last,FlipHorizontal(),BlankClip(last,color = $FFFFFF).FadeIO(500)) f3kdb() luma_histogram() edit: to make sure it's masking problem use f3kdb(grainy=0)
__________________
See My Avisynth Stuff Last edited by real.finder; 23rd July 2019 at 05:21. |
|
24th July 2019, 15:22 | #33 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
edit: I think you had a modified version, it's better to chose 3 instead of 0 edit: adding mode 4 for vertical will be nice, and then the output of both can mixed later
__________________
See My Avisynth Stuff Last edited by real.finder; 24th July 2019 at 15:41. |
24th July 2019, 15:42 | #34 | Link | |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
Quote:
__________________
See My Avisynth Stuff |
|
25th July 2019, 05:50 | #35 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
ok, what about 3 for horizontal, and 4 for both but separated then mixed (like by simple merge or something)
__________________
See My Avisynth Stuff |
25th July 2019, 17:00 | #37 | Link |
Registered User
Join Date: Jan 2012
Location: Mesopotamia
Posts: 2,587
|
for now there are no sample_mode=3, with sample_mode=1 it will work I think, but with more blur and slowness
__________________
See My Avisynth Stuff |
4th August 2019, 13:15 | #38 | Link |
Registered User
Join Date: Dec 2005
Location: Germany
Posts: 1,795
|
@MeteorRain The download link on the first page is not working.
__________________
AVSRepoGUI // VSRepoGUI - Package Manager for AviSynth // VapourSynth VapourSynth Portable FATPACK || VapourSynth Database |
5th August 2019, 16:56 | #40 | Link |
Registered User
Join Date: Dec 2002
Location: Region 0
Posts: 1,436
|
GA version?
Is there any change we can talk you into integrating madshi's suggested improvements for it? https://forum.doom9.org/showthread.p...56#post1652256 |
|
|