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 > Announcements and Chat > General Discussion

Reply
 
Thread Tools Search this Thread Display Modes
Old 25th January 2015, 10:59   #1  |  Link
yaston
Registered User
 
Join Date: Oct 2014
Location: Algeria
Posts: 14
Problem filters make the encode slower

Hello everyone,

I faced a problem using these filters:

"QTGMC()" and " dfttest()"

They made my encode slower, i used them at once..., one by one and i tried every way but no way !!

What should i do?
__________________
yaston is offline   Reply With Quote
Old 25th January 2015, 11:04   #2  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Before going into details, just a couple of questions:
- What CPU is this running on?
- Which version of Avisynth are you using?
- What type of source video are you processing?
Groucho2004 is offline   Reply With Quote
Old 25th January 2015, 11:13   #3  |  Link
yaston
Registered User
 
Join Date: Oct 2014
Location: Algeria
Posts: 14
Quote:
Originally Posted by Groucho2004 View Post
Before going into details, just a couple of questions:
- What CPU is this running on?
- Which version of Avisynth are you using?
- What type of source video are you processing?
Well...,

- CPU i5-4670K
- Avisynth 2.6.0
- Record from TV (HD and SD)
__________________
yaston is offline   Reply With Quote
Old 25th January 2015, 11:19   #4  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
I'm assuming that you are using the "official" Avisynth. You could try SEt's multi-threaded DLL but it's a bit tricky to set up.
Have a look at the QTGMC thread here, there are some tips on multi-threaded usage in the first post.
If set up properly, it can speed up QTGMC considerably.

dfttest() is already multi-threaded internally, so nothing to gain there with AVS MT. It's just slow.

Last edited by Groucho2004; 25th January 2015 at 11:21.
Groucho2004 is offline   Reply With Quote
Old 25th January 2015, 11:49   #5  |  Link
yaston
Registered User
 
Join Date: Oct 2014
Location: Algeria
Posts: 14
Quote:
Originally Posted by Groucho2004 View Post
I'm assuming that you are using the "official" Avisynth. You could try SEt's multi-threaded DLL but it's a bit tricky to set up.
Have a look at the QTGMC thread here, there are some tips on multi-threaded usage in the first post.
If set up properly, it can speed up QTGMC considerably.

dfttest() is already multi-threaded internally, so nothing to gain there with AVS MT. It's just slow.
I already did all of these steps... i've installed AviSynth pluging and i set "dfttest" and "libfftw3f-3" in SysWOW64
__________________
yaston is offline   Reply With Quote
Old 25th January 2015, 13:37   #6  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
if you really know a lot about programming and are willing to spend some time on avisynth filters
the best solution would be port all filters you are using to gpu platform
that would surely sky rocket the speed
for image processing, you can process multiple pixels simultaneously, you don't have to process the image pixel by pixel
that seems like the exact work for gpu, not cpu (sure cpu could do the work also, but would be a lot slower)
feisty2 is offline   Reply With Quote
Old 25th January 2015, 14:00   #7  |  Link
yaston
Registered User
 
Join Date: Oct 2014
Location: Algeria
Posts: 14
Quote:
Originally Posted by feisty2 View Post
if you really know a lot about programming and are willing to spend some time on avisynth filters
the best solution would be port all filters you are using to gpu platform
that would surely sky rocket the speed
for image processing, you can process multiple pixels simultaneously, you don't have to process the image pixel by pixel
that seems like the exact work for gpu, not cpu (sure cpu could do the work also, but would be a lot slower)
Actually i don't much about this domain, i'm trying to get more knowledge and improve my quality.
__________________
yaston is offline   Reply With Quote
Old 25th January 2015, 19:44   #8  |  Link
Asmodian
Registered User
 
Join Date: Feb 2002
Location: San Jose, California
Posts: 4,406
Those filters are really slow, all you can do is not be surprised because they are really slow.
Asmodian is offline   Reply With Quote
Old 25th January 2015, 20:06   #9  |  Link
yaston
Registered User
 
Join Date: Oct 2014
Location: Algeria
Posts: 14
emmmm feel down
__________________
yaston is offline   Reply With Quote
Old 25th January 2015, 20:43   #10  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,823
I know there's probably a bit of a language barrier, but explaining QTGMC is slow and therefore it'll slow the speed of encoding seems to have necessitated a new thread looking for a different answer, now in a second forum. After being told some filtering is slow yaston decided the answer was incorrect here so I'm not sure he understands the concept of slow filtering slowing encoding speed.

Unfortunately yaston went from here to a new thread without bothering to acknowledge any of the advice given or even reply to it.
How to check CPU usage, post MeGUI log files (which would include full AviSynth scripts), run simultaneous encodes..... all bypassed in preference for repeating the question, then when the magic solution isn't offered, time for a new thread. Bouncing from one question to another in threads and from one thread to another without any logical progression makes it hard to help.

Groucho2004,
yaston's pretty new to Avisynth and he's only had QTGMC working for 10 minutes, hence my instructions for running simultaneous encodes with MeGUI in the thread I linked to rather than introduce a whole new MT can of worms.
Judging from some of the scripts he's posted in other threads I'm not sure if he's just randomly throwing filters at every encode or doesn't understand how to correctly create AVISynth scripts yet, but that thread was abandoned before it became clear.

Last edited by hello_hello; 25th January 2015 at 20:49.
hello_hello is offline   Reply With Quote
Old 27th January 2015, 10:25   #11  |  Link
yaston
Registered User
 
Join Date: Oct 2014
Location: Algeria
Posts: 14
Ok..., here's the full script, i stopped using "QTGMC" now i'm only use "dfttest"




And by the way, i found " Avisynth 2.6 MT " version it might be faster !! do you advise me on it or no?! you know about knowledge...!!
__________________

Last edited by yaston; 27th January 2015 at 10:44.
yaston is offline   Reply With Quote
Old 27th January 2015, 10:58   #12  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by hello_hello View Post
I'm not sure if he's just randomly throwing filters at every encode or doesn't understand how to correctly create AVISynth scripts
These statements are not mutually exclusive which seems confirmed after the last post.
There is some kind of barrier, language and/or technical aptitude, none of the advice in the various threads appears to sink in.

Last edited by Groucho2004; 27th January 2015 at 11:02.
Groucho2004 is offline   Reply With Quote
Old 27th January 2015, 11:01   #13  |  Link
Groucho2004
 
Join Date: Mar 2006
Location: Barcelona
Posts: 5,034
Quote:
Originally Posted by yaston View Post
Ok..., here's the full script, i stopped using "QTGMC" now i'm only use "dfttest"
dfttest() is not exactly a replacement for QTGMC(). One wonders what selection criteria you use for your filtering...
Groucho2004 is offline   Reply With Quote
Old 27th January 2015, 12:09   #14  |  Link
yaston
Registered User
 
Join Date: Oct 2014
Location: Algeria
Posts: 14
Quote:
Originally Posted by Groucho2004 View Post
dfttest() is not exactly a replacement for QTGMC(). One wonders what selection criteria you use for your filtering...
I don't want to use QTGMC() any more..., but dfttest() also makes my encode slower but not like QTGMC().

What do you think about the script? is it right? what's you advice?
__________________
yaston is offline   Reply With Quote
Old 27th January 2015, 12:25   #15  |  Link
feisty2
I'm Siri
 
feisty2's Avatar
 
Join Date: Oct 2012
Location: void
Posts: 2,633
fft3dgpu is a dfttest similar filter, the quality is slightly poorer, but much faster
feisty2 is offline   Reply With Quote
Old 27th January 2015, 12:39   #16  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,823
Quote:
Originally Posted by yaston View Post
Ok..., here's the full script, i stopped using "QTGMC" now i'm only use "dfttest"

And by the way, i found " Avisynth 2.6 MT " version it might be faster !! do you advise me on it or no?! you know about knowledge...!!
Why did you stop using QTGMC? Is the video not interlaced any more or was it for some other reason?

Your script makes no sense to me. You're still using field matching you likely don't need, two denoisers and two sharpeners.

Multithreaded AVISynth may help with some filters but if your CPU is already running at 100% when you encode then it's already at 100%. Have you checked CPU usage at all as I explained you should here?
As I explained in that thread I don't use MT AVISynth because instead of trying to make one encode use more of the available CPU power (which is what multi-threading tries to do), I just run two encodes at a time, or I split an encode into half and encode both halves at the same time.

Maybe someone else can help you with MT AVISynth, but it's not easy to get it working reliably.
hello_hello is offline   Reply With Quote
Old 28th January 2015, 11:28   #17  |  Link
yaston
Registered User
 
Join Date: Oct 2014
Location: Algeria
Posts: 14
QTGMC is so so slow than dfttest...

And by the way the CPU is working "above normal"




You know, i treid to encode an HD sample of 30MB to 12MB it took 35 minute by using "dfttest"
__________________
yaston is offline   Reply With Quote
Old 28th January 2015, 12:28   #18  |  Link
foxyshadis
ангел смерти
 
foxyshadis's Avatar
 
Join Date: Nov 2004
Location: Lost
Posts: 9,558
QTGMC (deinterlacing) doesn't do the same thing as dfttest (denoising) at all, though. It's meaningless to compare their speeds. QTGMC could be compared with yadif and TDeint, while dfttest could be compared with fft3dfilter and fluxsmooth.

If you don't need deinterlacing then you're right in not using it, but it seems like you aren't sure what you need and are just throwing things at it. You might prefer to stick with MeGUI in that case, which pretty reliably decides what filters you need when you don't know how to handle a video.
foxyshadis is offline   Reply With Quote
Old 28th January 2015, 14:02   #19  |  Link
hello_hello
Registered User
 
Join Date: Mar 2011
Posts: 4,823
Quote:
Originally Posted by yaston View Post
QTGMC is so so slow than dfttest...
Do you understand the difference between interlaced and progressive video?
Do you understand you only de-interlace video if it's interlaced?
Do you understand QTGMC is a de-interlacer and dfttest is a noise filter and they're two completely different things?

Quote:
Originally Posted by yaston View Post
And by the way the CPU is working "above normal"
No, x264's priority is set above normal. If more than one process is needing CPU time, the process with the higher priority is given preference. It has nothing to do with how much a process is utilising your CPU.
Normally you'd probably set x264 to "low" so you can still use the computer yourself for other things while you're encoding without everything being very slow.

From your screenshot I can see:

x264 70% CPU usage
Other processes 8% usage
"Unused" 22%

So CPU usage could be better, but it's not ridiculously low.

Quote:
Originally Posted by yaston View Post
You know, i treid to encode an HD sample of 30MB to 12MB it took 35 minute by using "dfttest"
And it could take much less time, or much more time, depending on your x264 encoder settings and other filters in the script etc.

Last edited by hello_hello; 28th January 2015 at 15:11.
hello_hello is offline   Reply With Quote
Old 28th January 2015, 14:24   #20  |  Link
yaston
Registered User
 
Join Date: Oct 2014
Location: Algeria
Posts: 14
Ok, i understand the difference between interlaced and progressive video, and about the sittings i treid with the default and it was the same.

Thank you so much guys for your help and advices i appreciate it.
__________________
yaston 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 14:38.


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