VITC & Subtitles - harrypm/vhs-decode GitHub Wiki

VITC - Vertical Interval Time Code

What is Vertical Interval TimeCode (VITC)

https://en.wikipedia.org/wiki/Vertical_interval_timecode

Example of a VITC Readout in HH.MM.SS.FF

 frame:0    pts:7920    pts_time:0.088
 timecode=00:00:06:10
 lavfi.readvitc.tc_str=01:03:02:24
 frame:1    pts:11520   pts_time:0.128
 lavfi.readvitc.found=1
 lavfi.readvitc.tc_str=01:03:03:00

At the top of the visible image there are dots and dashes these represent bits of data that can embed timecode data for the absolute position of media on a tape.

Note: Blackmagic/AJA/Magewell A/D units (ADV-7850) have VITC processing check your reference captures if using industry-standard equipment over SDI you will most likely have SMPTE TC.

How do I create VITC?

There is currently Unai.VITC

Video 8 and Hi8

They use Sony's RCTC (Rewritable Consumer Timecode)

SMPTE VITC and S-VHS

Formats like S-VHS, Betacam, 1" Type C all use VITC when recorded on a higher-end device will normally have SMPTE VITC it looks like this notice the lines at the top above the video frame:

This is for normal 720x608 archive feeds where the top VBI data is exposed or full-frame archives

To export your TBC to VITC readable media:

ld-chroma-decoder --ffll 2 --lfll 308 --ffrl 2 --lfrl 620 input.tbc

Extracts and exports VITC Timecode to a text file:

Simply replace datainput.mkv and vitc.txt names acordingly

ffmpeg.exe -i datainput.mkv -vf "readvitc=scan_max=-1,metadata=print:file=vitc.txt" -f null -

VITS & Teletext/Closed Captioning

NTSC Closed Captioning

Closed Captioning EIA-608

There is CC or Closed Captions in most TV broadcast recordings and some VHS releases

https://github.com/amiaopensource/sccyou

sccyou is a bash script that allows easy generation of standard .srt files

PAL Teletext

Thanks to Ali1234 for the R&D into this.

VHS-Teltext Traslator

https://github.com/ali1234/vhs-teletext

Raspberry Pi based CC generator (Uses Composite, can be used on TRRS 3.5mm jack current pi's or older pi's)

https://github.com/ali1234/raspi-teletext

SMTPE Linear Timecode

ltcsmpte Can handle genaration and decoding of said timecdoe.

https://x42.github.io/libltc/ https://github.com/x42/ltc-tools https://github.com/x42/libltc