Fall 2023 Internship @ Cineric, Inc.

During my fall 2023 internship at Cineric, Inc., I learned the intricacies of the company’s comprehensive restoration workflow, gaining knowledge in film scanning, digital imaging technology, and color and data management. Assigned to various departments, I observed and shadowed the dedicated staff involved in restoring cinematic masterpieces like Michael Powell’s Peeping Tom (1966).

cineric_1

Cineric is a highly specialized lab with the capability to scan and restore obscure formats and severely deteriorated photographic materials. The highlight of my experience was delving into the world of wet-gate scanners, witnessing the seamless fusion of photo-chemical and digital technology. Notably, all scanners are bespoke creations by my internship supervisor, Simon Lund, the Director of Technical Operations. With 30 years of expertise, Cineric has developed its own liquid gate technology, producing custom gates to handle diverse formats. The company’s commitment to innovation is evident in the construction of a dedicated scanner for 35mm paper prints. This internship has been immensely enriching, and I extend my gratitude to Simon and the entire staff for their invaluable guidance and mentorship.

cineric_1

Data Tango: Exploring Restic

restic

What is restic?

Restic is a free and open source backup program available on Linux, BSD, MacOS, and Windows. It works with many different storage types (Local, Network, Cloud) and is designed to create and manage backups.

Key features:
Deduplication
Encryption
Incremental Backups
Snapshot Management
Cross-platform Compatibility

Create Restic repository as backup destination

restic -r D:/dpx-restic init

Initiate backup

restic -r D:/dpx-restic backup C:/Users/MATT-THINKPAD/Documents/dpx-source/

Check snapshots

restic -r D:\dpx-restic snapshots

List files in repository

restic -r D:\dpx-restic ls latest

Verifying backups

restic check D:\dpx-restic

Restoring files

restic -r D:\dpx-restic\ restore "latest:/C/Users/MATT-THINKPAD/Documents/dpx-source/" --target "C:\Users\MATT-THINKPAD\OneDrive - nyu.edu\Desktop\dpx-restore"

Restore files from a specific snapshot

Get a list of snapshots

restic -r 'D:\dpx-restic\' snapshots

Restore from snapshot

restic -r D:\dpx-restic restore 2297f849 --target "C:\Users\MATT-THINKPAD\OneDrive - nyu.edu\Desktop\dpx-restore"

Raspberry Pi As Media Player & Video Looper

ducky and pi

ducky and pi

I needed a simple and elegant solution to playback digital videos for Home Movie Day 2022. I simply did not have budget for BrightSign players and I also did not want to deploy laptops onsite just to loop videos. Fortunately, Rasperry Pis came in as a great alternative.

While it was my first time using a Raspberry Pi, its set up is pretty easy. The Raspberry Pi Foundation has an easy to follow set-up guide that walks you through it. The bulk of the set-up involves loading the desired operating system into the Raspberry Pi with the help of the Raspberry Pi Imager. The Raspberry Pi Imager offers numerous operating systems, but the latest Raspberry Pi OS (64-bit) release is generally a good option.

One may utilize VLC media player in the operating system to playback media, however another option is Pi video looper that requires the ‘Buster OS’. The video looper will automatically loop videos (H264, .MP4) found in any USB stick that is connected to the Raspberry Pi. This makes it perfect for art installations, fairs, theatre, events, infoscreens, and advertisements etc. What I like about it is its capability to automatically detect a new USB stick and its contents when it is hot swapped. This allows change of content on the fly.

sudo apt-get update

sudo apt-get install -y git

git clone https://github.com/adafruit/pi_video_looper.git

cd pi_video_looper

sudo ./install.sh

The entire screen will turn black with a prompt: “Insert USB drive with compatible movies. press ESC to quit” after installation. Now its time to plug in your USB stick with your videos! Enjoy!

Full written guide here. YouTube video guide here.

Tool to Combine PDF Files

PDF toolkit is a great PC tool for splitting and merging PDF files. It is free and has a GUI and CLI verison.

I use it frequently to merge PDFs and use the command below.

pdftk.exe *.pdf cat output combined.pdf

OCR to produce .srt subtitles

ocr

I recently tinkered with Torbjørn Pedersen’s (National Library of Norway) Python script video-ocr2srt to extract burnt-in English subtitles from a digital video. The script performs optical character recognition (OCR) on video files and generates a .srt subtitle file with a detailed JSON file.

The script leverages on the EAST text detector model for text detection and the Pytesseract library for OCR. I achieved decent results with it, which may improve with a better quality video file. I suspect the extremely poor transfer of the film may be the cause of numerous duplicate lines and inclusion of stray special characters in the subtitles. But what it does so well is the heavy lifting creating the in and out points for the subtitle lines ╰(°▽°)╯! It processed a 110 minute video under 40 minutes, however users will need to ‘clean’ the .srt file for spelling, grammar, punctuation, and timing after.

python video-ocr2srt.py -v input -m frozen_east_text_detection.pb -l eng -f 10 -p