Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mp4 color/brightness shift and file size optimization #154

Open
yellowborb opened this issue Oct 18, 2022 · 0 comments
Open

mp4 color/brightness shift and file size optimization #154

yellowborb opened this issue Oct 18, 2022 · 0 comments

Comments

@yellowborb
Copy link

yellowborb commented Oct 18, 2022

Hi ,
Mp4 output are darker than the original pngs by default. But the quality in color gradient is better than gifs and the file is lighter.
This color/brightness shift can be corrected manually with the "-vf eq" command at line 199 after the "-v codec libx264" .
So,for example,if I want +0.2 brightness, the full line 199 will lokk like this :

  • f" -bitexact -shortest -vcodec libx264 -vf eq=brightness=1.2 "
    you can also add on the same line "-preset veryslow" ,which sets the encoding speed to the slowest and produce even lighter files. example :
  • f" -bitexact -shortest -vcodec libx264 -vf eq=gamma=1.2 -preset veryslow "
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant