[FFmpeg-devel] [PATCH] libavfilter/f_select: response file support

Carl Eugen Hoyos ceffmpeg at gmail.com
Wed Apr 17 01:50:27 EEST 2019

2019-04-16 19:14 GMT+02:00, Jonathan Gilbert <logic at deltaq.org>:
> Hello :-)
> I had a project recently where I wanted to externally specify a list
> of specific frame numbers to drop. I understand this can be done with
> select expressions like "not(eq(n,45)+eq(n,47)+eq(n,75))", but in my
> case I wanted to drop nearly 16,000 frames, which would have required
> a command-line over 250 KB in size. I chose a different approach: I
> have added functionality to f_select.c so that you can specify the
> list of frames you want to include/exclude in an external response
> file. I have successfully used this code for my project, and thought I
> might submit it up to for consideration. :-)
> I've never submitted a patch in this format before, I hope I'm doing
> this correctly.

This is definitely not the only issue:
Instead of using malloc() and friends, please see libavutil/mem.h
for the appropriate functions.

Carl Eugen

More information about the ffmpeg-devel mailing list