XaiJu
WhiteRaven
WhiteRaven

patreon


Ffmpeg, vpnxenc encoder optimization

Hello everyone, yes I'm still alive and working towards the next update!

First of all WOW! we passed 400 patrons, a huge thanks to everyone who've chosen to support me and my projects hope you all are satisfied with me and my work.

Now, I've got some good news!

In the next game update there'll be some, I call them optimizations. Where the biggest change will be the game size. Right now the game is around 2 GB, it's mostly because of all the wonderfull animations (Thank you Martiandawn for your wonderfull work!). Unfortunate in the current build they force some bugs and make the game crash. So I've spent most of my time searching for a tool to create webm animations from PNG-sequences. All I found was a pretty complex tool called ffmpeg, which you need to run from the command prompt using commands like

png2yuv -I p -f 24 -b 1 -j imagename%05d.png > my.yuv

vpxenc --good --cpu-used=0 --auto-alt-ref=1 --lag-in-frames=16 --end-usage=vbr --passes=2 --threads=2 --target-bitrate=3000 -o my.webm my.yuv

ffmpeg -f concat -i my.txt -c copy output.webm

So to find all commands I had to read tons of documents... 

After more readings and searching for more tools and plugins for ffmpeg I finally reached good quality in the animations!

Which gave these results.

Before, with PNG-sequence, one animations was around 20 MB.

After, with webm, one animation is around 712 KB 

20000/712 = 28 times smaller but with the same quality!

Furthermore this will also get rid of the "width of null" bug when viewing the animations in the game.

That's all for now.

Cheers, yours truly WhiteRaven

Comments

Wuhu, JUST DO IT! DON'T LET YOUR DREAMS BE DREAMS! XD

ThorsGesandter

I congratulate you! You deserve it! ٩(◕‿◕)۶

SexBook _____ ADULT PHOTO AND VIDEO SIGNATURES


More Creators