[FFmpeg-devel] [PATCH v3 0/3] avformat/hashenc: add streamhash muxer

Moritz Barsnick barsnick at gmx.net
Thu Sep 12 12:23:03 EEST 2019


Adds a streamhash muxer, much like the hash muxer, but analyzing each stream
independently. I chose not to add a "streammd5" muxer, as the other *md5
muxers are just legacy versions of the *hash muxers with a different default
algorithm.

The first two patches re-arrange the code in preparation for new muxer.
The patch "use an array of hashes" makes no sense without the subsequent
addition of the new muxer, but the patch "rearrange options definition"
could be seen independently. Do squash if you will.

Changes in V3 vs V2:
- NULL pointer check in deinit() callbacks
- don't free resources in init() callbacks, deinit() is called on failure
- add a streamtype indicator character to the streamhash output

Moritz Barsnick (3):
  avformat/hashenc: rearrange options definition
  avformat/hashenc: use an array of hashes
  avformat/hashenc: add streamhash muxer

 Changelog                |   1 +
 doc/muxers.texi          |  47 +++++++++
 libavformat/Makefile     |   1 +
 libavformat/allformats.c |   1 +
 libavformat/hashenc.c    | 207 +++++++++++++++++++++++++++++++--------
 libavformat/version.h    |   4 +-
 6 files changed, 218 insertions(+), 43 deletions(-)

--
2.20.1



More information about the ffmpeg-devel mailing list