<p>I have been using the following command to successfully extract a list of frames from videos. I tried to use it to extract 12,227 frames and the command exits without generating any frames and error messages. I suspect there may be a limit on the size of the filter script file but can't seem to find what is the limit and how to increase it. Can anyone help please? Thank you.</p>

<p><code>ffmpeg -i video.mp4 -filter_script:v Frames.txt -vsync 0 -video-%06d.jpg</code></p>

<p>content of Frames.txt file is:</p>

<pre><code>select='eq(n,70)
+eq(n,108)
+eq(n,183)
+eq(n,191)
+eq(n,197)
..... etc
+eq(n,18948)
'
</code></pre>

CC BY-SA 4.0
2020-05-06T19:07:35.460Z
Share full log.
Gyan
CC BY-SA 4.0
2020-05-06T21:18:26.930Z
@Gyan Here is full log:

https://drive.google.com/open?id=1uRivxjn4EhOkmWAGVnEfSadpidlpjX5V
dzeek
CC BY-SA 4.0
2020-05-06T21:25:56.670Z
The command works when I reduce the number of frames to ~8000.
dzeek
<ffmpeg>
ffmpeg - Max size of filter_script file
dzeek
# ffmpeg - Max size of filter_script file

(Asked by: username_0 on 2020-05-06)

I have been using the following command to successfully extract a list of frames from videos. I tried to use it to extract 12,227 frames and the command exits without generating any frames and error messages. I suspect there may be a limit on the size of the filter script file but can't seem to find what is the limit and how to increase it. Can anyone help please? Thank you.
ffmpeg -i video.mp4 -filter_script:v Frames.txt -vsync 0 -video-%06d.jpg
content of Frames.txt file is:
select='eq(n,70)
+eq(n,108)
+eq(n,183)
+eq(n,191)
+eq(n,197)
..... etc
+eq(n,18948)
'

**Tags:** ffmpeg

> **Comments:**
> **username_1**: Share full log.  
> **username_0**: @username_1 Here is full log:  https://drive.google.com/open?id=1uRivxjn4EhOkmWAGVnEfSadpidlpjX5V  
> **username_0**: The command works when I reduce the number of frames to ~8000.  

---

## 0 answers

