Answers.Body: <p>The direct selection method is simple.</p>
  
  <pre><code>ffmpeg -i in.mp4 -vf select='not(eq(n,45)+eq(n,47)+eq(n,75))',setpts=N/FRAME_RATE/TB out.mp4
  </code></pre>
  
  <p>Frame count starts from zero.  Audio is ignored.</p>
  
  <p>(I'll check for a detection method)</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-24T11:01:06.290Z
Answers.Text: Thank you very much - you again resolved my problem. I appreciate your wisdom and your goodwill to dedicate a significant part of your precious time to help me and others. - A potential detection method will be of course interesting, too.
Answers.UserDisplayName: MarianD
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-14T05:26:43.773Z
Answers.Text: Key to this filtergraph is the "setpts", otherwise it just repeats the last frame it decoded.
Answers.UserDisplayName: Ben Jaguar Marshall
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2019-01-14T05:53:05.720Z
Answers.Text: After some study, what you probably want is the "removelogo" filter.
  "Suppress a TV station logo, using an image file to determine which pixels comprise the logo. It works by filling in the pixels that comprise the logo with neighboring pixels."
Answers.UserDisplayName: Ben Jaguar Marshall
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2017-03-24T07:38:01.417Z
Answers.LastActivityDate: 2017-03-24T07:38:01.417Z
Answers.UserDisplayName: Gyan
Body: <p>I have an input video and I want to <em>omit</em> (or <em>delete</em>) individual frames from the next processing (because of the <em>added disturbing big text</em> irregularly occurred on top of some individual frames).</p>
  
  <p>I have the <code>list of ordinal numbers</code> of these frames but maybe it would be better to <code>recognize them</code> during processing by some filter (if it is possible; the text is <em>the same</em> and <em>at the same position</em>).</p>
  
  <p>Is there some way how to <em>exclude them from the next processing</em>?</p>
  
  <p>(The list has about 20 items.)</p>
  
Tags: <ffmpeg>
Title: FFmpeg - how to omit individual frames by the list of their numbers?
UserDisplayName: MarianD
ThreadText: # FFmpeg - how to omit individual frames by the list of their numbers?
  
  (Asked by: username_0 on 2017-03-24)
  
  I have an input video and I want to *omit* (or *delete*) individual frames from the next processing (because of the *added disturbing big text* irregularly occurred on top of some individual frames).
  
  I have the `list of ordinal numbers` of these frames but maybe it would be better to `recognize them` during processing by some filter (if it is possible; the text is *the same* and *at the same position*).
  
  Is there some way how to *exclude them from the next processing*?
  
  (The list has about 20 items.)
  
  **Tags:** ffmpeg
  
  
  ---
  
  ## 1 answers
  
  ### Answer by username_1 on 2017-03-24. Score: 2 | Accepted answer
  
  The direct selection method is simple.
  
  ```
  ffmpeg -i in.mp4 -vf select='not(eq(n,45)+eq(n,47)+eq(n,75))',setpts=N/FRAME_RATE/TB out.mp4
  
  ```
  
  Frame count starts from zero. Audio is ignored.
  
  (I'll check for a detection method)
  
  > **Comments:**
  > **username_0**: Thank you very much - you again resolved my problem. I appreciate your wisdom and your goodwill to dedicate a significant part of your precious time to help me and others. - A potential detection method will be of course interesting, too.  
  > **username_2**: Key to this filtergraph is the "setpts", otherwise it just repeats the last frame it decoded.  
  > **username_2**: After some study, what you probably want is the "removelogo" filter. "Suppress a TV station logo, using an image file to determine which pixels comprise the logo. It works by filling in the pixels that comprise the logo with neighboring pixels."  
  
  ---
  
  