[FFmpeg-user] Verifying lossless rewrapping/transcoding in one step?
Paul B Mahol
onemda at gmail.com
Tue Aug 6 13:21:58 EEST 2019
On Tue, Aug 6, 2019 at 12:14 PM Moritz Barsnick <barsnick at gmx.net> wrote:
> 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
> > 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).
Look how framehash does it?
> 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