h265ize icon indicating copy to clipboard operation
h265ize copied to clipboard

Multipass using wrong input file on n-th pass?

Open rogueosb opened this issue 8 years ago • 3 comments
trafficstars

I've been testing the multipass option in h265ize, and noticed that the ffmpeg command is not using the same input file on subsequent passes. Looking through the code I noticed the following: https://github.com/FallingSnow/h265ize/blob/d9746cbe18f54b78fd8d7e666fcd189eae085071/lib/classes/video.js#L975

Am I correct in assuming that the n+1 pass is therefore using the output of the n-th pass? From my understanding, shouldn't the input file for each pass be the original file? This is also what the FFmpeg documentation suggests.

I'm not sure what the side effects of using the temporary output would be, but I would imagine it could lead to image quality degradation as it is using the suboptimally compressed first pass. However, I am not an expert on the matter so I am happy to be wrong on this one!

rogueosb avatar Aug 29 '17 08:08 rogueosb

Am I correct in assuming that the n+1 pass is therefore using the output of the n-th pass?

Yes

From my understanding, shouldn't the input file for each pass be the original file?

Yes

Unfortunately multipass doesn't get a lot of attention from me because I never use it. This is an issue that will have to be fixed.

Just curious, why are you using multipass over crf?

FallingSnow avatar Aug 29 '17 15:08 FallingSnow

Glad I'm not wasting your time in that case.

Just curious, why are you using multipass over crf?

I normally use CRF, but for some shows where quality isn't as important to me I prefer to have some more control over the final file size.

rogueosb avatar Aug 29 '17 15:08 rogueosb

I see.

FallingSnow avatar Aug 29 '17 23:08 FallingSnow