SUBSIM Radio Room Forums



SUBSIM: The Web's #1 resource for all submarine & naval simulations since 1997

Go Back   SUBSIM Radio Room Forums > General > General Topics
Forget password? Reset here

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 03-15-07, 03:35 PM   #3
SUBMAN1
Rear Admiral
 
Join Date: Apr 2005
Posts: 11,866
Downloads: 0
Uploads: 0
Default

Quote:
Originally Posted by Gizzmoe
But thatīs going to take ages, like one second per frame or so, depending on the resolution, plus the time to recode it... :hmm:
Nah! Just use AVISynth and it will do it close to real time. It is of course - CPU dependant.

A sample script for recorded TV that would work for turning content into 720p:
LoadPlugin("D:\Temp\dgmpgdec148\DGDecode.dll")
LoadPlugin("D:\Temp\dgmpgdec148\Decomb.dll")
mpeg2source("dgd2vfile.d2v")
FieldDeinterlace() |assuming recorded TV is pure interlaced material, turning it into progressive material
Lanczos4Resize(1280,720) |assuming 852x480 content here, making 1280x720 and still maintaining proper aspect ratio while upsampling with a very sharp 4 tap engine.

An optional thing would be to add the Crop (x,x,x,x) command to the end if you do not care about maintaing 1280x720 for proper sizing.

-S

Some info on this filter:

Lanczos4Resize is closely related to LanczosResize (correct name: Lanczos3Resize). The latter uses 2*3=6 lobes and the former 2*4=8 lobes to do the resizing. The result is that Lanczos4Resize produces sharper images. Especially usefull when upsizing a clip.
Interpolation Tap Size (taps parameter)
"For upsampling (making the image larger), the filter is sized such that the entire equation falls across 4 input samples, making it a 4-tap filter. It doesn't matter how big the output image is going to be - it's still just 4 taps. For downsampling (making the image smaller), the equation is sized so it will fall across 4 *destination* samples, which obviously are spaced at wider intervals than the source samples. So for downsampling by a factor of 2 (making the image half as big), the filter covers 2*4=8 input samples, and thus 8 taps. For 3x downsampling, you need 3*4=12 taps, and so forth.
Thus the total number of taps you need for downsampling is the downsampling ratio times the number of lobes (thus Tx downsampling and LanczoskResize results in T*2*k taps). And practically, one needs to round that up to the next even integer. For upsampling, it's always 4 taps." Source: [avsforum post].
Lanczos4Resize is a short hand for LanczosResize(taps=4).
__________________
SUBMAN1 is offline   Reply With Quote
 


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 -5. The time now is 02:42 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright Đ 1995- 2025 Subsim®
"Subsim" is a registered trademark, all rights reserved.