Ru / En

Hot news:

If you find a spelling error, please select an incorrect text and press Ctrl+Enter. Thank you!

Compression project >> Video Area Home
RUSSIAN

AviSynth MSU Field Shift Fixer

MSU Graphics & Media Lab (Video Group)

Project, ideas: Dr. Dmitriy Vatolin
Implementation: Alexey Moskvin

Free AviSynth filter for fixing situation when different lines of source frame are placed in different output frames. This often occurs during movie capture, when odd lines are one frame later than even lines. In films after PAL->NTSC conversion there is another problem: in two neighbour frames odd lines are equal and even are different. The main idea of this filter is searching for the optimal line's position for current frame. If this position exists, optimal odd lines are placed into current frame, otherwise (for example when odd lines are in one frame after even lines and we are in the last frame) the odd field is interpolated, or no changes are done (behavior depends on filter's settings). After applying MSU FieldShiftFixer to sequence visual video quality is improved, and compression and denoising processes give better results.


Examples


Let's consider the filter results on a test sequence "4msu2_25.avi"

Frame from film
source frame from 4msu2_25.avi
after Filter
after filter works

Comparison with deinterlace filter

Deinterlaced frame
after deinterlace filter
frame, after filter works
after MSU FieldShiftFixer filter
On these two pictures you can see that after applying deinterlace filter to a sequence a lot of details (especially horizontal) are not reconstructed as well, as with this filter.


Settings


Installation:
  1. Download AviSynth (for example from www.avisynth.org)
  2. Create a script (text file with .avs extension):
Avisource("video.avi")
ConvertToYUY2()
LoadPlugin("msu_fieldshiftfixer.dll")
MSU_FieldShiftFixer(16,1,1)
ConvertToRGB24()

Each line description:
  1. Avisource("4msu2_27.avi") - path to movie file
  2. ConvertToYUY2() - conversion to YUY2
  3. LoadPlugin("msu_fieldshiftfixer.dll") - loading filter. It could be placed anywhere, but if the location of the filter differs from the location of .avs script, you should specify absolute or relative (to .avs file) path.
  4. MSU_FieldShiftFixer(16,1,1) - processing video with MSU FieldShiftFixer filter. The first parameter is the step between even lines, which are used in calculation (from 1 till 16). By decreasing this parameter, you will decrease processing speed, but you will also decrease error propability in the detection of the optimal field. Sometimes there is no optimal field for border frames, and if the second parameter is set to 1, the odd field in border frames will be interpolated. And if this parameter is set to 0, there will be no modifications in border frames. By setting the third parameter to 1 you prevent situation when one frame is duplicated in two neighbour frames.
  5. ConvertToRGB24() - conversion to RGB

After these steps open .avs in VirtualDub or another video editor or viewer.


Download


E-mail:
For common questions about filter's work please contact us
For commercial license of this filter (commercial usage is not free) please contact us сontact email


Another resources


Video resources:

Call for MPEG4-AVC/H.264 codecs 2012

Public MSU video filters
Here are available VirtualDub and AviSynth filters. For a given type of digital video filtration we typically develop a family of different algorithms and implementations. Generally there are also versions optimized for PC and hardware implementations (ASIC/FPGA/DSP). These optimized versions can be licensed to companies. Please contact us for details via video(at)graphics.cs.msu_ru.
MSU/YUVsoft filters for companies
We are working with Intel, Samsung, RealNetworks and other companies on adapting our filters other video processing algorithms for specific video streams, applications and hardware like TV-sets, graphics cards, etc. Some of such projects are non-exclusive. Also we have internal researches. Please let us know via video(at)graphics.cs.msu_ru if you are interested in acquiring a license for such filters or making a custom R&D project on video processing, compression, computer vision.
Codecs comparisons
Objective and subjective quality evaluation
tests for video and image codecs
Call for MPEG4-AVC/H.264 codecs 2012
Ext. link: x264 parameters efficiency comparison
MSU Video Quality Measurement tools
Programs with different objective and subjective video quality metrics implementation
Video codecs projects
Different research and development
projects on video codecs
Other
Other information

Bookmark this page:   Add to Del.icio.us Add to Del.icio.us     Digg It Digg It     reddit reddit


 
Last updated: 10-March-2011

Search (Russian):
Server size: 8069 files, 1215Mb (Server statistics)

Project updated by
Server Team and MSU Video Group


Project sponsored by YUVsoft Corp.

Project supported by MSU Graphics & Media Lab

Rambler's Top100 Рейтинг@Mail.ru