We’ve noticed when publishing through AYON that the ffmpeg pass done by the “Extract Burnins” step seems to be causing massive problems with quality and file size. We’ve had complaints that the footage is noisier after the burnin stage, and have noticed a change in colour quality as well.
While investigating this, I’ve then also noticed that the bitrate seems to be massively higher on the burnin export, and the filesize has gone from 244kb to about 5.5MB on a 6-second clip.
So, this may be the -g 1 flag making it bigger, which should allow for better web playback. Might be worth checking what the filesize is without that?
Also, the -crf 22 defines the quality of the encoding, and it may be decreasing quality further than you’d like. -crf 18 I think is AYON’s default meaning a higher quality. Not saying it’s better, but it’d make the file size even bigger.
Anyway, see what happens if you drop the -g 1? It may make for worse scrubbing on web reviewables though, but might give you a decent file change. If not, any chance you can share an example input file you’re using?
Will take a look at the settings, thanks for the advice.
Can I check if there’s somewhere specific in the AYON server settings to define the ffmpeg args for the burnins? My understanding from testing and from going thru the code is that it tries to get the command for the burnins from the global ffmpeg settings, though filtered down to just a handful of settings such as audio bitrate.
EDIT: On the note of the -g 1 command, it looks like this is being added by the burnins script itself, as this is not in our core settings:
Hmm - I thought that was settings-based and not hardcoded. In that case, we may want to take a look at that. Any chance you can at least confirm removing it does indeed solve it for you?
Heya - can confirm after commenting out the code in the burnins script which adds the -g 1 args, and adjusting some ffmpeg args in the ayon-core server settings, it seems to be more reliably exporting the files without noticeable quality loss at a reasonable file size.