I Used AI to Edit 7 Years of Old Dance Videos
We turned seven years of raw dance class footage into 40+ raw music videos without editing a single one by hand. I did it by working with Claude, an AI assistant, in my Mac's terminal.
The footage was a mess. It came from dozens of iPhones and cameras across two external drives and an iCloud album. Nothing was labeled beyond a timestamp. Every class had 5 to 25 takes of the same song, filmed from different angles, starting at different moments.
This is the technical side: the setup, the workflow, and what I learned. If you’re here for the dancing, every video is in What We Learned From Years of Hosting Free Dance Classes for the Community.
The setup
Everything ran locally on one Mac. Nothing was uploaded to an editing service.
| Piece | What it did |
|---|---|
| Claude Code | The AI assistant in the terminal. It wrote and ran the scripts, checked results and fixed its own bugs. |
| Two external drives | A 5 TB archive drive and an SSD for working copies and renders. The Mac’s internal disk was too full. |
| ffmpeg | Cutting, color, audio repair and encoding, using the Mac’s hardware encoder. |
| Python (librosa, numpy) | Audio fingerprinting, beat detection and sync. |
| Shazam (shazamio) | Identifying each song. |
| PANNs | Telling music apart from talking and cheering. |
| Apple Vision | Counting people in a frame to find teacher solo takes. |
| whisper.cpp | Transcribing what teachers said, to find quotes. |
All of these are free. The only paid piece was the Claude subscription.
The workflow
I described what I wanted in plain English (“sync every take of this class into a music video”). Claude built the pipeline one step at a time, and I reviewed each result before it moved on.
- Gather and dedupe. Download the iCloud album (1,113 items), sort it into the archive by date, and send 67 duplicates to the Trash.
- Group the takes. Find every clip in a class folder that plays the same song, using audio fingerprints. The landmark hashes work the way Shazam does.
- Line them up. Compare each take’s fingerprint against one master take to get its exact offset, within a frame. When the music was too quiet, fall back to matching the rhythm of the beats.
- Drop the bad takes. Skip portrait clips, clips with black bars, and the first and last seconds where someone is pressing record.
- Cut on the beat. Detect the beats, then switch cameras on them so every group gets screen time. Check the sync every 3 seconds and drop any take that drifts or restarts the song.
- Name the song. Run Shazam on two windows and keep the result only if both agree.
- Find the teacher solos. Scan 753 clips with Apple Vision. Clips where one or two people dance the whole song are likely the teacher’s demo.
- Pull quotes. Transcribe the talking before the music and pick one line from the teacher to open the video.
- Fix the audio. Choose the cleanest-sounding phone as the soundtrack, repair clicks and clipping, and normalize to −16 LUFS with a limiter.
- Render and check. Render each video, then measure its length, sync, peak level and click count before calling it done.
Lessons learned
What AI was great at
- The tedious 90%. Matching hundreds of takes by sound, finding beats and checking sync across 40 videos is work I would never have done by hand.
- Fixing its own mistakes. When a check failed, Claude read the error, found the cause and patched the script. My portrait-video filter missed clips at first, and the fix took one round.
- Measuring instead of guessing. Every render got a numbers check: duration, sync drift, peak level, clicks.
What broke
- Phone audio. The “clipping” I heard was really clicks from phone mics overloaded by a loud speaker. The fix was to pick the cleanest phone per class, then repair it. 34 of 43 videos now measure 0–2 clicks, down from as many as 250. A few loud rooms still have some.
- A wrong measurement. At first the audio check mixed both channels together and reported fake peaks. Once it measured each channel, the old videos turned out never to have clipped at all.
- Hardware. The Mac’s disk filled up mid-render, and the archive drive disconnected during a long job. Render to a fast external SSD and keep working copies off the archive drive.
- Takes that restart the song. Some groups started over halfway through, which threw off the sync. The fix was checking sync in short chunks and only using each take where it stays in time.
Where a human was still needed
- Context. Claude filed some normal Monday classes as Red Bull rehearsals until I corrected it. It can’t always know what a night was about.
- Spotting the teacher. It missed one teacher demo take that I recognized right away. After that, it rescanned everything.
- Taste. Which quote opens the video, whether a duo counts as a solo, and when a cheer is part of the moment were all my calls.
- People. Names, Instagram handles and permission to feature someone always come from me, never a guess.
If you film classes, do this
Good footage made the AI part easy. Bad footage made it impossible: one whole class couldn’t be cut because every take was vertical.
- Keep phones away from the speaker. Most of the audio damage came from the mic being too close.
- Let the music play from the top. Takes that start mid-song are harder to sync.
- Film the teacher alone, once. That one take becomes the best practice video for everyone.
- Keep everything. Storage is cheap. You can’t go back and film 2017.
See all the finished videos in What We Learned From Years of Hosting Free Dance Classes for the Community. You can find every teacher and dancer from these classes on our Instagram, @friends.who.dance, where all their handles are tagged.
AI video editing · Claude Code · Dance class videos · Beat-synced music videos · Friends Who Dance · SongMark
Try the new SongMark
The quick tutorial walks you through slowing down a practice video, mirroring it, marking and looping a section, and filming yourself. Free in your browser, on your phone or computer.
Launch Tutorial