Video quality problem

dekmma

Newbie
Game Developer
Sep 18, 2017
50
960
I'm trying to put a video in renpy and I struggle with the video quality, need your help!
Right now I'm converting the file into webm but the quality loss is huge, is there another way?

Edit: problem solved, my bad
 

f95zoneuser463

Member
Game Developer
Aug 14, 2017
219
1,024
I can only give generic advise since you didn't not say what tool you use.

When converting to videos using the WEBM-container make sure you do not use the outdated VP8 video-encoding. Use VP9 instead. That's currently the best compressing video supported by Ren'Py and it's free.

For a game where you have no size restrictions (like max. 4MB to upload to a website) you probably want to use "constant quality"-encoding. In this case you control the quality vs filesize via the CRF-value.

Details here:

Most free tools/converters are based on FFmpeg anyway and they disguise these kind of controls behind some quality sliders to make it simple for 'casual' users. That's okay and there is nothing wrong with that ... but to have full control over what's going on these tools are bad. That's why I personally would always recommend using FFmpeg directly on the command-line.

I believe had no support for WEBM. But don't quote me on that.
does support WEBM, but that's an editor and possibly a little overkill for just converting a video:
Shotcut webm VP9.png
For Shotcut the previously mentioned "constant quality"-encoding is listed here as "Quality-based VBR". VBR means variable bitrate.

Many "cheap" (Online converters are garbage. Avoid!) converters use an encoding-mode with a fixed bitrate. That's especially bad on videos with a lot of motion. The bitrate would have a spike on a scene-change but the encoder struggles to include all the data with the limited bitrate.
 

dekmma

Newbie
Game Developer
Sep 18, 2017
50
960
I used an online converter indeed. :<
I was looking for something like sony vegas, Shotcut will be a good alternative.
Thanks a lot for the detailed answer!

Edit: Tried it, much better, many thanks : )
 
  • Like
Reactions: Papa Ernie

toolkitxx

Well-Known Member
Modder
Donor
Game Developer
May 3, 2017
1,473
1,794
VLC does a pretty handy inbuild job converting to webm and other formats as long as the necessary codecs are installed. No need to jump between apps for a decent result.