[FFmpeg-user] Verifying lossless rewrapping/transcoding in one step?
barsnick at gmx.net
Tue Aug 6 13:14:07 EEST 2019
On Tue, Aug 06, 2019 at 10:07:40 +0200, Paul B Mahol wrote:
> If I understand correctly, basically need hash of each stream separately
> (for framehash this already works).
> That is quite possible to be implemented. Feel free to open feature request
> on FFmpeg bug tracker.
Just to show that it works, I have hacked up a quick proof of concept.
(Hacked up means: Possibly not clean, not enough reuse of code, ...)
From this for a video stream:
./ffmpeg_g -f lavfi -i testsrc -map 0 -t 1 -f hash -
and this for an audio stream:
./ffmpeg_g -f lavfi -i anoisesrc=seed=0 -map 0 -t 1 -f hash -
I can now produce this (note the new muxer):
./ffmpeg_g -f lavfi -i testsrc -f lavfi -i anoisesrc=seed=0 -map 0 -map 1 -t 1 -f streamhash -
I just couldn't quickly figure out how to prefix the stream specifiers
(e.g. 0:0, 0:1).
I'm not hapy with submitting a hack as a patch to ffmpeg-devel though.
;-) But I can provide the patch here or somewhere else.
More information about the ffmpeg-user