<p>I want to get a stationary view on a moving subject, which needs to be staying within his square box on the final video (the camera should follow him).</p>

<p>So far I got away by clicking every 15 second to create a new keyframe and drag the canvas such that the object is centred in the final 1×1 layout.</p>

<p>I am going to automate this with a simple Python script.</p>

<p>The output of the script could be a sequence of coordinates, in whatever format Premiere wants them, so that it would replace my desperate clicking (45 hours of footage overall × 4 × 3600 = 650k clicks). Hence, does anyone know how to import / export keyframes so that I can figure how to craft such a hack?</p>

<p>Alternatively, but I don't fancy this, I can crop the video using ffmpeg and import that, but that wouldn't allow for later corrections.</p>

CC BY-SA 4.0
2020-02-26T08:55:59.000Z
Premiere doesn't support Python scripting.  DaVinci Resolve does.
Jason Conrad
CC BY-SA 4.0
2020-02-26T14:51:56.547Z
After Effects would probably be more appropriate for [tracking a moving subject](https://youtu.be/tqWWhChc8RA), the process is almost entirely automated.
Ambo100
CC BY-SA 4.0
2020-02-26T16:58:24.657Z
Yeah, @Ambo100, my student yesterday showed me some dark magic in AE (I've never used before). Haha, I still think programming is easier 
Atcold
<premiere><adobe><keyframes><automation><script>
Importing/automating keyframes in Adobe Premiere
Atcold
# Importing/automating keyframes in Adobe Premiere

(Asked by: username_0 on 2020-02-25)

I want to get a stationary view on a moving subject, which needs to be staying within his square box on the final video (the camera should follow him).

So far I got away by clicking every 15 second to create a new keyframe and drag the canvas such that the object is centred in the final 1×1 layout.

I am going to automate this with a simple Python script.

The output of the script could be a sequence of coordinates, in whatever format Premiere wants them, so that it would replace my desperate clicking (45 hours of footage overall × 4 × 3600 = 650k clicks). Hence, does anyone know how to import / export keyframes so that I can figure how to craft such a hack?

Alternatively, but I don't fancy this, I can crop the video using ffmpeg and import that, but that wouldn't allow for later corrections.

**Tags:** premiere, adobe, keyframes, automation, script

> **Comments:**
> **username_1**: Premiere doesn't support Python scripting.  DaVinci Resolve does.  
> **username_2**: After Effects would probably be more appropriate for [tracking a moving subject](https://youtu.be/tqWWhChc8RA), the process is almost entirely automated.  
> **username_0**: Yeah, @username_2, my student yesterday showed me some dark magic in AE (I've never used before). Haha, I still think programming is easier   

---

## 0 answers

