[FFmpeg-user] SSIM filter showing (small) differences in identical(?) streams

Ian Pilcher arequipeno at gmail.com
Tue Mar 2 02:09:21 EET 2021


On 2/28/21 12:57 PM, Paul B Mahol wrote:
> On Sun, Feb 28, 2021 at 5:31 PM Ian Pilcher <arequipeno at gmail.com> wrote:
>>    $ ffmpeg -i lossless.mkv -start_number 0 -i source/%06d.tif -frames:v
>> 3596 -lavfi
>> "[0:v]settb=1/AVTB,setpts=PTS-STARTPTS[main];[1:v]settb=1/AVTB,setpts=PTS-STARTPTS[ref];[main][ref]ssim"
>>
>> -f null -
> 
> Try ssim=shortest=1
> 
> Most likely inputs have not same number of frames.

They don't have the same number of frames.  That's why I need to specify
the duration, either with "-t 00:01:00" or with "-frames:v 3596".  The
correct number of frames *is* 3596, however, so I don't understand why
I have to limit the comparison to only 3595 frames to get the correct
result.

-- 
========================================================================
                  In Soviet Russia, Google searches you!
========================================================================



More information about the ffmpeg-user mailing list