[FFmpeg-devel] [PATCH] avformat/concatdec: add support for setting input options

Jan Ekström jeebjp at gmail.com
Mon Jan 25 13:28:47 EET 2021


On Mon, Jan 25, 2021 at 11:52 AM Nicolas George <george at nsup.org> wrote:
>
> Jan Ekström (12021-01-22):
> > This way protocol or format related options can be set for all
> > of the files opened during concatenation.
> > ---
> >  libavformat/concatdec.c | 26 +++++++++++++++++++++++++-
> >  1 file changed, 25 insertions(+), 1 deletion(-)
>
> I know it is a little more work, but options need to be set segment per
> segment, in the script file.

I knew that would be useful, but opted out of it since:
1. For now I didn't yet need it.
2. I wanted to keep out of the actual playlist parsing code.
3. Possible security ramifications (since we already have "safe" /
"unsafe" playlist entries).

It is a relatively simple extension yes, if you ignore the points 2/3.
You have an AVDictionary per file and after initializing the
AVDictionary in the opening function and applying global input options
- copy the contents of the per-file options there, too.

Jan


More information about the ffmpeg-devel mailing list