[FFmpeg-devel] [PATCH v1] avformat/mux: Set AV_PKT_FLAG_KEY for is_intra_only packet

Derek Buitenhuis derek.buitenhuis at gmail.com
Fri Apr 17 16:54:18 EEST 2020


On 17/04/2020 14:38, Nicolas George wrote:
> James Almer (12020-04-17):
>> The movenc test does not produce any files. It creates bogus packets
>> that are dumped into the AVOutputFormat output using a custom
>> AVIOContext on each stream that just calculates an md5 hash of the data.

It has an option for this. You could make it default.

>> I think the one line change i posted is enough to reproduce the changes,
>> and we don't need the patch author to essentially rewrite the movenc
>> test just to dump everything into a file we can pass to ffprobe that may
>> or may not be parseable to begin with.
See above. There is no need to rewrite.

> 
> Yes, for that I agree.
> 
> But urgh, is there a very good reason for the movenc test to be that
> kind of abomination?

Can you elaborate on why it's an abomination? It's so far been the only thing
that has kept people from breaking movenc API use several times, specifically
in relation to how it behaves for outputting fragments - and ffmpeg.c does not
necessarily exercise these paths. API unit tests are good thing in my books,
as an API-only user who has seen unintentional API breaks because ffmpeg.c
doesn't use something specifically.

- Derek


More information about the ffmpeg-devel mailing list