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. |
![]() |
#2021 | Link | |
Registered User
Join Date: Feb 2003
Posts: 95
|
Quote:
|
|
![]() |
![]() |
![]() |
#2024 | Link | |
Registered User
Join Date: Nov 2009
Posts: 2,339
|
Quote:
Code:
# https://forum.doom9.org/showthread.php?p=1981048#post1981048 function Stabilize(clip c, int "offset", bool "info") { in = Default(info, false) of = Default(offset, 40) c vectors = MSuper().MAnalyse(isb=false) mdata = MDepan(vectors, rot=false, zoom=false, error= 65) DePanStabilize(data=mdata,dxmax=of, dymax=of, zoommax=0, rotmax=0, method=1, mirror=15, prev=1, next=1, info=in) } ------------------------- In conversations in Github I recommended an edge masking for anime alternative to FlatMask() and more similar to VapourSynth's detailmask() sometimes surpassing it. It uses a combination of lumamask() and ex_edge() with final mask merging. Code:
LC = ex_unsharp(2,Fc=width()/4) # increase local contrast LM = lumamask(LC,30,70,invert=true) # luma mask ex_edge("frei-chen",lo=4,hi=25) ex_expand(mode="disk") ex_deflate() ex_smooth(2,mode="SG") ex_blend(LM,mode="overlay") # Improve edge masking with luma mask reinforcement
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread Last edited by Dogway; 9th February 2023 at 18:16. |
|
![]() |
![]() |
![]() |
#2026 | Link | ||
Registered User
Join Date: Sep 2007
Posts: 5,285
|
Quote:
Quote:
This works for me, resulting in 1280x640 (2:1) Code:
video=blankclip(width=1920, height=960, pixel_type="YV12") video=deep_resize(video,1280,flat="nnedi3",grain=0,qual=2) return video |
||
![]() |
![]() |
![]() |
#2028 | Link | ||||
Registered User
Join Date: Sep 2007
Posts: 5,285
|
Quote:
It's not "manually adding width and height" per se - It's a test script making a blank clip with the same dimensions as your example to debug the script. To test if the deep_resize script itself works - It does, so that's ruled out as the problem I can encode the blank clip, then load it without entering anything - and it works too. So again, the problem is not deep_resize - it's something either with your setup or your video When you debug something you break it down into parts ,examine each step Quote:
And you still didn't answer the question about exact error message, but if you don't care, then ignore Quote:
You can examine the temp files and log to see what it's really doing Quote:
|
||||
![]() |
![]() |
![]() |
#2029 | Link | |||
Registered User
Join Date: Sep 2007
Posts: 5,285
|
Quote:
Quote:
Code:
video=deep_resize(video,1280,flat="nnedi3",grain=0,qual=2) Code:
video=ConvertBits(video,16) video=deep_resize(video,1280,edge="SSIM2") Quote:
1280x720 is achieved by resizing to 1280x692 (1280/692 = 1.8497 - close enough to 1.85 AR), letterbox borders added to get 1280x720 - this is in the script when you select that preset |
|||
![]() |
![]() |
![]() |
#2030 | Link | |||
Registered User
Join Date: Sep 2007
Posts: 5,285
|
Quote:
Quote:
1280x720 [2:1 AR] would take 1920x960 and resize to 1280x640 with letterbox borders 40px top & bottom each to achieve 1280x720 Anyways, it has nothing to do with Dogways filters or avisynth. You should discuss in ripbot thread |
|||
![]() |
![]() |
![]() |
#2031 | Link |
Registered User
Join Date: Jan 2018
Posts: 2,085
|
You can read document about AddBorders, this code will add black boredrs to change 1280x640 to 1280x720
Code:
video=deep_resize(video,1280,640,flat="nnedi3",grain=0,qual=2) video=AddBorders(video,0,40,0,40) |
![]() |
![]() |
![]() |
#2032 | Link | |||
Registered User
Join Date: Sep 2007
Posts: 5,285
|
Quote:
Yes I think it's a similar issue to what you 've had in the past, but you never answered dogway's questions directly either... When you ask for help, usually you should make an attempt to answer questions...otherwise people will be less inclined to help Quote:
Quote:
|
|||
![]() |
![]() |
![]() |
#2034 | Link | |
21 years and counting...
Join Date: Oct 2002
Location: Germany
Posts: 716
|
Quote:
![]() |
|
![]() |
![]() |
![]() |
#2035 | Link | ||
Registered User
Join Date: Sep 2007
Posts: 5,285
|
Quote:
"There is no function named 'SSIM_downsample'" Just "google" the error message, you don't even have to ask or post unless google doesn't have an answer https://github.com/Asd-g/AviSynthPlu...ownsample.avsi Quote:
Of course, this has been mentioned several times, but several different people - the 1920 is a no-op. It's like deleting the line, or commenting out the line 1280 gives you the error message, because you're missing the SSIM_downsample function. (ie. check your prerequisites ) |
||
![]() |
![]() |
![]() |
#2036 | Link |
Registered User
Join Date: Jan 2018
Posts: 2,085
|
@TDS Or you can use Dogway's SSIM_downsample
https://github.com/Dogway/Avisynth-S...tyMetrics.avsi |
![]() |
![]() |
![]() |
#2037 | Link |
Registered User
Join Date: Nov 2009
Posts: 2,339
|
@TDS, could you open your own thread? The last 8 pages or so have been completely yours with mostly RipBot and basic AVS usage questions, going in rounds like a dog trying to catch his own tail, double posting and whatnot. It's going to be suffering for future readers.
For anyone reading, proper discussion ended in first half of page 96, with some break in previous page (page 104) for luma deflicker. On another note, I'm finishing SMDegrain documentation, will probably promote it to v4.0.0 and call it "finished".
__________________
i7-4790K@Stock::GTX 1070] AviSynth+ filters and mods on GitHub + Discussion thread Last edited by Dogway; 12th February 2023 at 19:52. |
![]() |
![]() |
![]() |
#2038 | Link | |
Formally known as .......
Join Date: Sep 2021
Location: On a need to know basis.
Posts: 835
|
Quote:
I think you're being quite unfair at singling me out for all these "non related" post's, it takes 2 (or more) to tango !!! It started out as a legit question about deep-resize, and it just went on & on from there. I do recall mentioning that this should go to the RipBot264 thread, but it didn't. I'm not going to throw anyone under the bus, but it should be very obvious who the main protagonist's were. I'm sorry I'm not as experienced or as knowledgable as the ppl involved (and yourself), so it takes me a little while for it to sink in. So to save you further embarrassment of my posts, I have removed some 62 that were "off topic". Unfortunately by doing so, it leaves a LOT of posts that are now pointless & irrelevant, so maybe they need to be removed, as well. I honestly appreciate the endless development of your tool's, and they have been a game changer for me. But I would doubt you will see anymore posts from me, in this thread, in the future. https://forum.doom9.org/showthread.p...16#post1981416 first WARN !!! https://forum.doom9.org/showthread.p...03#post1981903 second WARN !!! https://forum.doom9.org/showthread.p...04#post1981904 legit question about deep-resize
__________________
This can be Very "TeDiouS".. Long term RipBot264 user. Ryzen 9 7950X Intel i9-13900KF Ryzen 9 5950X Ryzen 9 5900X Ryzen 9 3950X Link to RB v1.27.0 |
|
![]() |
![]() |
![]() |
#2039 | Link |
Pig on the wing
Join Date: Mar 2002
Location: Finland
Posts: 5,673
|
You could have asked for a moderator to move them to a separate thread, which they will happily do if requested.
__________________
And if the band you're in starts playing different tunes I'll see you on the dark side of the Moon... |
![]() |
![]() |
![]() |
#2040 | Link |
Registered User
Join Date: Feb 2002
Location: California
Posts: 2,656
|
The guy hijacks this thread, complains about being singled out and treated unfairly but, oh by the way, he then deletes 62 posts.
Everyone has their own definition of what it means to hijack a thread, but 62 posts about things not related directly to Dogway's amazing filter packs is pretty much the definition of hijacking. Dogway did the right thing by asking him to start his own thread. That is precisely what should be done when someone goes off topic. This is especially true of this thread which, because his filter packs are so popular, is now over 100 pages in length. We most definitely do not want to have to wade through several pages of posts that are irrelevant to the topic when we want to find out something about Dogway's software. |
![]() |
![]() |
![]() |
Tags |
avisynth, dogway, filters, hbd, packs |
Thread Tools | Search this Thread |
Display Modes | |
|
|