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 > Avisynth Development

Reply
 
Thread Tools Search this Thread Display Modes
Old 18th September 2019, 18:30   #941  |  Link
MeteorRain
結城有紀
 
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
What's wrong with 1 minute saved?
__________________
Projects
x265 - Yuuki-Asuna-mod Download / GitHub
TS - ADTS AAC Splitter | LATM AAC Splitter | BS4K-ASS
Neo AviSynth+ filters - F3KDB | FFT3D | DFTTest | MiniDeen | Temporal Median
MeteorRain is offline   Reply With Quote
Old 18th September 2019, 18:38   #942  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Quote:
Originally Posted by Atak_Snajpera View Post
Keep in mind that this was the BEST case scenario. Add some MDegrain or/and some HDR->SDR tonemapping plus x265 and you will be lucky if you even see 1 minute saved! It's simple! The more you throw tasks on CPU the less speed gap between software and hardware decoding you get.
The absolute time saved depends only on the stream length, not the amount of SW stuff you do. Yes, the percent savings gets reduced by more SW work, but not the absolute amount as you suggest: "you will be lucky if you even see 1 minute saved".
videoh is offline   Reply With Quote
Old 18th September 2019, 18:39   #943  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Quote:
Originally Posted by MeteorRain View Post
What's wrong with 1 minute saved?
Atak would refuse a free ten-dollar bill because it is too small.
videoh is offline   Reply With Quote
Old 18th September 2019, 19:31   #944  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,806
Quote:
Originally Posted by videoh View Post
Atak would refuse a free ten-dollar bill because it is too small.
Neuron2 triggered when somebody attacks hardware decoding... I wonder why...
Atak_Snajpera is offline   Reply With Quote
Old 18th September 2019, 19:50   #945  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
BTW, many filters have been GPU accelerated and there is nothing to stop others from being ported to GPU. It's not just about the decoder.

Last edited by videoh; 18th September 2019 at 20:49.
videoh is offline   Reply With Quote
Old 18th September 2019, 20:36   #946  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,806
Bonus x265
Atak_Snajpera is offline   Reply With Quote
Old 18th September 2019, 20:44   #947  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Ah, data. Sweet.

If you make available that 10-minute source clip I'd like to try this with a high-end nVidia GPU (2080 Ti) and DGSource() under both Avisynth+ and Vapoursynth (native). Can you please do that for us? Thank you. If you need access to my FTP just send me a PM.

DJATOM says he can't duplicate your effect so it would be nice to get some other data points.

Last edited by videoh; 18th September 2019 at 20:49.
videoh is offline   Reply With Quote
Old 18th September 2019, 23:28   #948  |  Link
MeteorRain
結城有紀
 
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
Actually I would like to see some performance testing on downscaling 4K UHD BD to 1080P and encoded by x265 medium. I assume this is a very legit scenario.
__________________
Projects
x265 - Yuuki-Asuna-mod Download / GitHub
TS - ADTS AAC Splitter | LATM AAC Splitter | BS4K-ASS
Neo AviSynth+ filters - F3KDB | FFT3D | DFTTest | MiniDeen | Temporal Median
MeteorRain is offline   Reply With Quote
Old 18th September 2019, 23:31   #949  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Sure, let's do both. But we should all use the same stream.
videoh is offline   Reply With Quote
Old 19th September 2019, 01:26   #950  |  Link
redbtn
Registered User
 
redbtn's Avatar
 
Join Date: Jan 2019
Location: Russia
Posts: 105
Quote:
Originally Posted by MeteorRain View Post
Actually I would like to see some performance testing on downscaling 4K UHD BD to 1080P and encoded by x265 medium. I assume this is a very legit scenario.
Which downscaler should I use? I can make tests. I prefer spline64 for 4k to 1080p, but maybe there are something better?
redbtn is offline   Reply With Quote
Old 19th September 2019, 02:39   #951  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
Quote:
Originally Posted by videoh View Post
Sure, let's do both. But we should all use the same stream.
Ooh, this sounds fun.
new thread? get everyone involved.

GTX 1060 3GB checking in.
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline   Reply With Quote
Old 19th September 2019, 02:39   #952  |  Link
Sparktank
47.952fps@71.928Hz
 
Sparktank's Avatar
 
Join Date: Mar 2011
Posts: 940
Quote:
Originally Posted by Atak_Snajpera View Post
Bonus x265
Also, how do you make these graphs?
__________________
Win10 (x64) build 19041
NVIDIA GeForce GTX 1060 3GB (GP106) 3071MB/GDDR5 | (r435_95-4)
NTSC | DVD: R1 | BD: A
AMD Ryzen 5 2600 @3.4GHz (6c/12th, I'm on AVX2 now!)
Sparktank is offline   Reply With Quote
Old 19th September 2019, 03:59   #953  |  Link
MeteorRain
結城有紀
 
Join Date: Dec 2003
Location: NJ; OR; Shanghai
Posts: 894
Quote:
Originally Posted by redbtn View Post
Which downscaler should I use? I can make tests. I prefer spline64 for 4k to 1080p, but maybe there are something better?
Has anyone tried GPU resizer from DGSource?
__________________
Projects
x265 - Yuuki-Asuna-mod Download / GitHub
TS - ADTS AAC Splitter | LATM AAC Splitter | BS4K-ASS
Neo AviSynth+ filters - F3KDB | FFT3D | DFTTest | MiniDeen | Temporal Median
MeteorRain is offline   Reply With Quote
Old 19th September 2019, 11:04   #954  |  Link
DJATOM
Registered User
 
DJATOM's Avatar
 
Join Date: Sep 2010
Location: Ukraine, Bohuslav
Posts: 377
I've tried it for downscaling of some movie and it was fine. Didn't tested on anime.
__________________
Me on GitHub
PC Specs: Ryzen 5950X, 64 GB RAM, RTX 2070
DJATOM is offline   Reply With Quote
Old 19th September 2019, 14:04   #955  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,806
Quote:
Originally Posted by videoh View Post
Ah, data. Sweet.

If you make available that 10-minute source clip I'd like to try this with a high-end nVidia GPU (2080 Ti) and DGSource() under both Avisynth+ and Vapoursynth (native). Can you please do that for us? Thank you. If you need access to my FTP just send me a PM.

DJATOM says he can't duplicate your effect so it would be nice to get some other data points.
Uploading in progress... Will take probably few hours.

New test with added very useful MDegrain2 (can reduce file size in Constant Quality by factor of 1.7x). I did only 4 tests because it takes way to much time!

ScriptSW.avs
Code:
LoadPlugin("C:\Program Files (x86)\RipBot264\Tools\AviSynth plugins\lsmash\LSMASHSource.dll")
video=LWLibavVideoSource("C:\Temp\Video.mkv",cachefile="C:\Temp\Video.mkv.lwi",prefer_hw=0)
Loadplugin("C:\Program Files (x86)\RipBot264\Tools\AviSynth plugins\mvtools\mvtools2.dll")
super=MSuper(video,pel=2)
fv1=MAnalyse(super,isb=false,delta=1,overlap=4)
bv1=MAnalyse(super,isb=true,delta=1,overlap=4)
fv2=MAnalyse(super,isb=false,delta=2,overlap=4)
bv2=MAnalyse(super,isb=true,delta=2,overlap=4)
video=MDegrain2(video,super,bv1,fv1,bv2,fv2,thSAD=400)
video=Prefetch(video,4)
return video
ScriptHW.avs
Code:
LoadPlugin("C:\Program Files (x86)\RipBot264\Tools\AviSynth plugins\lsmash\LSMASHSource.dll")
video=LWLibavVideoSource("C:\Temp\Video.mkv",cachefile="C:\Temp\Video.mkv.lwi",prefer_hw=1)
Loadplugin("C:\Program Files (x86)\RipBot264\Tools\AviSynth plugins\mvtools\mvtools2.dll")
super=MSuper(video,pel=2)
fv1=MAnalyse(super,isb=false,delta=1,overlap=4)
bv1=MAnalyse(super,isb=true,delta=1,overlap=4)
fv2=MAnalyse(super,isb=false,delta=2,overlap=4)
bv2=MAnalyse(super,isb=true,delta=2,overlap=4)
video=MDegrain2(video,super,bv1,fv1,bv2,fv2,thSAD=400)
video=Prefetch(video,4)
return video

Last edited by Atak_Snajpera; 19th September 2019 at 14:10.
Atak_Snajpera is offline   Reply With Quote
Old 19th September 2019, 14:07   #956  |  Link
videoh
Useful n00b
 
Join Date: Jul 2014
Posts: 1,667
Atak,

Any chance you can share your stream as I requested?
videoh is offline   Reply With Quote
Old 19th September 2019, 14:13   #957  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,806
Quote:
Originally Posted by Sparktank View Post
Also, how do you make these graphs?
LibreOffice calc
Atak_Snajpera is offline   Reply With Quote
Old 19th September 2019, 14:14   #958  |  Link
Atak_Snajpera
RipBot264 author
 
Atak_Snajpera's Avatar
 
Join Date: May 2006
Location: Poland
Posts: 7,806
Quote:
Originally Posted by videoh View Post
Atak,

Any chance you can share your stream as I requested?
It is being uploaded right now to mediafire...will take few hours.
Atak_Snajpera is offline   Reply With Quote
Old 19th September 2019, 15:04   #959  |  Link
poisondeathray
Registered User
 
Join Date: Sep 2007
Posts: 5,346
What was the "proper" way to MT GPU filters ?

I remember some issue in the KNLMeans discussion, or videoh mentioning something , but I can't find the posts

If you test just the source filter alone with cuvid, it seems abnormally slow , regardless of the filter MT Mode or prefetch >1 value . Thrashing or something . But seems ok in vapoursynth with native threading
poisondeathray is offline   Reply With Quote
Old 19th September 2019, 15:27   #960  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by poisondeathray View Post
What was the "proper" way to MT GPU filters ?
There is none. There is no speed benefit and it just eats more graphics memory. Modern cards have their own "multi-threading".
__________________
Groucho's Avisynth Stuff
Groucho2004 is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 02:20.


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