Go Back    Forum > Digital Video > Video Project Help > Restore, Filter, Improve Quality

LinkBack Thread Tools
12-23-2010, 04:54 PM
admin's Avatar
admin admin is offline
Site Staff | Web Development
Join Date: Jul 2003
Posts: 4,309
Thanked 654 Times in 457 Posts
Since we have a few new* members here that are skilled at Avisynth, I thought I'd acquire a bit of community input before the guide gets an update (and/or a companion) in January. (*"New" compared to the guide's writing.)

I refer to the guide for Encoding/Converting > PAL/NTSC Standards from http://www.digitalFAQ.com/guides/vid...t-pal-ntsc.htm

Specifically, there two areas to focus on, where updates are desired:
- deinterlacing options
- de-blurring poorly converted videos (that are your source before you re-convert it back)

At the bottom of the guide, you'll find two sample files, clips from the Australian DVD release of Inspector Gadget (which has been fully released down in Oz, but has not been released in North America). There is a good bit of frame blending, which creates the ghosting/blurring effect.

Deinterlace improvements:

When the guide was written, VirtualDub was not yet to version 1.9.x, and did not yet have the Yadif deinterlacer. That is generally preferable to available Deinterlace Area-Based filter for VirtualDub, although not always.

So that's a GUI option, for those who want to avoid the "complex" scripting and plugins for Avisynth.

A better approach would undoubtedly be to use a combination filter set in Avisynth, using this script:
yadifmod(order=1, mode=0, edeint=NNEDI2(field=1))
(Note: YES, I prefer ffvideosource, as mpeg2dec's d2v files are an extra step, and are not necessarily any more accurate than ffmpeg, based on my past experience and observations. This is more of a preference issue, and I opt for the one that is easier and still looks the same. I would, however, include alternatives, as a footnote link.)

This is a fairly easy script.

De-blurring / De-ghosting additions:

What I think could be improved on further is to attempt to remove the ghosts caused by the original poor conversion, by use of Avisynth's srestore() filter. And this is where I'd most like some input on quality script examples for the guide. It is one of the better documented scripts in the Avisynth wiki, but it's still lacking in examples for the visual learners of the world (which includes me).

Audio conversions:

Since the writing of the guide, Sound Forge 9 also came out, which allows for more direct input (AC3), and from what I was reading a few days ago, now includes frame-accurate measurements for time stretch, as opposed to that useless percentage method.

and then...

Finally, it may be split across a few pages, in steps, instead of one long page.


And if this works well, we may collaborate on several guides.

- Did this site help you? Then upgrade to Premium Member and show your support!
- Also: Like Us on Facebook for special DVD/Blu-ray news and deals!
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
12-26-2010, 06:32 PM
juhok juhok is offline
Free Member
Join Date: Sep 2009
Posts: 379
Thanked 108 Times in 88 Posts
My use of Avisynth is messy. I gather bits and pieces from here and there and it changes from clip to clip. Primary source of information and examples has been doom9 forum. What comes to mind..

For PAL/NTSC/PAL I think I've used capable the mvtools2 package http://www.avisynth.org.ru/mvtools/mvtools2.html - examples in the bottom.

About the use of yadifmod and NNEDI2 - NNEDI3 is out and can drop-in replace NNEDI2 - http://forum.doom9.org/showthread.php?t=147695 Quick test I ran on i7 920: Yadifmod+NNEDI2 runs at 25~fps and Yadifmod+NNEDI3 at 35~fps (PAL VHS 576i50 -> 576p25).

"order" and "field" parameters could be set to -1 (uses avisynth's internal parity value) and then declare parity beforehand using AssumeTFF() or AssumeBFF(). Forcing it to TFF will cause problems to people handling BFF material.
Reply With Quote
02-19-2011, 11:42 AM
jmac698 jmac698 is offline
Free Member
Join Date: Dec 2010
Posts: 387
Thanked 73 Times in 56 Posts
srestore is easy. Let's say your from US and have a PAL sourced video. The conversion is usually done with blended frames, which you call blurry. This can be perfectly undone.
MPEG2Source("D:\process\Doctor Who - Key to Time\VIDEO_TS\Part 1.d2v", cpu=0)
Will return the original, 25fps PAL video, progressive.
You can even reconvert it back to ntsc in a different way by slowing it to 23.976fps and using pullup. This won't show the blurriness anymore but will play slower.

You can tell these kinds of conversions by stepping through the video field by field, and note that there are 'ghost' frames where say two copies of an arm in motion appear on the same field, and one is dimmer than the other. This is called a blend.

In the example you see a ghost of the arm above. When unblended by using surrounding frames, you get the 2nd picture. This shows the unblended arm in the upper position. There is of course also the unblended frame with the lower position.

Attached Images
File Type: jpg pal-blend.jpg (33.3 KB, 13 downloads)
File Type: jpg pal-noblend.jpg (34.0 KB, 12 downloads)
Reply With Quote

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to Block Windows Media Player's automatic updates kpmedia Computers 2 08-29-2017 12:57 AM
Convert NTSC to PAL and back to NTSC ? admin Capture, Record, Transfer 0 07-24-2010 08:29 PM
AIW 9600 best software updates? edgar9 Capture, Record, Transfer 7 11-04-2007 02:06 AM
Video censor (blur) removal stoogedog Edit Video, Audio 6 07-20-2006 02:47 AM
Firmware updates MagnificentMarcus Blank Media 1 11-17-2005 08:22 AM

Thread Tools

All times are GMT -5. The time now is 07:09 PM