[FFmpeg-user] Verifying lossless rewrapping/transcoding in one step?

Dennis Mungai dmngaie at gmail.com
Fri Jul 26 23:54:51 EEST 2019


On Fri, 26 Jul 2019 at 21:02, Peter B. <pb at das-werkstatt.com> wrote:

> Hi everyone :)
>
> I was wondering if maybe there's a quicker way to verify lossless
> transcoding or container rewrapping than these 3 steps:
>
>   1. generate content hash during transcoding.
>   2. generate content hash of output file.
>   3. diff source-hash with output-hash (using whatever diff-tool).
>
>
> I'm doing this in bash scripts, but I'm wondering if it would be
> possible to tell ffmpeg something like this:
>
> "Please generate the output and compare source and target's content hash
> and only return exit code 0 if they match"
>
>
> Is that already implemented, or would it be possible to do that?
>
>
>
> Thank you very much in advance,
> Peter B.
>
>
Hey there,

You could use a muxer such as framemd5:
https://ffmpeg.org/ffmpeg-formats.html#framemd5-1

See the link above for usage.


-- 
まさひろ はやし


More information about the ffmpeg-user mailing list