OpenShot exporting a video with a reasonable file size
I'm slightly editing an existing video, and trying to export from OpenShot 1.4.3. The advanced settings in export dialog - which BTW forget my settings everytime I iterate - doesn't allow me to specify the bitrate for the video stream except choosing existing options from a popup menu.
The closest ones are "384 kb/s - Video Conferencing" and "1.25 Mb/s - VCD Quality". Can somebody enlighten me why the former produces a 26 MB file (for a 5 1/2 minutes video), with abysmal quality, and the latter produces a 1.4 GB file. I mean - can you do the maths - according to my skills it should be an increase of 3.2x? How can the step between the closest two presets result in the file size growing by a factor of 54?
Is there a trick to get close to a desired file size, such as 120 MB? How?
Codec is libx264, size is 1080p 25 fps.
Edit: I have a hunch though, because clip properties show timeline positions with seconds formatted with a "German" comma, e.g. "Length: 3,56" seconds, and not "3.56" seconds. I'm using an English Debian Stretch, but I had to install a "en (Danish)" locale because of horrible American date formatting. Is it possible that "Danish English" is flipping period and comma for number formatting similar to German, and that applications exhibit bugs when wrongly parsing strings?
Solution 1:
This is a bug with string parsing. It seems OpenShot doesn't correctly apply locale settings, some in some parts of the interface it uses the Gnome locale settings, but in others it assumes US locale. So I had used Format: Danish English which is a known trick to get sane date formats in Gnome. But apparently here the decimal period is a comma, as in German. So the presets offer "1.25 Mb/s", but the st**** program parses its own GUI elements, and so translates its own preset option into "1,250 Mb/s".
I have temporarily switched back to US format, and now the file becomes 60 MB in size. My problem is not gone, I want 120 MB. The next preset after 1.25 Mb/s is 5.00 Mb/s. I need something in the middle.