Hi @Eduard232954292cbu,
Thanks for reporting this issue, sorry to see you're experiencing these long render times. What are your system specs? And what version of After Effects are you using?
If you're using After Effects 2023, you are now able to export H.264 directly from the Render Queue. If you can, please let us know if the render goes more quickly when rendering inside of After Effects.
Thanks for reporting this issue and for any further information you can provide,
- John, After Effe
...