jerrythegoat.com · notes

Video to Motion

How one YouTube clip becomes a body, a racket and a ball on a court. The plan, the examples, the research, where the footage comes from, and what broke and how it was fixed.

Ben Shelton, serve and volley · drag to orbit · the footage drives the scene · the ball is fitted to 235 detections in the footage

1 · The plan

Take one YouTube clip of a point and get back a 3D body, racket and ball on a court that a viewer can orbit. No markers, no multi-camera rig, no paid capture.

  1. 1
    Clipone point, cut from a court-level YouTube video
    yt-dlp
  2. 2
    Bodyjoints, shape and camera per frame from the single view
    FlowHMR · Modal
  3. 3
    Racketfive keypoints per frame, then a racket moved through the arm
    RacketVision + solver
  4. 4
    Ballauthored to the motion's events: toss, contact, bounce, next racket
    Python
  5. 5
    Persona body and face that are the player
    Rodin · Meshy
  6. 6
    Scenecourt, stadium, crowd; interactive on the web
    three.js

done looks like: the point plays from any angle and matches the footage frame for frame

2 · Examples

Three more points, each with the original footage inside the scene. Press Front, Side or Top; scrub the time.

Shelton serve · 3.8 px median racket error
Alcaraz forehand at 120 fps · the racket stays through contact
Djokovic return · 5.7 px, the cleanest groundstroke

3 · Research

How the best systems do it, and what one camera can do in 2026.

games like TopSpin 2K25 record players in mocap suits; nobody has a solved single-camera racket

Where it stands

each layer scored on its own, by eye against the footage · how it was tested

4 · Where the videos come from, and why quality differs

Same model every time. The camera and the frame rate decide the result.

Court Level TennisBen Shelton serving up close · court level practice 2025
YouTube
  • camera: low, directly behind the server
  • 4K 60 fps · 1080p 30 fps into the model
  • player about 490 px tall in frame

The best footage of the project: low and behind means the body is big and the swing plane is visible. This is the recipe every later point reuses.

the first accepted motion, Oct 22
Slow-Mo TennisBen Shelton practice set with Federico Coria · 4K 60 fps
YouTube
  • camera: low behind the baseline, both players in frame
  • 4K 60 fps · 1080p 30 fps into the model
  • serve contact partly above the frame

The only two-player point. Both bodies from one camera; the far player and hidden hands are less reliable.

14 seconds of rally · drift and hidden hands show over time
Court Level TennisAlcaraz vs Perricard · court-level matchplay 2025
YouTube
  • camera: low behind the near player
  • 4K 60 fps
  • served points with groundstrokes

Same recipe on matchplay. The racket blurs at the fastest frames because this is 30 fps into the model.

Alcaraz · serve at frame 249, two-handed backhand at 303 · 10.9 px
Court Level TennisCobolli vs Sinner · court-level practice set 2026
YouTube
  • camera: low behind the near player
  • 4K 60 fps
  • returns and served points

Returns are the cleanest: a compact swing in front of the body, 4.8 px median on Cobolli.

Sinner return · 293 frames · 10.7 px
FocusedTennisDjokovic · 2024 Indian Wells practice match, court level 4K 60 fps
YouTube
  • camera: court level behind the player
  • 4K 60 fps
  • one-handed slices at frames 145 and 312

The slices were first labelled topspin; the contact rule needs the shot type right, so they were relabelled by eye.

Djokovic IW-A · forehand, slice, forehand · 9.0 px
Slow-Mo TennisCarlos Alcaraz · forehand and backhand · slow motion 4K 120 fps
YouTube
  • camera: court level, side-rear
  • 4K 120 fps: the only high-frame-rate clip
  • 7 s of rallying

At 30 fps a fast swing is a blur and the detector loses the racket at contact. At 120 fps it keeps it through contact and the follow-through. The single largest gain, and it cost nothing.

frames where the racket was found
Tennis TVShelton vs Nakashima · Indian Wells 2025 highlights
YouTube
  • camera: elevated broadcast, full court
  • 1080p 50 fps into 1080p 30 fps
  • player about 220 px tall

A body, but no usable wrist or face: the player is too small. A benchmark for court-pattern context only.

ATP broadcast · body only
UCLA Tennis ConsultingSpencer Johnson (UCLA) vs Samir Banerjee (Stanford) · PlaySight
YouTube
  • camera: fixed club camera behind the baseline
  • 1080p 30 fps
  • one indexed point, charted shots

The only clip with a charted ball: tagged contacts and bounces from a Stanford dataset give the arcs; no racket solve.

college match · body plus the charted ball

5 · Problems, and how each was fixed

Every fix is measured on the same points before and after.

What went wrong, in pictures

The working files behind these runs were deleted to free disk space on November 5. These are the examples kept from them: one per kind of failure, with what was done about it.

Face and texture

The first heads were a generic head swapped onto the body at a fixed plane, with a photo of the player projected over it and a cap added. The photo smeared across the cheeks and chin, the eye sockets went dark, the cap floated above the scalp, and the new neck left a hard ledge. Projecting a photo moves texture, not shape, so it cannot make the skull, jaw or neck the player's.

Djokovic, frame 51 · left: the swapped head without photo or cap · middle: the chin and neck ledge · right: photo and cap added

The fix order: keep the body's original connected head and neck (first picture below), fit head shape from front, three-quarter and profile photos before any skin (MICA, second picture), and only then texture. The shape now connects to the body. It is still a generic face, which is why face likeness scores 2 above.

the original connected neck, kept
head shape fitted from three photos · still not a likeness

Body motion

The motion was the part that worked. Frame for frame through the serve, the fitted body follows the footage: toss, trophy pose, contact, landing. What fails is shape: every textured version shares one generic body, so the players look alike.

serve, frame by frame · top: footage · second row: the bare fitted body · below: three textured versions on the same motion

Player on the court

The first rally viewer put the body on a generic court with no link to where the camera was. Its own note said racket and court placement were unresolved, and over 14 seconds the player drifted. The fix is the gallery's own viewer: it starts at the footage camera, plays the footage frame for frame against the scene, and keeps the server behind the baseline (chart below).

before · Shelton practice rally in the first viewer · footage left, body on a generic court right

Racket model

The first racket mesh had capped string pegs and rough frame edges. It was rebuilt with hollow string passages and a rounded frame. The motion of the racket is the separate problem covered next.

racket frame · left: before · right: rebuilt

Ball

The ball's before and after is lower down: authored flights first, then detections fitted with ballistic flights through the footage camera.

The racket flipped at the wrist

A racket seen from behind looks the same rotated 180° about its handle, so a free-wrist fit flipped the face between frames: up to 5,400°/s. The fix solves the arm instead of the racket: forearm twist and wrist angle per frame inside anatomical limits, smoothed, spin capped at 2,500°/s, the racket following the hand where the detector sees nothing.

fastest racket spin per point · red: free-wrist fit · green: solved through the arm · no frame over the cap on 15 of 16 points
the same metric live: racket angular speed through the serve in section 2, frame by frame
red: old fit · green: arm solve · cyan: detections

The face was open at contact

From behind, tilting the face open or closed shrinks its outline by the same amount, so five points cannot tell them apart. The first solves had the face 36° open at contact, which a topspin forehand cannot do. The fix labels every contact frame and shot type by eye and holds the face for ±3 frames: vertical to 15° closed for topspin, 15° closed to 10° open for a serve.

34 labelled contacts · red: before · green: after the rule · 7 plausible → 34 · the rule chose the angle, not the video
camera looking along the face at contact · top: before · bottom: after

Why the racket still looks wrong, and what runs next

The detailed racket mesh changed the look, not the motion: both fits share the same pose per frame. The motion is limited by the detector. RacketVision finds the racket in a third of 30 fps frames and its two side points, the ones that set the face, are its weakest at 80%. The next run uses the hand instead of the racket edges: a hand model gives the grip every frame, the racket is rigid in the grip, and the face at contact comes from the hand and the contact frame rather than a rule.

The hand run, measured

WiLoR ran on every frame of three points (A10G on Modal, 26 cents). It did not help: the hitting hand is 17 to 42 px wide and blurred, and the hand's orientation scattered by tens of degrees between two crops of the same frame. Every hand-driven variant lost to the current fit on every check. The useful finding came from the checks themselves: the racket is bolted to the body's 30 Hz wrist, so its head moves at 12 to 16 m/s where a real serve is 37 to 39 and a real forehand 33. The jitter and the slow swing are the body wrist, not the racket solve, and the next fix fits the racket to the detections between body samples instead of to the wrist.

Shelton serve · red: free wrist · green: arm solve · blue: hand-driven · magenta: detections · yellow: the hand model
peak racket head speed · every fit sits at a third of the real number because the head follows the 30 Hz wrist
median racket error against the detections, on detected frames only · lower is better

face at serve contact, read off the footage: near vertical, a few degrees closed · free wrist −6° · arm solve −3° · hand-driven +30°, the wrong way

The server drifted inside the baseline

FlowHMR carried Shelton about 1.1 m into the court by contact because the footage crops the toss. The fix counter-translates his root along the court during the serve so both feet stay behind the line, then blends out over the first approach steps; the return and the volley are untouched.

court metres from the net · feet min 11.97 after the fix

The ball, by inference

No model gives the ball in 3D from one camera, and the Tennis Lab export has none. First version: flights authored to events read off the motion. Now: a ball detector on every frame (RacketVision's ball head, then TrackNetV3 on the 1080p and the 4K 60 fps source, on Modal), then piecewise ballistic flights fitted through the registered camera between contact and bounce, bounces on the court plane. That is the ball in the scene at the top of the page.

detections and the fitted flight reprojected on the footage
median error of the fitted flight against the detections, per segment · 1080p pixels · 235 of 315 detections used

serve 181 km/h at the strings · toss has no detections, the ball is above the frame, so release and contact follow the hand · the lab camera and the body placement disagree by about 3 m of depth near the net, so the fit keeps the volley on the racket and drops the detections of the return flight

drag to inspect

Before and after the rebuild

before · the FlowHMR body, as captured
after · the Shelton on the bike at jerrythegoat.com/usta
Rodin 2.5 body from three frames of the same video

6 · How it was tested

Three gates, in order. No blended quality score: a good-looking court cannot average away a detached racket.

  1. 1
    Every frame playsfrozen tails, duplicate and blank frames, stalls, unexplained cuts
    gate 1
  2. 2
    Tennis evidencebody, racket, contact and ball error against the footage
    gate 2
  3. 3
    Jerry's A/Bonly what passes both, compared blind
    gate 3

checked on a 301-frame serve and two broken copies · clean 100 · frozen tail 45 · shuffled 97 · two learned video judges ranked a broken copy above the clean one and were dropped

The measured serve

The one serve with measured body and racket motion. It has no video, ball or grip, so it is the yardstick the FlowHMR serve and the arm-solved racket get scored against next, not a scene. Retargeting it onto a skinned body missed the wrists by 90 to 120 mm, so the markers are used as measured.

Bath 4D_56 · body and racket markers, 301 of 301 frames at 180 Hz · yellow: three racket markers, rigid within 20 mm

7 · What came before

Seventy attempts, cut to the ones that changed direction.

ping-pong, TT3D · ball observed, scene calibrated, flight fitted, reprojected · the bar for the ball

Jerry's own strokes, timed

six forehands · normal speed, then 0.4×
seconds before contact · grey: load · blue: swing · 10 of 11 load before the swing

the earlier 0.18 s cutoff was three frames at 15 fps, not a standard · all six forehands kept moving outward 0.35–0.70 s after contact

Timeline

next · 120 fps footage only · racket silhouette in the lag phase · a hand model · ground truth under 5 px · a body and face that are the person