This AutoHotkey v1 script helps synchronize video playback with audio tracks for Yarg songs by capturing timestamps in MPC-HC, calculating the needed delay, updating your song.ini, and keeping detailed logs.
- Capture video and audio timestamps from MPC-HC
- Calculate and apply the required delay for synchronization
- Update or insert
video_start_timein your song.ini file - Backup song.ini (optional)
- Log all changes to DelayLog.txt and DelayLog.csv
- Move/rename video files into the song folder
- Simple GUI with hotkeys for all actions
- Enable “Display File Name and Full Path in Title Bar”:
- View → Options → Player → Title Bar → check “Display full path”
- Enable milliseconds in Go-To dialog:
- View → Show Time → Milliseconds
- Set Video Time: Play your video in MPC-HC, pause at the vocal start, and press Ctrl+F1. The script grabs the video file’s path and timestamp.
- Grab Audio Time: Play your audio, pause at the vocal start, and press Ctrl+F2. The script grabs the audio file’s path and timestamp.
- Apply Delay: Press Ctrl+F3 to compute the delay, update song.ini, and log the change.
- Move Video File: Press Ctrl+F4 to move/rename the video into your song folder as
video.<ext>. - Clear Fields: Press Ctrl+F5 to reset all fields.
- Toggle Confirmations: Ctrl+F6 toggles confirmation pop-ups.
- Toggle song.ini Backup: Ctrl+F7 toggles song.ini backup.
- Open Folder: Click 📁 Open Folder to browse the song folder.
- Ctrl+F1 → Set Video Time & Path
- Ctrl+F2 → Grab Audio Time & Path
- Ctrl+F3 → Apply Delay + Logs
- Ctrl+F4 → Move Video File
- Ctrl+F5 → Clear All Fields
- Ctrl+F6 → Toggle confirmation MsgBoxes
- Ctrl+F7 → Toggle song.ini backup
- AutoHotkey v1
- MPC-HC with Go-To dialog enabled
- Each song folder contains (or will receive) a song.ini with [song] section
For more details, see the comments at the top of the script file.