Log in

View Full Version : upscaling standard dvd movies to 1080p using ffdshow and your htpc


Pages : [1] 2 3 4

Jeremy Duncan
9th September 2006, 07:44
I Downloaded the sw kit.
I unzipped the sw kit.

I first installed Avisynth. With the Avisynth in the sw kit you don't need to replace the avisynth.dll as shown in the video.

Then I install ffdshow.

During the install of ffdshow there is a page that's called "Select Additional tasks", I check these boxes besides what's already checked:
mpeg2: libmpeg2
vc1: wmv9
raw video

Then after ffdshow is installed there is a final page that says "Run ffdshow video decoder configuration", so I check that box then press Finish.

Now ffdshow video decoder configuration pops up, here is how I set it up.

From the codecs tab I scroll down to mpeg2 and highlight it and check the "dvd decoding" box, then I click apply.

From the Decoder Options tab I uncheck the "Detect soft telecine and average frame durations" box, then I click apply.

Then I scroll down the check boxes until I see the Subtitles check box, and I click it with my mouse and hold down the mouse button and drag the subtitles check box to the top of the list, so it's right below Decoder Options.
Then I go through every list in subtitles and make sure every box is unchecked, so the subtitles checkbox has all the boxes unchecked, the titles sub list has all the boxes unchecked, then I press apply.

Then I drag the avisynth check box so it's right below the subtitles check box, and I check the avisynth checkbox and uncheck these boxes in the avisynth tab:
"add ffdshow video source"
"yuy2"
"rgb24"
"rgb32"
Still in the avisynth tab, I check the Buffers back/ahead box and leave the values at 10 10.

Then I check and drag the resize & aspect check box so it's below the avisynth check box, and this is how I setup the ffdshow resize & aspect check box:
I check the Multiply by circle and set it to the value of 1.000
I check the "No Aspect ratio correction" circle, then I click Apply.

Then I scroll down to the Output tab and uncheck these boxes:
"yuy2"
"yvyu"
"uyvy"
"rgb32"
"rgb24"
"rgb16"
"rgb15"
"High quality yv12 to rgb conversion"
"select closest matching colorspace"

I leave the YV12 check box checked, then I press Apply and OK to close the ffdshow video decoder configuration.

Third, I install Matroskasplitter.

Fourth I unzip mpc-hc and put it on my desktop.

Fifth, in Windows 7, I open windsfiltertweaker and go to the Preferred decoders tab and the 32 bit decoders to use ffdshow, specifically these decoders:
h.264
xvid
divx
mp4v
vc-1
mpeg-2
Then I click Apply and Close.
Then I check the tweaks tab and disable the "Microsoft dtv-dvd video decoder", then I click apply, close and then exit.

Sixth, I unzip the plugins folder and go to this folder C:\Windows\SysWOW64 to put the fftw3.dll.

Then I drag and drop the other dll’s into that folder and accept when it asks if I want to modify those dll's into the C:\Program Files (x86)\AviSynth 2.5\plugins folder.

You can tell it's the right folder because Directshowsource.dll is in that folder.

For non-64 bit windows you would put the fftw3.dll into the C:\WINDOWS\system32 folder, and the other plugins go into the C:\Program Files\AviSynth 2.5\plugins folder where directshowsource.dll is.

Seventh, I open media player classic home cinema player, and go to the "View, Options, Output" tab and check vmr9 windowed.
Then I go to the "view, Options, External filters tab" and check the Add filter box, and add "ffdshow video decoder", that set ffdshow video decoder to "Prefer", Click Apply and Ok to close the options box.
Then I go to "view, options, internal filter" and check every box.

Reboot and then put a movie in the computer and then open the movie with mpc-hc using the file tab and go to the dvd drive to open the movie.

___________________________________________


video guide at youtube link (http://www.youtube.com/user/foxhoundfan).
sw kit. Updated May 8, 2011. (http://www.mediafire.com/?lpm6nsnvp2j1mh8)


overview
____________________________________________
Step 1.) install software: avisynth before ffdshow.
Step 2.) configure ffdshow digital audio
Step 2.) configure ffdshow analog audio
Step 3.) configure ffdshow video
Step 4.) configure media player classic
Step 5.) install avisynth plugins
Step 6.) Reboot, twice.

pictures
____________________________________________
________ FFDshow configuration options ________
- for vista, use aero. for quality.

FFDshow configuration options.


________ upscaling ffdshow configuration ________

Codecs tab
Set Mpeg2 to Libmpeg2, and check "DVD decoding".
Set Avisynth to Avisynth, Raw video to All supported

Decoder options tab
Uncheck "Detect soft telecine and average frame durations"

Subtitles tab, Unchecked
Uncheck "Decode closed captions"
Uncheck "Accept embedded subs"
Uncheck "Accept SSA, ASS, ASS2 Subtitle (experimental)
Vobsub subpage, uncheck Vobsub Enable.

Avisynth tab checked
YV12 checked,
Add FFdshow Video source Unchecked,
3:2 Pulldown box: Ignore Pulldown checked,
check Buffer back/Ahead: 10, 10

setmtmode(5,0)
SetMemoryMax(512)
video=ffdshow_source().changefps(ffdshow_source(), linear=true)
A=video
setmtmode(2)
SetMemoryMax(712)
B=a.Spresso_JD()
C=a.SeeSaw_JD(B).limitedsharpenfaster(strength = 11)
return C
GetMTMode(false) > 0 ? distributor() : last

Resize & aspect tab checked
Process whole image checked
Specify horizontal and vertical Resize: 1920, 1080 (or your monitors resolution)
Process Pixel aspect ratio internally checked
No aspect ratio correction checked
spline
Luma Sharpen: 0.00
Luma Guassian Blur 0.50 (On small monitors like laptops it's best not to use this. Set it to 0.00)
Accurate rounding checked

Output tab
yv12 checked


________ Media Player Classic ________

Click the View button. Check only the top three in the drop down list.
Click options.

Click the output tab, and set Directshow output to vrm9 windowed.
Directshow Audio: Select Reclock Audio Renderer

Click the External Filters Tab.
Click the Add Filter Button.
Double click the filters you want. You'll need;
FFdshow Audio decoder
FFdshow video decoder

________ Potplayer ________

Run the potplayer installer.
Open Potplayer and right click the screen,

Set the renderer to use madvr:
Video, Video Renderer, click "Madshi Video Renderer"

Set FFDshow to be the video decoder:
- Filters, Advanced Filter Settings, video decoder, filter management, press "scan", press "Ok".
Now in "Video decoder" press the drop down menu and set all the filters to use ffdshow video decoder, press "Ok".

To open a DVD, go to:
Right click screen, "Open", "Open Directory", "Computer", highlight the DVD drive, click Ok.

________ FFdshow Audio Decoder: Analog ________

Codecs tab

- Uncompressed Tab
Set it to "32 bit integer"

Mixer tab
- checked
I use 5.1 speakers so I set the number of speakers to 5, and check the Lfe box.

Output tab,
- Select 32 bit integer.

________ FFdshow Audio Decoder: Bitstream HD Audio in Windows 7 ________

Install Haali Media Splitter

Step 1

Codecs tab

- Uncompressed Tab
Set it to "All Supported"

Output tab,
- Passthrough boxes: ac3, dts, dolby digital plus, dts hd, dolby truehd are checked.
- Connect as PCM first is unchecked
- Supported output formats: check only 16bit, 24bit.
- Check direct to file

Step 2

Put the files from the bat folder into the system32 folder. To register the bat files you need to get permission to, here is how to do that.
- Using MPCVideoDec.ax as a example. Right click and select Properties.
Go to Security, Advanced, Owner tab, Edit, Hightlight Administerators, click Apply.
From the MPCVideoDec.ax properties, security tab, click Edit. From the Group or user names list, highlight each one and make sure it has Full Control checked.
Click ok and close the properties tab.
- Do this for these three files: MPCVideoDec.ax, MpegSplitter.ax, regsvr32.exe.
- Then right click the MPCVideoDec bat file and run as Administrator. It should successfully register the .ax file.

- For 64 bit windows. Put the MPCVideoDec.ax, MpegSplitter.ax into the system32 folder and the MPCVideoDec bat, MpegSplitter bat files into the syswow64 folder.
Change the permissions for the MPCVideoDec.ax, MpegSplitter.ax, regsvr32.exe as usual.

Step 3

- Run the reg file in the My Documents folder.

Step 4

- Run the Win7DSFilterTweaker.
Under the "Preferred Directshow decoding filters in Windows 7" tab, set H.264, and VC1 to MPCVideoDec.
The "Media Foundation" tab is left at default.
Under the "More Tweaks for Windows 7", check "Disable Microsoft DTV-DVD Audio Decoder", "Disable Media Foundation".



________ Software ________

Potplayer (http://www.videohelp.com/tools/PotPlayer)
Win7DSFilterTweaker (http://fileforum.betanews.com/download/Win7DSFilterTweaker/1262732488/1)
Haali (http://haali.su/mkv/)
FFDshow. Updated May 8, 2011. (http://www.mediafire.com/?6u134g61lu2bp95)
media player classic home cinema. updated March 13, 2011 (http://mpc-hc.sourceforge.net/download-media-player-classic-hc.html)
Avisynth: custom build I made (http://www.mediafire.com/?330b17h61ra2v49)

________ Optional Software ________

J River (http://www.jrmediacenter.com/download.html)
spdifer (http://ac3filter.net/projects/spdifer)
Reclock (http://www.mediafire.com/?v4qitymgwmf)

Test disks for comparison. (http://forum.doom9.org/showthread.php?t=140747)

________ Plugins ________

plugins: link. Updated May 8, 2011. (http://www.mediafire.com/?kh9f8q1ab5t18bp)

\\\\\ List of the nessessary Avisynth plugins to go in the plugin folder. 9 in total.


\\\\\ fftw3.dll goes into the System32 folder.
If your using a 64 bit version of windows, put the fftw3.dll into the SysWOW64 folder, instead of the system32 folder.

C:\Windows\System32
C:\Windows\Syswow64

\\\\\ I use the ati 4670 and the 11.2 drivers.
I use hdmi to my 1080p tv.
The pixel format I use is full rgb: 4:4:4
I use a intel E6600 cpu, 2GB ram, Sata HDD, Sound card


Pictures
____________________________________________


Spdifer (For DTS and AC3)
http://thumbnails6.imagebam.com/4744/38125d47437764.gif (http://www.imagebam.com/image/38125d47437764)

profiles
http://thumbnails8.imagebam.com/1750/c9496317492022.gif (http://www.imagebam.com/image/c9496317492022)

ffdshow
http://thumbnails30.imagebam.com/12348/2d51ce123470804.jpg (http://www.imagebam.com/image/2d51ce123470804)

media player classic
http://thumbnails23.imagebam.com/12348/0c7962123470811.jpg (http://www.imagebam.com/image/0c7962123470811)

avisynth plugins folder
http://thumbnails41.imagebam.com/12348/eb479e123470795.jpg (http://www.imagebam.com/image/eb479e123470795)


link to a different guide that shows you how to setup profiles (http://www.homecinema-hd.com/ffdshow-video-profiles_en.html)

________________________

See this link for Frame Doubling, or Frame Interpolation. (http://www.avsforum.com/avs-vb/showthread.php?p=20410401#post20410401)

Jeremy Duncan
9th September 2006, 07:50
Step 1.) Install the SW Ilinked to.

Step 2.) Make a text file using MS Notepad, and copy and paste the code below into it. Then change the file extension from .txt to .avs.

Step 3.) Set Media Player Classic to use ffdshow raw video filter. Options ->External filters->Add filters->ffdshow raw video filter
You may not need step 3, if your source has two different pictures of the same thing but different quality. But I use ffdshow here to make one picture different than the other, for comparison purposes.

Step 4.) Open the video in media player classic. Go to a frame, pause, then from file, choose 'save image' and it takes a snapshot of a frame. Do this three times.
The first two pictures are of the same frame, and call them 1 and 2 in the order you took them.
Then open the other video or change ffdshow and then since this video has different quality then the first two, it can be compared. Go to the frame you took for the first two snapshots, then pause, then save a screen snapshot and call it 3.
Save the images as bmp.

step 5.) Now it gets a bit complicated. Make 3 folders, one for each of the three pictures you took.

Copy picture 1 and paste it twice in folder 1 - in this folder you will name them 1 and 2. So picture one is called 1, and picture 2 is called 2.
Do this for folder 2, but this time copy picture 2.
Then do this for folder three, but this time copy and paste picture 3.

So if you did it right, each of the three folders has two pictures: 1, 2.

step 6.) Now assuming you have java on your PC, you open bmptoavi. You use bmptoavi to join the two pictures and make them a avi. You then open the named avi's using virtualdub via the script below. Doing this shows you the differences in the pictures.

Making the first avi - Source.avi

Open bmpseq.jar
Go to Action, start. Go to folder 1, and choose 1.
Go to Action, end. Go to folder 1, and choose 2.
Go to Action, frame rate, and set it to 2, so you type in '2'.
Go to Action, save, and name the file "source.avi", no quotes, type the avi extension or it will create a junk file.
Go to Action, run. It will make the source.avi to yor desktop.

Making the second avi - picture 1.avi

Open bmpseq.jar
Go to Action, start. Go to folder 2, and choose 1.
Go to Action, end. Go to folder 2, and choose 2.
Go to Action, frame rate, and set it to 2, so you type in '2'.
Go to Action, save, and name the file "picture 1.avi", no quotes, type the avi extension or it will create a junk file.
Go to Action, run. It will make the picture 1.avi to yor desktop.

Making the third avi - picture 1.avi

Open bmpseq.jar
Go to Action, start. Go to folder 3, and choose 1.
Go to Action, end. Go to folder 3, and choose 2.
Go to Action, frame rate, and set it to 2, so you type in '2'.
Go to Action, save, and name the file "picture 2.avi", no quotes, type the avi extension or it will create a junk file.
Go to Action, run. It will make the picture 2.avi to yor desktop.

Step 7.) Now I assume you have a avs file that points to the location you avi files are on your desktop. It will be a different location than C:\Users\Jeremy\Desktop\. Right click the files on your desktop to get their location and change the location in the script.

Open virtualdub, Video->check "Direct Stream Copy", and Then from file choose Open, go the the avs script and open that and fingers crossed it opens the file so you can see the differences between the two pictrues.
Don't open the avs file without first checking Direct stream Copy.
___________________________________

The script that actually shows the changes.


clip1=aviSource("C:\Users\Jeremy\Desktop\Source.avi")
clip2=AVISource("C:\Users\Jeremy\Desktop\Picture 1.avi").Subtitle("No luma mask")
clip3=AVISource("C:\Users\Jeremy\Desktop\Picture 2.avi").Subtitle("Luma mask")
clip4=Blankclip(clip1)
# --- special purpose clips below, for comparison ---
clip5 = SUBTRACT(clip1, clip2).LEVELS(107,1,149,0,255)
clip6 = SUBTRACT(clip1, clip3).LEVELS(107,1,149,0,255)
clip7 = SUBTRACT(clip2, clip3).LEVELS(107,1,149,0,255)

desc_clip1 = "Source"
desc_clip2 = "Picture 1"
desc_clip3 = "Picture 2"
desc_clip4 = "Difference between clip 2 and 3"
desc_clip5 = "Difference Source - Picture 1"
desc_clip6 = "Difference Source - Picture 2"
desc_clip7 = "Difference Source - Difference between clip 2 and 3"

# The two lines below will usually call clips 1-2-3-4, but 1-5-6-7 may be inserted
# to see [amplified] mathematical difference between clips
# To put it another way, these are the four clips we want to display
vertclip1 = STACKVERTICAL(clip1.SUBTITLE(desc_clip1), clip5.SUBTITLE(desc_clip5))
vertclip2 = STACKVERTICAL(clip6.SUBTITLE(desc_clip6), clip7.SUBTITLE(desc_clip7))

STACKHORIZONTAL(vertclip1,vertclip2)



avisynth (http://sourceforge.net/projects/avisynth2/)
virtualdub (http://virtualdub.sourceforge.net/)
bmptoavi (http://sourceforge.net/projects/bmpseq/)
media player classic (http://sourceforge.net/projects/guliverkli2/)
FFDshow (http://ffdshow-tryout.sourceforge.net/)
haali media splitter (http://haali.su/mkv/MatroskaSplitter.exe)

Ok. There you go.

http://thumbnails33.imagebam.com/10807/70453c108067662.jpg (http://www.imagebam.com/image/70453c108067662)

In this image the source is left as it was taken by MPC, Different Source -Picture 1 is processed and remains totally grey, meaning there is no difference between different source - picture 1 and the Source.
different source - Picture 2 shows a image and this is where it is different from the source.
Different source - Difference between clips 2 and 3 shows the difference between different source - picture 1, and different source - picture 2.


:helpful:

midelic
9th September 2006, 22:51
@Jeremy
Can you post the settings for "Levels" in FFdshow?I now that it depends on the source,but it's good for information.
I've seen them somewhere in your last thread.

toby77jo
13th September 2006, 09:47
Quote
Here's a speed tweak that might help.
It's meant for dual core cpu's when you use MT in FFdshow Avisynth..
Each time a movie is played you need to set it.
- CTRL-ALT-DEL to the Task Manager, Under the Processes tab, right click the .exe file for your video player (example: mplayerc.exe), and go to Set Affinity, Uncheck CPU 1.

Here's where I got the info. Thanks arfster.
Link
/Quote

For me it does not make sense, by removing the affinity of 1 core out of 2, you force the media player to only utilize 1 of the cores, MT is supposed to work on both cores? Please explain why this is a speed tweak for dual cores?

arfster
13th September 2006, 15:15
The reason it works is because ffdshow is biased towards one core. Even when you force affinity to core 0, it'll still end up with half on core 1. For example, I often end up with 20/90 core balance, but with the affinity tweak it's 60/50 or so.

It sometimes causes problems with large avisynth scripts though when you're near maxxed though, so it needs trial and error.

check
13th September 2006, 15:24
why are you linking to a 2 year old ffdshow?

Jeremy Duncan
14th September 2006, 00:22
How to encode blu ray to mpeg2.

First.) rip the blu ray to the pc. I use anydvd and in the anydvd settings I check get rid of trailers and only the main movie is ripped as a result.

Second.) open the tsmuxer program and add the m2ts file from the blu ray you ripped.
It's in the bdmv\stream folder where you ripped the blu ray too.
You only need the 00000.mt2s file in tsmuxer.

it will list different file types: 1 or more audio, 1 or more pgs (subtitle), and 1 video.
You only want one language because of how the file is read by powerdvd ultra.
If you choose more than one language you need to use media player classic to access the languages, powerdvd ultra will only have 1 language available.

Also subtitles are not available. They are in the pgs but there is no way I know of to get them to be a option in mpc or powerdvd ultra.

So you added the 00000.mt2s file and got a list of audio options. lets say you just want one language.

Third.) Check the ts option in the output tab.
Check where to save the ts. Some people say to change the profile but I don't and haven't.

Fourth.) Press the start muxing tab and it will make the movie into a ts file you can play with powerdvd or media player classic.
In media player classic you need to go to the options and make sure the internal filters include ac3. i just checked every internal filter option.

Fifth.) Steps 1-4 were for mpeg2. For vc1 the procedure is more tricky. I am working on a simple solution.

Notes.)
- There is no quality loss, no need to fiddle with cropping.

- The mpc says the dts is 1000 or so kb, but powerdvd says the audio is ac3 kb level. So mpc seems to have the hd audio whereas powerdvd doesn't

- To open the ts with mpc you need to select the ts file from the file tab.

Software used.)

tsmuxer (http://www.videohelp.com/download/tsMuxeR_1.8.35b.zip)
anydvd hd (http://www.slysoft.com/en/anydvdhd.html)
mpc (http://downloads.sourceforge.net/guliverkli2/mplayerc_20081210.zip?modtime=1229004652&big_mirror=0)
________

Blu ray vc1 files.
Steps 1 and 2 are the same as before. This guide begins at step 3.

Step 3.) Demux the audio and video.

Step 4.) Install mkvtoolnix-unicode-2.6.0-setup.
Open the demuxed vc1 file that you made with tsmuxer, and add the audio you demuxed from tsmuxer.
Click start muxing, and it will make the mkv in the location you specified.

mkvtoolnix (http://www.videohelp.com/download/mkvtoolnix-unicode-2.6.0-setup.exe)

Notes.)
A benefit in encoding the vc1 this way is it doesn't use pulldown even though you use a 60hz monitor.
I tested this with mpc and reclock.
________

Blu ray avc files

If you try to make a mkv like with vc1 the video is ugly if I use ffdshow or mpc hc video decoders, and the audio is out of sync if I skip forward.
So I choose the video I want from the ripped m2ts, and then use ts muxer to make it a "AVCHD disk".

If the video is on many m2ts files not just one, use bdinfo to get the files nessessay, then use tsmuxer to make the avshd disk.

Then to open the video you made, go to the bdmv/streams folder and it should be there.
You can open it with mpc or powerdvd. Your choice.

In some movies there is no 00000.m2ts file in the streams folder.
For these movies use bdinfo to see the files that make up your movie, as there may be not one main file but 3 or 4.
bdinfo (http://www.videohelp.com/download/BDInfo.v.0.5.2.zip)

ffdshow works fine with the vc1 mkv. I could have used lsf if I wanted but my e6600 was taxed already using both cores.

Jeremy Duncan
14th September 2006, 00:23
That FFdshow links to afterdawn.com. They have a fairly new version of FFdshow. Maybe they display a different page for Australia ?

check
14th September 2006, 10:17
sorry, i was referring to
"Here's Andy's FFDShow.
Link"

Jeremy Duncan
14th September 2006, 10:31
People seem to like Andy's FFdshow and ask for it.

anton_foy
14th September 2006, 23:32
Having problems running FFDShow in avisynth 2.5, it says error: ffavisynth.dll is not an Avisynth 2.5 plugin.

This was after I had download the newest version of FFDShow.

Edit: sorry bout that I forgot the "C" in LoadCPlugin

foxyshadis
14th September 2006, 23:43
Does it work with LoadCPlugin? It has a bad habit of rarely working even then; it always does with my compiles, but not always for others. If not try this: ffavisynth (http://foxyshadis.slightlydark.com/random/ffavisynth.dll).

anton_foy
15th September 2006, 00:24
Thanks Foxyshadis it works great now using LoadCPlugin.
Would it be possible to use FFDShow when rendering in Adobe After Effects? I think I read that somewhere but I cant find the thread.

foxyshadis
21st September 2006, 08:32
No, sorry, the Devil lib is used in ImageSource only for decoding image formats. (Sort of like ImageMagick library.) Has absolutely nothing to do with avisynth internals or with video at all.

foxyshadis
25th September 2006, 18:39
Okay, this is getting a little off the paranoid deep end. Why are you bringing all of this up? Of what interest is this to people using ffdshow & avisynth to play movies?

Pookie
25th September 2006, 18:53
If only it was 777 , he could have won at the slots in Vegas :D

Nostradamus predicted the emergence of a Windows DLL that would be used in video playback.
He was only off by 5 letters.

Didée
26th September 2006, 08:08
I'm going to reformat all my scripts, to make them appear in grouped paragraphs with the following linecounts:

4 8 15 16 23 42

:D

Pookie
26th September 2006, 09:43
Lol

http://www.moviesounds.com/easy/ufo.wav

:D

toby77jo
12th October 2006, 09:13
if using hardware deinterlacing you should also check YUV2

Jeremy Duncan
15th October 2006, 21:11
If your using the Nvidia video decoder and it uses YUY2 instead of YV12.
Set FFdshow Raw video to YV12 instead of All supported.
Output YV12.
Now the Nvidia video decoder should use YV12 instead of YUY2.
If you use the HW Deinterlacing feature, you still need to tick YUY2 in the Outout tab.

Jeremy Duncan
30th October 2006, 04:44
This is my HTPC setup and my favourite FFdshow Settings.

Display: 793df Samsung CRT Monitor
Size of image: 17" including case
Viewing distance: a foot and a half
Connection type: VGA
Video card: Rage 128 Ultra AGP 4x
CPU: 3.06 Northwood
Memory: 1 stick 512 DDR-SDRAM

OS: XP Pro
Driver version: ati2dvaa.dll, version 6.13.0010.5004 (English)
Output resolution: 1024x768
Add. enh: (ie. AA, AF) None
Video & Audio Codec: DScaler 5008
Video Renderer: VMR 7 Windowed
Ffdshow version: October 29, 2006 20:51:25 (msvc 2005, x86, ansi)

FFdshow (in order)
- Raw Video: All supported

- Avisynth:
Input colorspaces; YV12
LoadPlugin("G:\Program Files\AviSynth 2.5\plugins\colormatrix.dll")
setmtmode(2, 0)
colormatrix(mode="Rec.601->Rec.709")
SPresso(limit=2, limitC=13, bias=100, biasC=100, RGmode=17, RGmodeC=17)

- Resize and aspect:
Specify Size; 1280x720
No aspect ratio correction
Lanczos
Number of Taps; 2
Luma Sharpen; 0.50
Accurate rounding checked

- Queue & Misc: Check Queue output samples. Uncheck "Use Queue only in"

- Output: YV12
Allow output format hanges during playback, checked Green.

Here's a picture of my settings.
Link (http://img182.imageshack.us/img182/586/settingsn4.jpg)

foxyshadis
7th November 2006, 00:49
LSF with ss of 1.0 wil cause crazy aliasing, you really need at least 1.1 for watchability and 1.25-1.4 is better. You also might try using soft=-1 (or something like 10-15 to manually set it), which refrains from sharpening the smoother areas (like a rudimentary seesaw). I think, it's kind of hard to tell.

Still, seesaw is definitely designed to be better for denoising than LSF, and some videos don't need much sharpening, as it probably the case here.

Jeremy Duncan
7th November 2006, 03:29
________LimitedSharpenFaster Configuration made by Me________

Codecs: All supported
Resize & aspect:
Multiply by 2.000
No aspect ratio correction
Lanczos
Taps: 2
Avisynth: YV12 checked

SPresso(limit=2, limitC=2, bias=76, biasC=76, RGmode=4, RGmodeC=4)
LimitedSharpenFaster(ss_x=1.0, ss_y=1.0, Smode=3, strength=80, overshoot=1)

Queue & Output: Queue output samples checked
Output: YV12 checked

LSF with ss of 1.0 wil cause crazy aliasing, you really need at least 1.1 for watchability and 1.25-1.4 is better.

That's why I resize before Avisynth. This gets rid of the Aliasing.
If I use ss of 1.1 or more it becomes unplayable in realtime.
Probably a nice idea to use the ss you recommend when you encode though.

Boulder
8th November 2006, 13:00
A small correction to some of your scripts: the SetMTMode line needs to be before any xxxSource line for it to work.

toby77jo
16th November 2006, 11:28
I have been trying to use seesaw for some time. I am a bit confused. I am running on a core2duo @ 3.3 ghz, 2 gb of pc8500 dual channel corsair memory and a nvidia 8800GTX graphics card, kind of a monster machine, no?

With your seesaw configuration I am on around 45% cpu usage on each core using your MT() 3 threaded script. Yet the movie is slow, it is not smooth at all yet I have lots of resources not being used? It's as slow on both dvd's and xvid's.

Any help on these issues, limited sharpen, spresso etc is running super smooth, but I agree limited sharpen produce too much noise/blocking.

Why don't you recommend people to run a second denoiser at the end of all the other processing, like the built in blur&Nr built into ffdshow, have seen posts on other sites it is good to run one in the avisynth script and one at the end as well.

Lots of questions, hoping for lots of answers =)

toby77jo
16th November 2006, 20:50
I am using this now,

LoadPlugin("D:\Program Files\AviSynth 2.5\plugins\FluxSmooth.dll")
a = last
b = a.FluxSmoothT(11)
SeeSaw(a, b, NRlimit=2, NRlimit2=1, Sstr=1.4, Slimit=7, Spower=2, Sdamplo=8, SdampHi=10, Szp=10, bias=1, sootheT=30)
SPresso(limit=2, limitC=2, bias=76, biasC=76, RGmode=4, RGmodeC=4)


it works like a dream, but how do I put all this in a MT("Script",3)

thanks for keeping this thread so updated, great work!!

Adub
10th December 2006, 23:58
I can't believe I never saw this thread! I stumbled upon it while doing a search for spresso, and bam! Praise Avisynth!

This is so great, keep up the good work man!

This is sticky material.

Adub
12th December 2006, 01:12
either way, it doesn't matter to me except that it is easily accesible to the masses. Like with the way it is now, normally you would have to search for it. With a sticky it is right there, and with Avisynth.org, it is readily available.

Adub
13th December 2006, 03:08
righteous!

Thanks a bunch man! I can't wait to test these out on my e6600. It will be fun. By the way, Reclock is a interesting little program.

Edit: Do you think that IIP could be configured to have some realtime options? Cause that is like an all in one of sorts, which helps with keeping the scripts small. And easy to cut and paste! :)

Truthfully I really don't care about script size, just options, performance and output.

Adub
16th December 2006, 05:01
the only problem with MT is that I can't use it with MeGUI yet. Since it uses 2.5.6, MeGUI cannot automatically load TIVTC for interlaced detection. So, unless I want to switch the Avisynth dll's every time, I will just have to wait until 2.6 is stable enough to use, if I want to use MT.

Adub
20th December 2006, 03:17
Ill update my settings. Thanks.

Kool3ds
20th December 2006, 21:02
Firstly thanks jeremy for this wonderful thread. U made my day. CAn somebody tell me what is da line which i have to type in da avs script if i want to crop da video? Help would be really appreciated. Thanks in advance.

Jeremy Duncan
20th December 2006, 23:10
Here's a link for how to crop Link (http://img45.imageshack.us/img45/5356/cropio0.jpg)

Adub
21st December 2006, 02:18
I thought those pictures were a little off.
Oh, and your welcome about that SeeSaw script.

Pookie
23rd December 2006, 06:50
Guys, at least give Didée his props for writing the scripts, all references have been removed from the ones above.

foxyshadis
23rd December 2006, 07:42
Removed to the SeeSaw thread.

Kool3ds
25th December 2006, 06:55
I am using this script which is added below in da attachments.
But still even after deinterlacing i find some artifacts in da video. Am i doing some mistake or some thing? I am new to all this so plz help me out guys. Let me know if there is some fault in da script also. Thanks in advance. One more thing is seesaw better or LSf?

Da script has been added in da next post.

Kool3ds
25th December 2006, 07:02
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\DGDecode.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\mt_masktools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\masktools.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\RemoveGrainSSE2.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\Decomb.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\MT.dll")
LoadPlugin("C:\Program Files\AviSynth 2.5\plugins\FluxSmooth.dll")
Import("C:\Program Files\AviSynth 2.5\Plugins\LimitedSharpenFaster.avsi")
setmtmode(2, 0)
DGDecode_mpeg2source("F:\DHOOM\VTS_02_1.d2v",info=3)
fieldDeinterlace(full=true, blend=true, dthreshold=10)
assumeTFF()
telecide(guide=1, post=0, dthresh=0, vthresh=0, gthresh=0, back=0, bthresh=0, nt=0)
Decimate(cycle=5, threshold2=0, quality=0)
crop( 4, 44, -4, -48)
LanczosResize(640,288)
FluxSmoothT(3)
LimitedSharpenFaster(ss_x=1.0, ss_y=1.0, Smode=3, strength=80, overshoot=1)
SPresso(limit=2, limitC=0, bias=15, biasC=0, RGmode=17, RGmodeC=0)

Adub
25th December 2006, 07:14
What kind of artifacts are you getting? Do you have a screenshot?

Kool3ds
25th December 2006, 12:15
What kind of artifacts are you getting? Do you have a screenshot?

I have uploaded a small 6 mb video which contains artifacts. Da link is
http://www.sendspace.com/file/ofk8hq

Jeremy Duncan
27th December 2006, 03:08
Kool3ds,

I'm not a Avisynth technician.
Maybe you better start a new thread for your problems.

Kool3ds
28th December 2006, 12:15
Kool3ds,

I'm not a Avisynth technician.
Maybe you better start a new thread for your problems.

Ok.Thanks anyways.

Adub
4th January 2007, 07:08
Well, it looks great on a completely denoised source. But who has one? I ran it through an MKV file of V for vendetta, and man, noise showered me like machine gun fire.

Is this because of the Sdamplo/hi now equal 0?

foxyshadis
4th January 2007, 13:20
Why not put two variables at the top of the script - DENOISE_STR and SHARPEN_STR if you like - which correspond to fluxsmooth's and sdamplo's values. That way you don't have to keep posting new tweaks everytime one version looks better on some particular movie.

btw, you might also want to end it with something like "height > 600 ? o : last" where o is set to last at the top. That way HD won't get filtered and start dropping frames.

Terka
10th January 2007, 17:17
please add to compare the ffdshow builtin unsharpmasking

Jeremy Duncan
12th January 2007, 04:40
please add to compare the ffdshow builtin unsharpmasking

I'm using Denoise3d first:
0.00, 2.00, 3.00 HQ checked

I'm resizing second
1280x720, no aspect ratio correction, Luma sharpen 1.60, accurate rounding checked

I'm using unsharp mask third
Strength 25

Using Unsharp Mask (http://www.slibe.com/fullimage/4fae1c86-Unsharpmask.png)

Terka
12th January 2007, 09:10
thank you Jeremy

Adub
13th January 2007, 03:07
Oh, right. I seem to have noticed a bug, of sorts.
When Fluxsmooth is loaded through ffdshow, in addition to the seesaw advanced setup, every 3 seconds or so, the screen jiggles.
Actually it is almost like the bitrate recenters itself, so to speak.
Can anyone confirm?

I am watching a V for Vendetta mkv upsized to 1280,1024 via ffdshow.

foxyshadis
13th January 2007, 09:48
Is it randomly skipping, or is it a regular judder? Does this happen only when using fluxsmooth, or even when enabling avisynth with no filters?

If both are the second, you might be running into a limitation of ffdshow's avisynth use with vfr. I fixed it so that it should at least always work normally with cfr recently, I may have to go with the plan I had for vfr.

Didée
14th January 2007, 07:09
It's kind of interesting to see how "THE configuration to use" changes by the day. Could it be that the "preferred configuration" mostly depends on the kind of source that you just happened to look at lately ... ;)


SeeSaw(a, b, NRlimit=2, NRlimit2=1, Sstr=1.4, Szp=1, Slimit=16, Spower=1, bias=0, sootheT=0, Sdamplo=8, SdampHi=0)


Well ... Congratulations for deactivating practically everything that makes up SeeSaw. You're only one little step away from arriving at almost the same result as "sharpen(1).mergechroma(last)" would give. :)

If you're pleased with the results, it's fine. But sorry for I just can't hold back to mention the "casting pearls before swine" proverb.