Simple macOS SWIFT/UIKit application
Budget: €250 – €750 EUR
Create a macOS application using SWIFT and UIKit. The app reads a closed caption file, and detects the encoding – and allow the user to specify (select) an encoding. Encodings are ASCII, Windows-1251 and mac, and UTF-8. The main window shows the file content in two scroll lists (both, showing the same file content); left side from caption start, right side until the last (end) caption. Allows the user to select a caption (from start-list and from end-list), will show the caption start time (start/end) in a text-input field (to allow to change). The user then saves the caption (file-save), and the captions are re-calculated and saved (save format is fixed UTF-8).
Allow multiple document file windows one per file.
The calculation is the following applies a rubber band-adjustment to re-time start and end time (formula in project).
Display file dialog
Display caption window
Menu File = about/open/save
(time is milli-seconds = second * 1000)
Start time = start (of selected caption)
End time = end (of selected caption)
New start = nStart (of selected caption)
New end = nEnd (of selected caption)
offset = start – nStart (can be zero, and also negative)
length = end – start
nLength = nEnd – nStart
factor = length/ nLength (<1, 1, or >1)
captions are calculated like this: (iterated from first to last caption)
new time = (current_time * factor) - offset
to run with macOS 10.13 or later (refer to SDK for build)
only use macOS frameworks=no others
attached
1) a test file:
2) a variants file to test variants
3) a fixed file (test.srt starting at 10sec, end=40min)
Allow multiple document file windows one per file.
The calculation is the following applies a rubber band-adjustment to re-time start and end time (formula in project).
Display file dialog
Display caption window
Menu File = about/open/save
(time is milli-seconds = second * 1000)
Start time = start (of selected caption)
End time = end (of selected caption)
New start = nStart (of selected caption)
New end = nEnd (of selected caption)
offset = start – nStart (can be zero, and also negative)
length = end – start
nLength = nEnd – nStart
factor = length/ nLength (<1, 1, or >1)
captions are calculated like this: (iterated from first to last caption)
new time = (current_time * factor) - offset
to run with macOS 10.13 or later (refer to SDK for build)
only use macOS frameworks=no others
attached
1) a test file:
2) a variants file to test variants
3) a fixed file (test.srt starting at 10sec, end=40min)