[FFmpeg-devel] [PATCH 2/3] lavc/assenc: set AV_CODEC_CAP_SINGLE_SUB_RECT
Nicolas George
george at nsup.org
Wed Feb 22 15:24:26 EET 2023
Ridley Combs (12023-02-21):
> Fair enough, if we're fine with breaking the existing case further.
> Should I simply drop rectangles after a first, or return an error?
You have to ask? Between reporting an error and silently corrupting
data, the answer is never in doubt.
> This is only true for audio/video encoders; subtitle encoders still
> use a different API, which does not have M:N support. There's some
> long-ongoing work to change that, but for now, this seems like the
> only way to deal with this case before that API overhaul.
Oh, I had forgotten this. In that cas, I would suggest to keep API
changes to a minimum:
- Have assenc print and return an error if there are several rectangles.
- Add a special case in the command-line tool ffmpeg based on the
encoding codec. Or probably even better, for all text subtitles.
This will not interfere with overhauling the subtitles encoding API.
Of course, other developers might disagree, give it a few days.
Regards,
--
Nicolas George
More information about the ffmpeg-devel
mailing list