rust-av / grav1synth

Grain Synth analyzer and editor for AV1 files
MIT License
51 stars 3 forks source link

resolution mistake #10

Closed trixoniisama closed 7 months ago

trixoniisama commented 1 year ago

Getting this error: Error: Luma resolutions were not equal, 960x544 != 960x540 with grav1synth diff -f 'resize:alg=hermite,width=960,height=540' with the source being 1920x1080 and the encode being 960x540. For some reason it thinks the scaled source is 960x544 even though that's not what I provided in the filters params. Seems to be an issue with this specific resolution because running diff with the same source encoded in 720p instead worked flawlessly with the source was downscaled with the expected resolution.

trixoniisama commented 7 months ago

BTW I just remembered about this issue, but I can now give some explanation to this: it's a SVT-AV1 issue of adding a few pixels at some resolutions probably because the res in question isn't mod 2 and it's required for some internal tools or something, meaning that even though players and most software will playback and report 540p (in this case), the bitstream is actually 544p. An easy workaround is to simply resize the source to 544p instead.