Repository navigation
Computer mode: subtitles with what the car was doing - #5
Merged
Merged
Conversation
Every long video in computer mode gets a subtitle track (3GPP timed text) with the gear, speed, steering, accelerator, brake, blinkers and Autopilot, read from Tesla's telemetry in the frames. Pure Go: nothing is re-encoded. - Every text sample has the same size, so the drive is made without reading a frame; a minute's text is made when a player reads it, two lines a second, each from the frame shown at its start. - The line: the gear, the speed (km/h or mph, as the web player shows it), the steering angle centred between two blocks that grow left or right (from 2 degrees, full at 180), the accelerator as five squares that fill, REM/BRAKE and the Autopilot mode. - The blinker arrows are always in the line and coloured transparent when off (QuickTime drops spaces at the end of a line, so the line would jump); a blinker that stays on blinks, half a second each. - The accelerator scale (0 to 100, or 0 to 1 in older data) is decided per drive, as the web player does. - A 'free' box fills each sample up to its size, also for frames without telemetry. - The track is labelled with the drive's language (Dutch or English) so players can pick it. - The web UI sends its speed unit along when computer mode is switched on. Checked in QuickTime and VLC with real drives, and on the Pi Zero 2 W.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Every long video in computer mode gets a subtitle track (3GPP timed text) with the gear, speed, steering, accelerator, brake, blinkers and Autopilot, read from Tesla's telemetry in the frames. Pure Go: nothing is re-encoded.
Checked in QuickTime and VLC with real drives, and on the Pi Zero 2 W.
Summary by CodeRabbit