Aug 27, 2018

C4D, Redshift, Relighting and the Normals

Recently met the task of relighting in post and had a range of troubles trying to make it in After Effects. I do not recommend anyone doing it in AE :).
The free Normality plugin is barely compatible with the modern CC versions and produces crazy burnt highlight values and dirty edges (at least that was my experience of using it with AE CC2017). There's a better and payed alternative like Pixel Cloud now although dealing with all the required passes is not an easy task for starters.
Oh, the main reason for this post was actually just leaving a memo for any one who cares including myself. It's about C4D's standard renderers' normal pass specs that I've managed to match during the work/tests. Since I am a dedicated Redshift user I was able to identify that C4D's normal pass is a Camera space normals of unsigned values of 0 .. 1. Redshift by default operates on signed -1..1 values. So to get the equal normal pass from the Redshift you need something like this

With the RS State node set to Camera transform space.

Aug 24, 2018

Golden Ratio preset for Affinity Designer


A useful asset for Affinity Designer I made for myself.
Get it here



Aug 1, 2018

SendTo FFMpeg batches updated with encoding using external audio file

Heres a new batch in my collection
@ECHO OFF
ECHO [----------------------------------------------------------------]
ECHO [---  SendTo FFmpeg encoder v1.01 by Keerah.com               ---]
ECHO [---  MP4 h264 module has been invoked                        ---]
ECHO [---  Preset: CUDA 420, Slow, 40Mbit, External Audio to AAC   ---]
ECHO [---  Using external audio source file: %~n1.wav
IF %1.==. (
ECHO [----------------------------------------------------------------]
ECHO [     NO FILE SPECIFIED                                          ]
) ELSE (
IF not EXIST %~n1.wav (
ECHO [----------------------------------------------------------------]
ECHO [     Couldn't find the external audio file: %~n1.wav
GOTO End
)
ECHO [----------------------------------------------------------------]
ECHO [     Transcoding...                                             ]
"c:\Program Files\ffmpeg\bin\ffmpeg.exe" -vsync 0 -hwaccel cuvid -i %1 -i %~n1.wav -c:a aac -b:a 256k -shortest -c:v h264_nvenc -preset slow -b:v 40M -pix_fmt yuv420p -force_key_frames 0:00:02 -y %1_cuda420_40Mbit_slow_ext.mp4
)
:End
ECHO [----------------------------------------------------------------]
ECHO [     SERVED                                                     ]
ECHO [----------------------------------------------------------------]
PAUSE
This one uses your Cuda card for encoding (to yuv420 40Mbit mp4) but also looks for a .wav file with the same name as your source video has and places it instead of whatever audio was in your source video. If the streams are different in length the arg -shortest tells FFmpeg to cut the output to the shortest of audio or video. New audio will be recompressed into 256kbps AAC, FFmpeg is clever and takes in account all the source audio channels.

Your source video and audio files must have exact names (except the extension of course). The script checks if there's appropriate .wav file found and stops in case it wasn't.

All presets are now yuv420 (12bit per pixel) to achieve better compression, use -pix_fmt yuv444p  for higher quality you444 (24 bit per pixel) output.