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

Jan Ekström jeebjp at gmail.com
Fri Apr 17 16:46:31 EEST 2020


On Fri, Apr 17, 2020 at 4:37 PM James Almer <jamrial at gmail.com> wrote:
>
> 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.
>
> 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.

You can give the test the parameter 'w' for writing files or 'h' for
help (it's calling getopt so I think this is `-w` and `-h`).

I think the test itself by default just doing memory I/O and
calculating the md5 is not a bad idea. Just means you have to re-run
it manually to get actual output files. Also it is one of the few
API-based tests that we have around.

For output files, you can check the diff with something like L-SMASH's
boxdumper with the `--box` parameter, which dumps the box structure of
the file. Then you can diff those two outputs from before/after.

Best regards,
Jan


More information about the ffmpeg-devel mailing list