Photoindra

 No comments    3   1 mon   animation

Gif creation from sequence of images or mp4

When I need to create gifs I ususally use After Effects and plugin GifGun.
But sometimes it doesn’t play nice with colors. They have an “experimental engine” inside as an option but that result in huge size gifs.
Some people use Ezgif. But it has some limitations and you need to upload to web.

So this weekend I tried ImageMagick.
It also installs FFMPEG. So you use it first to convert videos or image sequeces to gif first. And then compress it with ImageMagick. There is no GUI on Windows so you use Command Prompt (it’s like Terminal on Mac).

First you change your current location to the directory where you files are with. Just type cd, drag and drop directory in the “terminal” and hit enter.

I rendered 720x1280px image sequece in houdini with names like this:
CAM_top.0001.tif,
CAM_top.0002.tif,
...
CAM_top.0072.tif

So to convert it to 24 fps gif with half-resolution and custom color pattern (for better colors representation) I used this line:

ffmpeg -r 24 -i CAM_top.%04d.tif -filter_complex “[0:v] scale=360:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse” output_360px.gif

And then compressed it with ImageMagick with this:

magick convert output_360px.gif -fuzz 1% -layers Optimize output_360px_fuzz1.gif

fuzz1 – controls the amount of compresion. For example in some other tests fuzz5 gave ok results and smaller files size.
Here is another example of creating gif from mp4 – with rescaling, changing fps and single pattern generation. Split just means that we split this video into 2 and one use for pattern generation and other for convetion to gif after that:

ffmpeg -i video_source.mp4 -filter_complex “[0:v] fps=12,scale=540:-1,split [a][b];[a] palettegen [p];[b][p] paletteuse” output_name.gif

Creating gif from mp4 – with rescaling, changing fps. Pattern generated for every frame – this helps if there are lots of color variations in gif but will increase the size:

ffmpeg -i video_source.mp4 -filter_complex “[0:v] fps=12,scale=w=540:h=-1,split [a][b];[a] palettegen=stats_mode=single [p];[b][p] paletteuse=new=1” output_name.gif

Here is single camera view (6 MB):

And here is 15 seconds version with lots of motion (21 MB):

 No comments    14   1 mon   animation   houdini   windows

Silo Series – books

I just finished the 3rd book in Silo series by Hugh Howey. It was a fun journey. If you like science fiction and thinking about “what if our world ends in the virus attack” than those books are for you.

The world outside has grown unkind, the view of it limited, talk of it forbidden. But there are always those who hope, who dream. These are the dangerous people, the residents who infect others with their optimism. Their punishment is simple. They are allowed to go outside.

You can get free trial of kindle unlimited and get those books for free.

 83   7 mon   books

Starting with Houdini

I’ve been using Houdini on and off for a couple of years. And some concepts are difficult to grasp. Especially if you coming from another 3d application.
There is short course that I can now recommend to anyone who want to start having fun with Houdini:
Houdini Made Easy 01 – The Core Essentials from Hipflask. It’s completely free.
They also have 50% off until April 30th, 2020 on 2 other courses. I finished them and can’t recommend enough. One of the best teachers and flow of presenting information.
Random short animation:

 62   7 mon   houdini

Home office

We are a small team, but in a holding with more than 400 people. From Monday we were asked to work from home. And attach a photo of the temporary office.
For me, there is not much difference. Even on ordinary days, sitting at a distance of 10 meters, it is often easier to send a message to the chat. The only difficulty is that some of the files are located on a server that is accessible only from the office. And upon a request to make remote access, the technology department replies: “It is impossible. Because VIRUSES.”
For me, this experiment is even more interesting. There is a chance to try Windows for full work and compare one-on-one with the Mac OS.

 95   8 mon   canon
 106   8 mon  
 51   8 mon   canon

Google daemon check

Google don’t tell you but it installs process to check for updates every 5 hours. Which is annoying and can occupy 100% of CPU. You can check the status on mac in terminal with this line:

defaults read com.google.Keystone.Agent

And you can change this interval to 4 days like this (24*4*3600=345600):

defaults write com.google.Keystone.Agent checkInterval 345600
 130   9 mon   google   mac
 189   9 mon   design

Making Mac keyboard work on Windows 10

After more than 10 years on Mac computers I’m switching to Windows. And the most challenging thing to my surprise was not the lack of some apps but default windows keyboard layout.

It took me a while to figure out how to make my Magic Keyboard to work on windows the same way as on mac.

Fist you need to swap WIN key with CTRL in app called SharpKeys:

Then you need to install an app AutoHotkey.
Create a plain text document and call it whatever you want but with extension .ahk
Place it in your user startup folder (replace _username_ with your name):
C:\Users\_username_\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup
Inside this ahk file write this:

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
	
LControl & Tab:: 
    AltTabMenu := true
    If GetKeyState("Shift","P")
        Send {Alt Down}{Shift Down}{Tab}
    else
        Send {Alt Down}{Tab}
return

#If (AltTabMenu)

    ~*LControl Up::
        Send {Shift Up}{Alt Up}
        AltTabMenu := false 
    return

#If
 186   10 mon   mac   switching   windows
Earlier Ctrl + ↓