#1  
04-25-2017, 08:54 AM
Genu29 Genu29 is offline
Free Member
 
Join Date: Feb 2011
Posts: 7
Thanked 0 Times in 0 Posts
Hello everyone, I am looking for help to decide which values I have to set to "size" convert my SVHS-AVI PAL video files in preparation to MKV/H.264 conversion thru MeGUI interface to X.264.

My target player is Smart TV player (or Android box tv or PC) and I would like to see these files as 16:9.

Source files are SVHS-AVI PAL, 720x576, 5:4, interlaced, 25FPS, acquired with VirtualDub/HuffYUV (no filters), color space YUY2, audio is PCM (48kHz, 16bits, 2 channels). Here MediaInfo for the sample.avi I attached:

Quote:
General
Complete name : D:\TEMP\Sample 8secs.avi
Format : AVI
Format/Info : Audio Video Interleave
File size : 93.2 MiB
Duration : 7 s 960 ms
Overall bit rate : 98.2 Mb/s
Writing library : VirtualDub build 35491/release

Video
ID : 0
Format : HuffYUV
Format version : Version 2
Codec ID : HFYU
Duration : 7 s 960 ms
Bit rate : 96.7 Mb/s
Width : 720 pixels
Height : 576 pixels
Display aspect ratio : 5:4
Frame rate : 25.000 FPS
Standard : PAL
Color space : YUV
Chroma subsampling : 4:2:2
Bit depth : 8 bits
Scan type : Interlaced
Bits/(Pixel*Frame) : 9.325
Stream size : 91.7 MiB (98%)

Audio
ID : 1
Format : PCM
Format settings, Endianness : Little
Format settings, Sign : Signed
Codec ID : 1
Duration : 7 s 960 ms
Bit rate mode : Constant
Bit rate : 1 536 kb/s
Channel(s) : 2 channels
Sampling rate : 48.0 kHz
Bit depth : 16 bits
Stream size : 1.46 MiB (2%)
Alignment : Aligned on interleaves
Interleave, duration : 42 ms (1.06 video frame)
Interleave, preload duration : 500 ms
Before to encode with MeGUI/X.264 I would like to crop the bottom because of SVHS noise and thru AVS script MeGUI interface I can crop 18 at the bottom and resolution parameters of MeGUI would show 712x552; then I changed input DAR from 5:4 to ITU 4:3, but when I played on Smart TV was showed with black bars. If I use Input DAR ITU 16:9 the I see it as 16;9 on Smart TV player. May you would suggest best values to use ? Should I use ITU 4:3, ITU 16:9 or stay with 5:4 ? I did not setup deinterlace filter.
This is AVS when I have chosen ITU 16:9:

Code:
AVISource("D:\TEMP\SVHS\1991Ago19-Set6 Kenia (5di5),1995Apr1 Alessia 1° volta in piscina (2di4)\cap.avi", audio=false).AssumeFPS(25,1)
#deinterlace
crop(0, 0, 0, -18)
LanczosResize(712,376) # Lanczos (Sharp)
LoadPlugin("C:\Program Files (x86)\PORTABLE (x86)\VIDEO Editor, Converter\MeGUI\tools\avisynth_plugin\UnDot.dll")
Undot() # Minimal Noise
ConvertToYV12()
May you please suggest an AVS for my sample ? I would appreciate. Many thanks


Attached Files
File Type: avi Sample 8secs.avi (93.22 MB, 53 downloads)
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
04-25-2017, 02:17 PM
sanlyn sanlyn is offline
Premium Member
 
Join Date: Aug 2009
Location: N. Carolina and NY, USA
Posts: 3,648
Thanked 1,307 Times in 982 Posts
Your script has logic errors, and it won't work anyway. No one can advise about filters without a sample of your original video. You can edit a short sample in VirtualDub and save it as YUY2, and can post in this forum.

Your main question about resize was already answered: http://www.digitalfaq.com/forum/vide...html#post49117
Reply With Quote
  #3  
04-25-2017, 05:35 PM
Genu29 Genu29 is offline
Free Member
 
Join Date: Feb 2011
Posts: 7
Thanked 0 Times in 0 Posts
Hi Sanlyn, thanks for explanation about crop and resize. About sample I uploaded it in my first post, should I reload it again ? Many thanks in advance for further help on filters to be applied.
Please le me know
Reply With Quote
  #4  
04-25-2017, 11:18 PM
sanlyn sanlyn is offline
Premium Member
 
Join Date: Aug 2009
Location: N. Carolina and NY, USA
Posts: 3,648
Thanked 1,307 Times in 982 Posts
Quote:
Originally Posted by Genu29 View Post
About sample I uploaded it in my first post, should I reload it again ?
Thanks for reminding me. Over time i forgot about your posted sample and kept thinking about your earlier thread instead of this one. My bad. Staying up too late, I guess.


It's a well detailed capture but looks over sharpened, which gives the impression of excessive aliasing and interlace combing. These can be addressed with different filters. Another problem is that the luma levels are illegal and exceed the preferred YUV range of y=16-235 at both extremes. Apparently highlight clipping occurred during capture, so some bright details can't be recovered. It's too late now for another capture, anyway, if the tape is gone.

Some of these problems can be fixed to improve the video. However, I note that your script called for the UnDot filter, which I assume was to clean the occasional horizontal streaks (dropouts). UnDot won't fix those streaks. There is some downward red chroma shift, and about 8 discolored pixels along the right border (I don't think most viewers will notice the right border. Fixing it would be tricky and destructive of detail, which would likely be more noticeable)
By the way, your video really is a display aspect ratio (DAR) of 4:3, or 1.33333:1. However the actual image proportions are 1.37:1, which looks like the older "academy" classic film ratio that many cameras used. Of course you can't use 1.37:1 for the DAR. Because of cropping and restoring borders, you should encode a[Et DAR 4:3 to get the correct image proportions. It's not possible for a 4:3 image to fill a 16:9 screen without distorting the image. [EDIT] and the number of unusable pixels along the bottom is 20, not 18.

I'm attending to family matters at the moment, but later I can post some filter and script ideas and provide a sample. Sorry for the delay.

Last edited by sanlyn; 04-25-2017 at 11:49 PM.
Reply With Quote
  #5  
04-26-2017, 12:20 AM
Genu29 Genu29 is offline
Free Member
 
Join Date: Feb 2011
Posts: 7
Thanked 0 Times in 0 Posts
Hi Sanlyn,
really thanks for your support, all I am getting is a very high consulting suggestion. I do not think you have to be sorry........ I really appreciate.
Reply With Quote
  #6  
04-26-2017, 06:54 PM
sanlyn sanlyn is offline
Premium Member
 
Join Date: Aug 2009
Location: N. Carolina and NY, USA
Posts: 3,648
Thanked 1,307 Times in 982 Posts
Below is a script I used to resolve the noise and other problems discussed earlier in your sample avi. The result of the Avisynth script and filters used for aliasing, excessive interlace combing, chroma noise, horizontal dropout streaks, illegal video levels, etc., is attached as "Sample_filtered.mp4". The mp4 is encoded for 4:3 DAR. Unused image pixels were cropped and the original, unaltered image is centered in the frame.

Avisynth script:
Code:
Import("Drive:\path\to\Avisynth\plugins\RemoveDirtMC.avs")  #<- change path to match your system.

AviSource("Drive:\path\to\video\sample.avi")  #<- change path to match your system
ColorYUV(cont_y=-20)
Levels(16, 1.0, 255, 16, 245,dither=true,coring=false)
ConvertToYV12(interlaced=true)
AssumeTFF()
SeparateFields()
Santiag()

a=last
e=a.SelectEven().RemoveDirtMC(40)
o=a.SelectOdd().RemoveDirtMC(40)
Interleave(e,o)
FixChromaBleeding()
MergeChroma(aWarpSharp2(depth=20))
AssumeFieldBased()
Weave()

Crop(0,0,0,-20).AddBorders(0,10,0,10)
return last
The filters used are attached as script_plugins.zip.

I don't use MEGUI. The mp4 was encoded with TMPGenc Mastering Works.


Attached Files
File Type: zip script_plugins.zip (12.68 MB, 8 downloads)
File Type: mp4 Sample_filtered.mp4 (4.07 MB, 14 downloads)
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
How to resize a picture? deter Restore, Filter, Improve Quality 17 01-02-2017 11:09 AM
Converting SVHS videos and later SVHS decks Jpass9992 Capture, Record, Transfer 10 08-21-2015 02:41 PM
Panasonic AG-1980 playing non-SVHS as SVHS? cyber-junkie Videography: Cameras, TVs and Players 15 04-21-2010 03:48 PM
Need resize filter for VitualDub Dewey Encode, Convert for discs 2 03-09-2009 03:17 AM
The right mac, svhs, tbc, filters, etc. jscottinla Capture, Record, Transfer 2 02-11-2005 06:16 AM

Thread Tools



 
All times are GMT -5. The time now is 08:33 AM