Based on mikeycal's script.
Modifications:
- Works with Blender 3.x
- More intuitive & predictive output files
- No more
_Click_to_Render_
scripts. - Smoothen file/folder overwriting experience.
To get the script:
git get https://github.com/b1f6c1c4/the-video-editors-render-script-for-blender/blob/master/video_editors_render_script.py
Dead simple, one-line solution of multicore rendering
-
In your Blender, set Scene Properties:
- File Format:
FFmpeg Video
- Encoding:
- Container:
Matroska
- Container:
- Video:
- Video Codec:
WebM/VP9
orAV1
orH.264
- Output Quality: Anything OTHER THAN
Lossless
- Encoding Speed: (adjust accordingly)
- Video Codec:
- Audio:
- Audio Codec:
AAC
orVorbis
- Bitrate: 192
- Audio Codec:
- File Format:
-
Invoke the script:
blender -b <path-to-your-.blend> -P <path-to-video_editors_render_script.py>
-
Verify that, in the same folder as
.blend
,**-video.avi
exists.
I have a long video, and I want to FFmpeg myself
-
In your Blender, set Scene Properties:
- File Format:
FFmpeg Video
- Encoding:
- Container: AVI
- Video:
- Video Codec: H.264
- Output Quality: Lossless
- Audio:
- Audio Codec: PCM
- File Format:
-
(Optional)
ssfhs
or NFS mount.blend
file as well as media files -
Invoke the script:
blender -b <path-to-your-.blend> -P <path-to-video_editors_render_script.py>
-
Verify that, in the same folder as
.blend
,**-video.avi
exists. -
Invoke ffmpeg to compress as will:
-
E.g. HEVC/AAC on MKV, using nVidia CUDA hardware acceleration:
ffmpeg -i <path>-video.avi \ -c:v hevc_nvenc -crf 18 -c:a aac -b:a 128k \ <output.mkv>
-
I have extremely large memory & disk space
Requirement:
Your video is very short, and both /tmp
and output dir (same dir as .blend
) are very large.
We need 400MB / second / 1080p60.
Preferably, /tmp
is tmpfs, and your disk has very high R/W speed.
-
In your Blender, set Scene Properties / File Format to
AVI Raw
-
(Optional)
ssfhs
or NFS mount.blend
file as well as media files -
Invoke the script:
blender -b <path-to-your-.blend> -P <path-to-video_editors_render_script.py>
-
Verify that, in the same folder as
.blend
,**-audio.pcm
and**-video.avi
exist. -
Invoke ffmpeg to compress as will:
-
E.g. HEVC/AAC on MKV, using nVidia CUDA hardware acceleration:
ffmpeg -i <path>-video.avi -i <path>-audio.pcm \ -c:v hevc_nvenc -crf 18 -c:a aac -b:a 128k \ -map 0:v:0 -map 1:a:0 \ <output.mkv> -async 1
-
I want to inspect individual frames
Requirement:
Your video is short, and output dir (same as .blend
or another one) is large.
We need 150MB / second / 1080p60.
-
In your Blender, set Scene Properties / File Format to
PNG
, Compression to15%
-
(Optional)
ssfhs
or NFS mount.blend
file as well as media files -
(Optional) Create a separate directory for writing output files (150MB/second/1080p60), and:
ln -s /<path>/<to>/<out-dir> <path>-seq/
-
Invoke the script:
blender -b <path-to-your-.blend> -P <path-to-video_editors_render_script.py>
-
Verify that, in the same folder as
.blend
,**-audio.pcm
and**-seq/
exist. -
Invoke ffmpeg to compress as will:
-
E.g. HEVC/AAC on MKV, using nVidia CUDA hardware acceleration:
ffmpeg -i <path>-seq/%04d.png -i <path>-audio.pcm \ -c:v hevc_nvenc -crf 18 -c:a aac -b:a 128k \ -map 0:v:0 -map 1:a:0 \ <output.mkv> -async 1
-
GPL v3