mikeycal / the-video-editors-render-script-for-blender

A cross platform script that renders non-3D blender projects faster and gives access to additional FFmpeg features
GNU General Public License v3.0
207 stars 27 forks source link

Blender 2.83 WEBM/VP9 not supported #22

Open Dreamscapist opened 4 years ago

Dreamscapist commented 4 years ago

Hey,

Just testing out this as free option to do some basic video editing, mostly for adding simple videos for friends to Youtube and would prefer using the webm format since youtube seems to favor it.

I edited the script so it allows me to render webm/vp9 now but I've near 0 experience on the python scripting so dropping this off for you if it helps out at all.

Issues I ran into was that you have to remember to select template from dimensions drop down menu for it to work, you can adjust resolution etc after doing so.

Another thing I ran into and it took me a while to realize was the error message about set output quality to none, there is no such option in blender 2.83 but it's called constant bitrate, it seems it used to be "none, constant bitrate" on some older versions so spent bit time on google to find it out.

video_editors_render_script.zip

Thank you for the hard work, really appreciate the tool since I'm running on R9 3900x so I can actually take advantage of that.

P.S. was also wondering if it would be possible to take advantage of the gpu, seen this being used on programs like vegas but don't know how much blender supports that.

dalight13 commented 4 years ago

Fixed it myself I think.

Open the script and search for this section

SET THE EXTENSIONS FOR EACH OF OUR VIDEO FORMATS/CODECS

Insert this elif blender_vid_format == "WEBM": file_extension = ".webm"

Under that elif blender_vid_format == "QUICKTIME": file_extension = ".mov"

Dreamscapist commented 4 years ago

Hey @dalight13

As mentioned on previous message I did that also, there is also other lines added for the .webm

max_audio_bitrate_opus = 500 # kb/s (OPUS)
min_audio_bitrate_opus = 45 # kb/s (OPUS)
if blender_audio_codec == "OPUS":
     wav_to_compressed_audio += " -strict experimental"
elif blender_vid_format == "WEBM":
    file_extension = ".webm"

These are the changes included in the linked file on my previous post, since I'm not proficient in python thought to leave it to mikeycal to implement properly to the code.

mikeycal commented 4 years ago

Thanks. I added the WEBM/VP9 and OPUS support