Answers.Body: <p>Just subtract the first frame index from the expression:</p>
  
  <pre><code>overlay=x='n-438':y='n-438':enable='between(t,438/25,450/25)'
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2018-06-26T07:58:40.390Z
Answers.LastActivityDate: 2018-06-26T07:58:40.390Z
Answers.UserDisplayName: Gyan
Body: <p>I want to perform a simple calculation to move an image along the video with given frames as the length of the animation:</p>
  
  <pre><code>overlay=x='( 1 * INDEX)':y='(1 * INDEX)':enable='between(t,438/25,450/25)'
  </code></pre>
  
  <p>Obviously INDEX doesn't exist, but for the start frame of 438, I want index to equal 0, for the frame 439 I want INDEX to equal 1, and so on and so forth. </p>
  
  <p>The goal is to have the image move one pixel for every frame after 438 and hide it at frame 450</p>
  
Tags: <ffmpeg><animation><animation-rendering>
Title: Is there a way to basically start a counter from a given frame in ffmpeg?
UserDisplayName: Shannon Hochkins
ThreadText: # Is there a way to basically start a counter from a given frame in ffmpeg?
  
  (Asked by: username_0 on 2018-06-26)
  
  I want to perform a simple calculation to move an image along the video with given frames as the length of the animation:
  
  ```
  overlay=x='( 1 * INDEX)':y='(1 * INDEX)':enable='between(t,438/25,450/25)'
  
  ```
  
  Obviously INDEX doesn't exist, but for the start frame of 438, I want index to equal 0, for the frame 439 I want INDEX to equal 1, and so on and so forth.
  
  The goal is to have the image move one pixel for every frame after 438 and hide it at frame 450
  
  **Tags:** ffmpeg, animation, animation-rendering
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2018-06-26. Score: 1
  
  Just subtract the first frame index from the expression:
  
  ```
  overlay=x='n-438':y='n-438':enable='between(t,438/25,450/25)'
  
  ```
  
  
  ---
  
  