#1  
09-15-2018, 04:44 AM
lordsmurf's Avatar
lordsmurf lordsmurf is offline
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,503
Thanked 2,449 Times in 2,081 Posts
This page has been referred to a lot this year: http://homepages.ihug.com.au/~daz200...deo/index.html. But it's an old project on a personal URL that may disappear at any time. Since the info may be valuable, I'm archiving it here. The "save as" from Firefox is attached in the zip. But I'm mirroring it as inline text/images as well.

As far as anybody can tell, it was never actually built. A pity. Perhaps these will prove useful to somebody someday, who does have the skills to create it? (And if you do build one, PM me!)

Guide starts...



Concept

Do the minimal processing required on a VHS playback analog video signal to improve the performance of a PC video capture device. This should ensure optimal quality, and the best value for money.

Method

Strip the sync pulses from the video and process them before re-insertion. Use the original signal timing except where it causes a problem. Enforce vertical sync to ensure stable captures with no dropped frames. Provide options for fixing various problems such as: dropout noise, loss of sync, timebase jitter and flagging. Operate in S-Video and process luminance (Y) signal only. Use a cheap but fast microcontroller to do the processing logic. Use hardware circuits where timing is critical to avoid adding jitter.

Details
  • Square up sync pulses in hardware to regenerate them. This prevents adding jitter due to the random CPU clocking phase difference.
  • Apply noise gating to prevent noise contaminating sync (lockout sync detection for most of a line period after the first pulse is detected)
  • Use sampled black and sync levels to stabilize the processing levels and improve sync decision making
  • Missing Hsync due to video loss (not dropouts): Replace with softsync, or ignore (replaced sync will be delayed)
  • Missing sync due to dropouts: Replace with softsync (replaced sync will be on-time, as the dropout can be detected ahead of time)
  • Missing Vsync: Vsync can be replaced routinely to guarantee a constant output even if Vsync is lost. This also helps reduce flagging.
  • Timebase jitter: Generate a video reference signal in hardware (a grey vertical line to the left of the picture). This can be used with a software TBC. If left margin is inadequate, main Hsync will need to be advanced.
  • Main Hsync could be advanced by delaying previous Hsync by 63uS, making Hsync 1uS earlier - but this will reduce capture stability significantly. Since a software TBC will be used in this mode, it might be bearable.
  • Dropout noise: Hard clip levels to peak white and peak black, or gate video off during dropouts. Retain sync at all times by sync replacement.
Working functions
  • Vertical sync locking with correct field order is working (using pattern matching techniques) - Line drift due to video glitches has been fixed by making the Vsync locking operate continuously
  • Vertical sync is able to replace existing Vsync successfully
  • Vertical sync and blanking replacement with line length adjustments can fix flagging (preliminary - has shown good results)
  • Horizontal sync is replaced when dropouts are present (needs better timing)
  • Horizontal sync is replaced where it is missing due to video loss (needs better timing)
  • Sync separator works well - now set at 33% slicing to improve noise rejection
  • Video black level clamping works well
  • Video clipping works well
Problems
  • Timer overrun due to corrupted timing on incoming video - Problem is now fixed
  • Corrupted video timing can cause front panel buttons to stop responding due to software timing issues - Problem is now fixed
  • Flagging compensation needs to be made automatic (and per-field?) * This will have to wait until VCR mods and a test signal generator have been completed *
  • Vsync reset needs to be made automatic, and 100% reliable on bad signals - Problem has been largely fixed by sampling Vsync 8 times on every line
  • Manual settings for 3 and 4 currently take up all available control buttons leaving none for other functions * Buttons have been made available again *
  • Hardware video alignment marker circuit has poor pulse shape - needs a "schmitt trigger" chip instead of a plain CMOS inverter
Features to add
  • Define modes to process video: Bypass, Basic, Normal, Aggressive, each with different and progressive ways to deal with video problems
  • Better support for video sync marker - If possible, add an "advance timing" mode to move picture to the right to make room on the left for the timing marker line (?)
  • Alternatively, put marker on right side of frame
  • Add NTSC mode? (eventually)
Additional ideas - VCR modification

Due to the difficulties faced with video timing problems from non-standard tapes, an additional approach to signal improvement is being investigated - Fitting a small PCB to the VCR that modifies it's headswitch timing.

Typical VCRs use a method of timing the headswitching point that relies on a phasing signal from the video head drum. Since PAL video has 625 lines per revolution of the video heads, this equates to a tiny 0.576 degrees of head rotation per video line. Since this is a tiny angle, timing errors are likely. Therefore, the switching point is bound to be unstable unless it can be locked to the video sync as a reference. A microcontroller on a small PCB could be added to the VCR circuitry to fix this problem automatically.

An ATtiny2313 microcontroller, running at 20MHz can process both the headswitching signal, and the video sync. The device then outputs a replacement headswitching signal to the VCR circuitry. This replacement phasing signal is timed to put the headswitching consistently on the end of the last line in the video fields. This means the vertical sync area is intact, and undistorted by headswitching. It also means the headswitching occurs below the visible picture area, thus improving video quality and removing the need for cropping.



IMG_2886.jpg

You must be logged in to view this content; either login or register for the forum. The attached screen shots, before/after images, photos and graphics are created/posted for the benefit of site members. And you are invited to join our digital media community.


Continued...


Attached Files
File Type: rar Video Stabilizer 2012.html.rar (1.23 MB, 5 downloads)

- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
Someday, 12:01 PM
admin's Avatar
Ads / Sponsors
 
Join Date: ∞
Posts: 42
Thanks: ∞
Thanked 42 Times in 42 Posts
  #2  
09-15-2018, 04:51 AM
lordsmurf's Avatar
lordsmurf lordsmurf is offline
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,503
Thanked 2,449 Times in 2,081 Posts
26/09/2012

The approach of replacing the vertical sync is producing encouraging results - even without replacing timing glitches occurring later in the vertical interval. The reason for this is uncertain at this time, but it is probably due to the timing relationships of the replaced sync and the horizontal sync pulses at the headswitching point. This point normally occurs near the end of the visible video field, but due to various reasons it can occur later - in the vertical interval. This is actually a good thing if you are trying to make the headswitching glitch non-visible, but it can make the sync unstable.

It was surprising just how stable the video output of a VCR is. The video line period was always very close to 64uS. Hardly any timing leeway was required in the software. It appears the main timing glitch comes from the headswitching, which can displace the field timing - making one field arrive early, and the other one late. This means those lines are long on one field, and short on the other! A function that automatically adjusts the vertical interval line lengths for minimal jitter still needs to be written.

In the example tape below, the headswitch was occurring on line 9 and 322, the offsets making line 9 longer, and line 322 shorter than normal.

Scope Pictures

Yellow = Video Input
Cyan = Video output

Weak/noisy Broadcast TV - HSYNC cleaning (mix of original squared HSYNC and software sync)
In hardware sync mode, the squared sync input is the dominant signal. The software latches the level after the transitions to prevent glitches.

stabilizer-Noisy%20Broadcast%20TV-HSYNC.gif

Weak/noisy Broadcast TV - VSYNC enforcement (total software sync replacement). The half-line offset is plainly visible. The software correctly identifies and syncs to field 1 and field 2 using pattern matching. However, if the sync is corrupted, this process can fail. More work is needed.

FIELD1:
You must be logged in to view this content; either login or register for the forum. The attached screen shots, before/after images, photos and graphics are created/posted for the benefit of site members. And you are invited to join our digital media community.


FIELD2:
stabilizer-Noisy%20Broadcast%20TV-VSYNC1.gif

Broadcast TV - Staircase Waveform - With stabilizer deliberately set to severely clip black and white levels for testing. The clipper response time is about 60 to 100 nS depending on level

You must be logged in to view this content; either login or register for the forum. The attached screen shots, before/after images, photos and graphics are created/posted for the benefit of site members. And you are invited to join our digital media community.


stabilizer-Noisy%20Broadcast%20TV-VSYNC2.gif

continued...



- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #3  
09-15-2018, 04:56 AM
lordsmurf's Avatar
lordsmurf lordsmurf is offline
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,503
Thanked 2,449 Times in 2,081 Posts
Video

Colossus capture card with a problem tape circa 1990. Badly adjusted recording VCR. No stabilizer.
Headswitching was timed to occur on lines 9 and 322, hence the video has no typical VHS glitch near the bottom of the frame! Flagging is visible at the top of the picture. It appears the field timing is offset in opposite directions.

Video1-No_Stabilizer.jpg

Not perfect, but much better! With VCR stabilizer OFF, external stabilizer ON, with completely new VSYNC pulses generated by microcontroller. A tiny bend is visible at the top of the picture. Stability is good. No special timing ramping was used, and the headswitching glitch was not removed (on lines 9 and 322). VSYNC line length was manually trimmed for best result. This needs to be made into an automatic function, as the timing varies as the tape progresses.

You must be logged in to view this content; either login or register for the forum. The attached screen shots, before/after images, photos and graphics are created/posted for the benefit of site members. And you are invited to join our digital media community.




Here is a progress update.

A prototype circuit for the video stabilizer has been built, and firmware development is underway. Some additional hardware changes may still be needed.

After doing some tests with a tape containing very bad flagging, I have a new idea about a way to repair it. On the example tape, there was a large head switching glitch on line 9 - making it over 80 microseconds long instead of the usual 64uS for PAL. Since this is happening in the vertical interval (where there is no visible video information - only signal timing info) it should be possible to "remap" the timing of the lines in this area to "smooth over" the abrupt change during the headswitch.

The Colossus capture card video decoder (ADV7441A) is rated for a +-5% HSYNC frequency variation, but this bad tape was actually about 30%!! No wonder it had trouble. By remapping the timing in the vertical interval, it should be possible to smooth this error over 25 lines and reduce the peak error to as little as 0.8uS (1.25%). Perhaps an even better way would be to ramp the timing changes up and down to avoid any discontinuity at the end points.

It's challenging though, as coping with variable input and output timing is quite a juggling act...

Spot the difference! The attached images show the timing glitch on the test tape mentioned.
(Actual scaling is 500mV/div as the probe was inadvertently set to x10)

Video2-New_Vsync.jpg

You must be logged in to view this content; either login or register for the forum. The attached screen shots, before/after images, photos and graphics are created/posted for the benefit of site members. And you are invited to join our digital media community.


video.gif

The PCB. Most of the ICs are SMD and mounted on the underside.

You must be logged in to view this content; either login or register for the forum. The attached screen shots, before/after images, photos and graphics are created/posted for the benefit of site members. And you are invited to join our digital media community.


Known Problems:
  • RCA Inputs are too close together
  • Sync sensing and gating needed modification *done*
  • 8v regulator runs hot when video clipping is used
video1.gif

continued...



- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
  #4  
09-15-2018, 04:59 AM
lordsmurf's Avatar
lordsmurf lordsmurf is offline
Site Staff | Video
 
Join Date: Dec 2002
Posts: 13,503
Thanked 2,449 Times in 2,081 Posts
Final PCB - Front view

panel6.jpg

Front panel - Draft version

You must be logged in to view this content; either login or register for the forum. The attached screen shots, before/after images, photos and graphics are created/posted for the benefit of site members. And you are invited to join our digital media community.


Final PCB Layout

/end of page



- Did my advice help you? Then become a Premium Member and support this site.
- For sale in the marketplace: TBCs, workflows, capture cards, VCRs
Reply With Quote
Reply




Similar Threads
Thread Thread Starter Forum Replies Last Post
JVC DR-MH30 service manuals + schematics [DOWNLOAD] jbd5010 Video Hardware Repair 1 04-05-2011 08:59 PM
JVC DR-M10 service manuals + schematics [DOWNLOAD] jbd5010 Video Hardware Repair 0 04-03-2011 06:04 PM

Thread Tools



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