Touchtrack generates haptics for a video as an srt(like a subtile file), u can only open the srt in the modded vlc studio which is given in the releases
This started when i was watching the F1 movie in a 4DX thetre, feeling that haptics gave a massive immersion boost
Later, Apple released its haptic trailer for the F1 movie, which showed how haptics could be used in movies on phone. initially i didnt had time to build it but 1 year later i finally decided to build it and here it is.
The goal is simple: analyze a video's events, generate haptic events automatically like u put a video and it automatically generates subtitles like that,u can play them back through a modified version of VLC because no other app supports haptics like that so i built it usign using standard .srt subtitle files, The haptics work just like subtitles.
- Detects events using CLAP
- Converts audio into haptic subtitle events
- Temporal smoothing to remove noisy detections
- Generates standard
.srtsubtitle files
Video -> Extract audio ->CLAP ->Mapper ->Temporal Filter ->output.srt
Supported haptic events include:
- ENGINE_REVVING
- WHOOSH
- METALLIC_HIT
- BIG_BOOM
- THUNDER
- WIND_GUST
- FOOTSTEP_HEAVY
- SMALL_CLICK
- PISTOL_SHOT
The modified VLC player contains 82 built-in haptic patterns, These patterns were made by ai these patterns range from impacts and explosions to vehicles, weather, footsteps, and UI feedback etc.
but the program currently generates 9 core haptic events, with support for more events mapping planned in future releases.
- Python 3.11+
- FFmpeg
- PyTorch
- Transformers
- librosa
git clone https://github.com/<your-username>/TouchTrack.git
cd TouchTrack
python -m venv .venv
source .venv/bin/activate
Place a video named
video.mp4
inside the project directory.
Run
python main.pyThe generated srt will be saved as
output.srt
Now play ur video in the modded vlc and add subtitle track as the srt
TouchTrack currently uses CLAP for event detetection.
while clap is good it sucks on this kind of stuff
in future i wwanna replace CLAP with another detection models to give better detection
Touchtrack is designed to work with a modified version of VLC Android that supports haptic subtitle playback.
The original haptic implementation was inspired by: https://github.com/sandyagur8/vlc-android
That fork targets an older version of VLC Android and no longer builds correctly, so the haptic implementation was ported to a newer VLC Android release.
Instructions for building the modified VLC player are in the vlc directory.
MIT
