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 11th October 2005, 14:49   #201  |  Link
aberforthsgoat
Registered User
 
Join Date: Oct 2004
Location: Zürich, Switzerland
Posts: 29
Quote:
Originally Posted by acrespo
If you need deinterlace your video, put FFT3DGPU after deinterlacer. Also, try TDeint instead TomsMoComp.
FFT3DGPU don't have plane=2. plane=1 denoise all chroma planes.
Oh - OK! I carried that over from the fft3dfilter, thinking it would work here. Back to R-ing TFM ...

And I also just discovered that simply not re-weaving at the end takes care of my combing problem. GSpot say I've upped the ante to 50 FPS, which doesn't seem like a bad thing anyway, aprticularly since this is fast moving sports stuff. (Or am I making a fool of myself again? Sigh.)

Mike
aberforthsgoat is offline   Reply With Quote
Old 11th October 2005, 20:24   #202  |  Link
tsp
Registered User
 
tsp's Avatar
 
Join Date: Aug 2004
Location: Denmark
Posts: 807
aberforthsgoat: You will only have half the vertical resolution(and double framerate) if you don't weave the result.
__________________
Get my avisynth filters @ http://www.avisynth.org/tsp/
tsp is offline   Reply With Quote
Old 21st October 2005, 15:42   #203  |  Link
Ferux
Registered User
 
Ferux's Avatar
 
Join Date: Jul 2005
Location: Leefdaal, Belgium
Posts: 39
Hi,

Thank you for this great filter, the speed is x3 here (AMD Athlon 64 3500+ and Radeon 9800). The only problem for me is that I can't set the system in standby when using your filter. After resuming I receive the following message:

Unexpected error encountered

File:
Line: 387
Error Code: D3DERR_DEVICELOST (0x88760868)
Calling: ResetDevice
Do you want to debug the application?


When I hit 'No':

fft3dGPU

Direct3D device lost. Please restart the application




I use Avisynth 2.5.6 and VirtualDub 1.6.11.
Ferux is offline   Reply With Quote
Old 22nd October 2005, 00:46   #204  |  Link
tsp
Registered User
 
tsp's Avatar
 
Join Date: Aug 2004
Location: Denmark
Posts: 807
Do you have any other program running that are using directx 3D? The filter should handle resuming from standby without that error. It only happends if fft3dGPU can't reinitialize the graphics card. I did a resume from suspend with fft3dGPU and vdub 1.6.11 and what worked. You are using the latest version of fft3dgpu right?
__________________
Get my avisynth filters @ http://www.avisynth.org/tsp/
tsp is offline   Reply With Quote
Old 22nd October 2005, 01:54   #205  |  Link
Ferux
Registered User
 
Ferux's Avatar
 
Join Date: Jul 2005
Location: Leefdaal, Belgium
Posts: 39
I think that my Windows logon screen (which appears when resuming from standby) uses directx, because I have the same problem when switching users.
Ferux is offline   Reply With Quote
Old 23rd October 2005, 12:19   #206  |  Link
Leak
ffdshow/AviSynth wrangler
 
Leak's Avatar
 
Join Date: Feb 2003
Location: Austria
Posts: 2,441
Quote:
Originally Posted by Ferux
I think that my Windows logon screen (which appears when resuming from standby) uses directx, because I have the same problem when switching users.
Ummm... making your system go into standby mode will completely power off the graphics card, which means you need to completely re-initialize both the driver and the part of the application that was using the card, so without tsp handling this gracefully in fft3dGPU it simply can't work - which is a pity, of course, if you happen to try to sleep next to a machine chugging away on a long encoding job; nothing like sending it into standby mode until breakfast...

@tsp: where does the need to restart the application come from? Shouldn't it be enough to just re-init DirectX and upload all the needed data again, which might include re-processing a few earlier frames, if their data is needed for the current frame?

np: Stockfinster - Verge (All Becomes Music)
Leak is offline   Reply With Quote
Old 23rd October 2005, 14:42   #207  |  Link
tsp
Registered User
 
tsp's Avatar
 
Join Date: Aug 2004
Location: Denmark
Posts: 807
leak: I do reinitialize DirectX. That error only occurs if the reinitializing fails for some reason. On my machine fft3dGPU handles a suspend/standby/hibernate without problem. In this case the error occurs because the directx device can't be reset. se this link: http://msdn.microsoft.com/library/de...ativeLevel.asp And fft3dGPU is not a fullscreen application so it doesn't need focus to work. Currently in fft3dGPU there is a 120 sec timeout before the error is reported. So maybe I set this value to low in this case?

Ferux could you post the script you use.
__________________
Get my avisynth filters @ http://www.avisynth.org/tsp/

Last edited by tsp; 23rd October 2005 at 16:04.
tsp is offline   Reply With Quote
Old 23rd October 2005, 21:26   #208  |  Link
Leak
ffdshow/AviSynth wrangler
 
Leak's Avatar
 
Join Date: Feb 2003
Location: Austria
Posts: 2,441
Quote:
Originally Posted by tsp
Currently in fft3dGPU there is a 120 sec timeout before the error is reported. So maybe I set this value to low in this case?
I'm just going out on a limb here, but could it be that in his case the timeout triggers because it starts right before/during going into standby (as the applications aren't stopped, but the drivers have to be), so that if you wake the machine after more than 2 minutes it will have already timed out?

If he gets the message right after waking his machine instead of about 2 minutes later that's probably the case...

(All speculation, of course... )

np: Stockfinster - Last Report (All Becomes Music)
Leak is offline   Reply With Quote
Old 24th October 2005, 23:30   #209  |  Link
Ferux
Registered User
 
Ferux's Avatar
 
Join Date: Jul 2005
Location: Leefdaal, Belgium
Posts: 39
Quote:
Originally Posted by tsp
Ferux could you post the script you use.
Quote:
Originally Posted by AVISynth
AVISource("E:\Video's in productie\Prullebak\4de video ffvfw quant1.avi",pixel_type="yuy2")

Trim(0,6303) ++ Trim(6422,12260) ++ Trim(12295,19201) ++ Trim(19218,21088) ++ Trim(21104,21508) ++ Trim(21573,23771) ++ Trim(23799,25292) ++ Trim(25327,29465) ++ Trim(29475,31139) ++ Trim(31143,31348) ++ Trim(31509,32302) ++ Trim(32657,33452) ++ Trim(33496,45127) ++ Trim(45149,51298) ++ Trim(51489,52859) ++ Trim(52911,58559) ++ Trim(58659,67096) ++ Trim(67113,73240) ++ Trim(73314,75169) ++ Trim(75192,81295) ++ Trim(81348,97794) ++ Trim(97905,108199) ++ Trim(108242,115934) ++ Trim(115980,119239) ++ Trim(119260,120939) ++ Trim(120986,122388) ++ Trim(122526,126301) ++ Trim(126415,141354) ++ Trim(141364,153625) ++ Trim(153690,155834) ++ Trim(155907,156938) ++ Trim(156961,174748) ++ Trim(174873,180006) ++ Trim(180029,200628) ++ Trim(200675,206831) ++ Trim(206854,207221) ++ Trim(207239,207567) ++ Trim(207810,211420) ++ Trim(211528,211639) ++ Trim(211670,219630)

AssumeTFF()
SeparateFields()
AssumeFieldBased()
SmoothDeinterlace(tff=true, doublerate=true)

ConvertToYV12()
FFT3DGPU(plane=0,bt=3,sigma=2.0,bw=48,bh=48,mode=1)
FFT3DGPU(plane=1,bt=3,sigma=2.0,bw=48,bh=48,mode=1)

Crop(12,0,-12,-12)

FadeIO2(150)

Subtitle("Video 4",first_frame=0,last_frame=350,align=5,size=60,text_color=$FFFFFF,y=225)
Subtitle("31-01-1991",first_frame=0,last_frame=350,align=5,size=60,text_color=$FFFFFF,y=315)
Subtitle("tot",first_frame=0,last_frame=350,align=5,size=60,text_color=$FFFFFF,y=370)
Subtitle("17-02-1992",first_frame=0,last_frame=350,align=5,size=60,text_color=$FFFFFF,y=425)
Subtitle("SPEELDUUR 2:24", first_frame=0,last_frame=275,align=5,size=14,text_color=$FFFFFF,y=495)
Subtitle("ZET DEBLOCKING OP IN DE DECODER", first_frame=0,last_frame=275,align=5,size=14,text_color=$FFFFFF,y=510)
Subtitle("CAPTURE DOOR VIRTUALDUB & DIVX QUANTIZER 93%", first_frame=0,last_frame=275,align=5,size=14,text_color=$FFFFFF,y=525)
Subtitle("POSTPROCESSING DOOR AVISYNTH: TRIM, SMOOTH DEINTERLACE, FFT3DGPU, CROP, FADE EN TITELS", first_frame=0,last_frame=275,align=5,size=14,text_color=$FFFFFF,y=540)
Subtitle("VIDEO CODERING: XVID (MPEG4-ASP) 2PASS 3300KBPS, GECODEERD IN OKTOBER 2005", first_frame=0,last_frame=275,align=5,size=14,text_color=$FFFFFF,y=555)

After the 'smooth deinterlacer', the video has 50 fps. This took 24h for a 2:24 homevideo. If I process this with FFT3DFILTER, it takes 3 days. So I open this script in Virtual Dub 1.6.11, check 'fast recompress' and save it to FFVFW Quantizer 1 (latest version). (and later on, I encode it to XviD in 2 passes).

My system is:
Athlon 64 3500+
MSI Neo2 Platinum
1024MB Ram
Radeon 9800 Pro

The OS is Windows XP SP2 (not an x64 edition)

I noticed that the problem also occurs when I touch the PC when the screensaver is on and when I switch to another WinXP-user.

Quote:
Originally Posted by tsp
Currently in fft3dGPU there is a 120 sec timeout before the error is reported. So maybe I set this value to low in this case?
When I switch to another WinXP-user, it comes just after loging on. And that's much faster than 120 sec.


Thanks


Quote:
Originally Posted by Leak
nothing like sending it into standby mode until breakfast...
²!!!

Last edited by Ferux; 24th October 2005 at 23:42.
Ferux is offline   Reply With Quote
Old 25th October 2005, 08:00   #210  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
A little sidenote: you don't need SeparateFields() and AssumeFieldBased() in your script.
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 25th October 2005, 12:16   #211  |  Link
Ferux
Registered User
 
Ferux's Avatar
 
Join Date: Jul 2005
Location: Leefdaal, Belgium
Posts: 39
Quote:
Originally Posted by Boulder
A little sidenote: you don't need SeparateFields() and AssumeFieldBased() in your script.
I know, but without those 3 lines SmoothDeinterlace doesn't work! I have that problem since I use SmoothDeinterlace in AVISynth 2.56 instead of 2.08. But whatever, this makes no difference for FFT3DGPU.
Ferux is offline   Reply With Quote
Old 25th October 2005, 13:23   #212  |  Link
Boulder
Pig on the wing
 
Boulder's Avatar
 
Join Date: Mar 2002
Location: Finland
Posts: 5,718
[OT]
How about trying some other smart bobber such as LeakKernelBob (in LeakKernelDeint.dll) or TDeint(mode=1)? Seems weird that you need to separate the fields because in my logic the result won't be the same as you already have a 50fps stream before bobbing. Maybe it simply resizes the fields to full height?

LeakKernelBob should be quite a bit faster as well
[/OT]
__________________
And if the band you're in starts playing different tunes
I'll see you on the dark side of the Moon...
Boulder is offline   Reply With Quote
Old 25th October 2005, 23:21   #213  |  Link
Ferux
Registered User
 
Ferux's Avatar
 
Join Date: Jul 2005
Location: Leefdaal, Belgium
Posts: 39
[OFFTOPIC]

Quote:
Originally Posted by Boulder
[OT]
How about trying some other smart bobber such as LeakKernelBob (in LeakKernelDeint.dll) or TDeint(mode=1)? Seems weird that you need to separate the fields because in my logic the result won't be the same as you already have a 50fps stream before bobbing. Maybe it simply resizes the fields to full height?

LeakKernelBob should be quite a bit faster as well
[/OT]
I have tested a lot of deinterlacers for myself, and I found that SmoothDeinterlace was the best. So I used that deinterlacer already in Virtualdub and AVISynth 2.08. Last week I changed to AVS 2.56 and my previous script didn't work anymore (of course, I downloaded the right plugin for this new version). I searched a bit and found that the results after doing this:
Quote:
Originally Posted by AVISynth 2.56
AssumeTFF()
SeparateFields()
AssumeFieldBased()
SmoothDeinterlace(tff=true, doublerate=true)
has exactly the same result as this:
Quote:
Originally Posted by AVISynth 2.08
SmoothDeinterlace(tff=true, doublerate=true)
Why? I don't know (and I don't care), but it works.
[/OFFTOPIC]

Last edited by Ferux; 25th October 2005 at 23:28.
Ferux is offline   Reply With Quote
Old 26th October 2005, 00:05   #214  |  Link
Wilbert
Moderator
 
Join Date: Nov 2001
Location: Netherlands
Posts: 6,364
Try the following version of SmoothDeinterlacer. It should work without any problems.

Attachment needs to be approved

Ok, here: http://www.geocities.com/wilbertdijk...erlacer_25.zip

Last edited by Wilbert; 26th October 2005 at 20:32.
Wilbert is offline   Reply With Quote
Old 26th October 2005, 03:06   #215  |  Link
Revgen
Registered User
 
Join Date: Sep 2004
Location: Near LA, California, USA
Posts: 1,545
To Nvidia users with dual-core systems:


The new 81.85 dual-core optimized drivers slow down FFT3DGPU.

I encoded a Huffyuv file and got about 10FPS with the older non-dualcore 81.26 driver. I got about 8fps with the 81.85's. Thats about a 20% decrease in performance. Which is about the same performance decrease that running FFT3DGPU using the MT filter does.

It does, however, improve performance in games that are CPU bound. So make sure to change your driver if you plan to encode.
Revgen is offline   Reply With Quote
Old 26th October 2005, 19:44   #216  |  Link
tsp
Registered User
 
tsp's Avatar
 
Join Date: Aug 2004
Location: Denmark
Posts: 807
Ferux: Could you try this version. I disabled the timeout so it might hang instead of reporting an error.
__________________
Get my avisynth filters @ http://www.avisynth.org/tsp/
tsp is offline   Reply With Quote
Old 28th October 2005, 18:42   #217  |  Link
Ferux
Registered User
 
Ferux's Avatar
 
Join Date: Jul 2005
Location: Leefdaal, Belgium
Posts: 39
Quote:
Originally Posted by tsp
Ferux: Could you try this version. I disabled the timeout so it might hang instead of reporting an error.
It doesn't work, but maybe something went wrong when uploading the file? This file is 390KB, the original FFT3DGPU is 1,02MB.




Quote:
Originally Posted by Wilbert
Try the following version of SmoothDeinterlacer. It should work without any problems.
It works, thanks!


Sorry for not answering more quickly, but I was already encoding for 3 days. Today it just finished..
Ferux is offline   Reply With Quote
Old 28th October 2005, 20:23   #218  |  Link
tsp
Registered User
 
tsp's Avatar
 
Join Date: Aug 2004
Location: Denmark
Posts: 807
It doesn't contain the source or the directx 9.0b version. Did it refuse to start or just showed the same error?
__________________
Get my avisynth filters @ http://www.avisynth.org/tsp/
tsp is offline   Reply With Quote
Old 30th October 2005, 03:25   #219  |  Link
acrespo
Brazilian Anime Ripper
 
Join Date: Nov 2001
Location: Brazil
Posts: 237
Can be implement BT=-1 as described in fft3dfilter documentation:

Sharpening

At sharpening stage (after denoising) the plugin amplifies high spectrum (spatial, 2D) frequencies .
There is also sharpen-only mode without denoising (bt=-1).
Since version 1.1, some special limited sharpening method is used :

* the weakest frequencies (with small amplitudes) are not amplifyed to prevent noise increasing;
* the strongest frequencies (with large amplitudes) are not amplifyed to prevent oversharping and haloing.

The sharpening strength is maximal for frequencies with middle-range amplitudes. Of course, you can control both these margins and general sharpening strength.

Since v.1.7, Gaussian High Pass Filter with variable cutoff frequency is used for sharpening.
----------

I need a very fast sharpening plugin but all filters run very very low speed in my computer.
__________________
Capture cards:
Compro VideoMate Gold+ (Philips SAA7134 based) (not active)
Hauppauge PVR 150MCE (not active)
ATI TV Wonder Elite (active)
acrespo is offline   Reply With Quote
Old 30th October 2005, 10:18   #220  |  Link
Ferux
Registered User
 
Ferux's Avatar
 
Join Date: Jul 2005
Location: Leefdaal, Belgium
Posts: 39
Quote:
Originally Posted by tsp
It doesn't contain the source or the directx 9.0b version. Did it refuse to start or just showed the same error?
It refused to start:
"This application can't be started because d3dx9_2 can't be found."

The AVS error message:
"Script error: there is no function named "FFT3DGPU"
Ferux 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 10:22.


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