Shearwater CSV log file conversion to Video Subtitle

Please register or login

Welcome to ScubaBoard, the world's largest scuba diving community. Registration is not required to read the forums, but we encourage you to join. Joining has its benefits and enables you to participate in the discussions.

Benefits of registering include

  • Ability to post and comment on topics and discussions.
  • A Free photo gallery to share your dive photos with the world.
  • You can make this box go away

Joining is quick and easy. Log in or Register now!

tongl

Registered
Messages
11
Reaction score
25
Location
UK
# of dives
200 - 499
Wrote an R script to extract depth, TTS, and temperature from the CSV file exported with Shearwater Cloud, apply timestamp shift, and convert to SRT file to be imbedded in Go Pro videos.
It's in R because that's what I use for work... feel free to convert to Python etc.


Example:
source("shearwater_srt.R")
shearwater_srt_shift("Perdix AI[340DB72E]#246 2025-2-2 12-14-18.csv", "Dive1.srt", 42)

This will create a SRT file with 0 min run time start at 42 seconds in the video. Use negative number if video starts after dive computer log started.
Allignment of the subtitle to video was discussed in another GoPro subtitle post, simply film the dive computer for a few seconds at some point of the dive.

Screenshot 2025-02-07 120502.jpg
 
Nice and snappy 👍🏼
Helpful MacOS tips for the README.md:

Code:
https://brew.sh/
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
brew install r
R
install.packages(c('data.table','stringr'))

Would be nice to pythonify (perhaps via pandas) with mini-OO / class methods for the timeshifts and unit conversions, etc
 

Back
Top Bottom