#1  
08-04-2018, 10:15 PM
ehbowen ehbowen is offline
Free Member
 
Join Date: Feb 2018
Location: Houston, Texas
Posts: 339
Thanked 64 Times in 57 Posts
Captured a couple of Disney VHS direct to video releases last week...The Return of Jafar and Aladdin and the King of Thieves (I was too cheap to re-purchase these marginal titles on digital). There is quite a bit of hash in some areas, particularly the action segments, which looks like it's due to the interlacing. I plan to keep these videos in a personal digital archive; they will not be re-recorded to disc. What would our experts recommend for cleaning them up (to the extent reasonably practical, of course)?

Edit To Add: Workflow for Return of Jafar was JVC SR-VS30 >> TBC-4000 >> AIW X1800 PCIe. Workflow for King of Thieves was Mitsubishi HS-HD2000U >> TBC-1000 >> AIW 8500DV AGP.


Attached Files
File Type: avi ReturnOfJafar.clip1.20180725.avi (73.63 MB, 6 downloads)
File Type: avi ReturnOfJafar.clip2.20180725.avi (78.68 MB, 3 downloads)
File Type: avi KingOfThieves.20180725.clip1.avi (59.36 MB, 3 downloads)
File Type: avi KingOfThieves.20180725.clip2.avi (65.16 MB, 2 downloads)

Last edited by ehbowen; 08-04-2018 at 10:20 PM. Reason: Forgot to add the clips!
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
08-05-2018, 05:00 AM
sanlyn sanlyn is offline
Premium Member
 
Join Date: Aug 2009
Location: N. Carolina and NY, USA
Posts: 3,648
Thanked 1,308 Times in 982 Posts
Thanks for the sampkles.

Unfortunately they've all been converted to RGB32, so clipped brights and crushed darks due to unsafe luma and chroma levels in the original YUV color can't be repaired. If you captured originally in RGB32, consider not doing it any more. If you captured in the preferred YUY2 for VHS, avoid RGB conversion in Virtualdub by saving your edits in VirtualDub using "direct stream copy" instead of "full processing mode". This will also save storage space and uploading time -- a huffyuv RGB file is twice the physical size of the same file in YUY2.

Your videos are telecined. For any resizing or effective cleanup, you should remove telecine and restore the videos to their original 23.976 fps progressive frame rate. Telecine can later be restored during encoding for 29.97fps. Telecine is removed with Avisynth's TIVTC plugin. The usual code for cleaning up NTSC 3:2 pulldown with the functions in TIVTC is:

Code:
AviSource("drive:\path\to\video.avi")
AssumeTFF()
TFM().TDecimate()
TIVTC works in YUY2 and YV12 color. Use the original YUY2 when possible.
Reply With Quote
The following users thank sanlyn for this useful post: ehbowen (08-05-2018)
  #3  
08-05-2018, 07:31 AM
ehbowen ehbowen is offline
Free Member
 
Join Date: Feb 2018
Location: Houston, Texas
Posts: 339
Thanked 64 Times in 57 Posts
Quote:
Originally Posted by sanlyn View Post
Thanks for the sampkles.

Unfortunately they've all been converted to RGB32, so clipped brights and crushed darks due to unsafe luma and chroma levels in the original YUV color can't be repaired. If you captured originally in RGB32, consider not doing it any more. If you captured in the preferred YUY2 for VHS, avoid RGB conversion in Virtualdub by saving your edits in VirtualDub using "direct stream copy" instead of "full processing mode". This will also save storage space and uploading time -- a huffyuv RGB file is twice the physical size of the same file in YUY2.

Your videos are telecined. For any resizing or effective cleanup, you should remove telecine and restore the videos to their original 23.976 fps progressive frame rate. Telecine can later be restored during encoding for 29.97fps. Telecine is removed with Avisynth's TIVTC plugin. The usual code for cleaning up NTSC 3:2 pulldown with the functions in TIVTC is:

Code:
AviSource("drive:\path\to\video.avi")
AssumeTFF()
TFM().TDecimate()
TIVTC works in YUY2 and YV12 color. Use the original YUY2 when possible.
Ah. Thank you. I thought that I did have the capture set for YUY2 but it looks as if I missed it. Let me do a re-capture and look at it again.
Reply With Quote
  #4  
08-05-2018, 04:37 PM
themaster1 themaster1 is offline
Free Member
 
Join Date: Feb 2011
Location: France
Posts: 505
Thanked 102 Times in 86 Posts
Quote:
Originally Posted by sanlyn View Post
Code:
AviSource("drive:\path\to\video.avi")
AssumeTFF()
TFM().TDecimate()
For cartoons that's TDecimate(mode=1) (from the official tivtc doc,default mode is 0)
Reply With Quote
  #5  
08-05-2018, 08:47 PM
sanlyn sanlyn is offline
Premium Member
 
Join Date: Aug 2009
Location: N. Carolina and NY, USA
Posts: 3,648
Thanked 1,308 Times in 982 Posts
Quote:
Originally Posted by themaster1 View Post
For cartoons that's TDecimate(mode=1) (from the official tivtc doc,default mode is 0)

The default for TFM is not 0. The default is -1. The default applies to all videos, not just cartoons.
AssumeTFF() sets the default internal parity in the script to TFF.

From the file TFM - READ ME.txt:
Code:
B.)  BASIC PARAMETERS:


   These are the only three parameters most users should be concerned with or worry about
   setting.  They control the basic operation of the filter.


     order - 

        Sets the field order of the clip. The field order must be correctly set for
        accurate field matching to occur. Possible values:

           -1 = auto (use avisynth's internal parity value)
            0 = bottom field first (bff)
            1 = top field first (tff)

        Default:  -1  (int)
From the file tivtc_tfm.htm:


I never heard of a document named " tivtc doc". Please post a copy for us. There is a TIVTC - READ ME.TXT and a TIVTC.htm, but they say nothing specific about default TFM parameters.


Attached Images
File Type: jpg HTML.jpg (22.8 KB, 36 downloads)
Attached Files
File Type: txt TIVTC - READ ME.txt (1.8 KB, 2 downloads)
File Type: zip tivtc_tfm_HTML.zip (11.9 KB, 1 downloads)

Last edited by sanlyn; 08-05-2018 at 09:12 PM.
Reply With Quote
  #6  
08-05-2018, 08:55 PM
ehbowen ehbowen is offline
Free Member
 
Join Date: Feb 2018
Location: Houston, Texas
Posts: 339
Thanked 64 Times in 57 Posts
Here are two more clips from the original capture. I had VirtualDub on my editing computer set to save in RGB previously...an unchanged default which I just didn't catch. I believe the original was captured in YUY2, but I don't know how to check it for sure...MediaInfo says that the original capture is 4:2:2 YUV, which I'm not familiar with. So what settings would you recommend to detelecine the original capture these clips came from?


Attached Files
File Type: 7z KingOfThieves.20180725.clip2a.avi.7z (96.14 MB, 3 downloads)
File Type: avi KingOfThieves.20180725.clip1a.avi (81.99 MB, 3 downloads)
Reply With Quote
  #7  
08-06-2018, 03:16 AM
themaster1 themaster1 is offline
Free Member
 
Join Date: Feb 2011
Location: France
Posts: 505
Thanked 102 Times in 86 Posts
@ Sanlyn

Take it easy it's more an observation than a critique i did, everybody can miss things .

So from the tdecimate.txt:
Quote:
Mode 1 = Exactly like mode 0, except instead of decimating the M most similar frames, frames are decimated from the longest remaining strings of duplicates. The duplicate detection uses the dupThresh parameter. This mode is the correct type of decimation for anime and other sources where frames are repeated 2, 3 or 4 times in a row, and also supports blend decimation of video (30p) with hybrid = 1, as well as blending of 24p into 30p (hybrid = 3).
Default: 0 (int)
Reply With Quote
  #8  
08-06-2018, 04:39 AM
sanlyn sanlyn is offline
Premium Member
 
Join Date: Aug 2009
Location: N. Carolina and NY, USA
Posts: 3,648
Thanked 1,308 Times in 982 Posts
@themaster1:

"mode" and "order" are two different parameters.
TDecimate "mode" has nothing to do with TFM field order.

Quote:
Originally Posted by ehbowen View Post
Here are two more clips from the original capture. I had VirtualDub on my editing computer set to save in RGB previously...an unchanged default which I just didn't catch. I believe the original was captured in YUY2, but I don't know how to check it for sure...MediaInfo says that the original capture is 4:2:2 YUV, which I'm not familiar with. So what settings would you recommend to detelecine the original capture these clips came from?
"4:2:2 YUV" is another way of describing YUY2, which is a 4:2:2 data arrangement in a YUV color system. RGB would be 4:4:4 in an RGB color system.
http://blogs.adobe.com/VideoRoad/201...what_is_4.html

Your two capture samples in the post quoted above are YUY2. If you want more detail about the exact name of the colorspace use Avisynth's info() function:
Code:
AviSource("path:\to\video.avi")
info()
Don't use VirtualDub's file information menu for this. VirtualDub will always say it's RGB.

The telecine pattern in the samples is plain vanilla 3:2 pulldown. To remove telecine fields:

Code:
AssumeTFF()
TFM().TDecimate()
or:
Code:
TFM(order=1).TDecimate()
Both ways of coding the above mean the same thing for inverse telecine.
Reply With Quote
Reply




Tags
animation, capture, deinterlace

Similar Threads
Thread Thread Starter Forum Replies Last Post
Stabilizer for cleaning up VHS? What is best? cyber-junkie Restore, Filter, Improve Quality 1 01-10-2010 12:53 AM
Help cleaning up vhs. Konfusion Restore, Filter, Improve Quality 7 02-08-2009 11:56 AM
Dropouts, Cleaning and New VCR mrwhitethc Restore, Filter, Improve Quality 1 07-26-2008 06:53 AM
Cleaning up a dvd Wineslurper Restore, Filter, Improve Quality 3 06-21-2005 12:10 PM

Thread Tools



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