<?xml version="1.0" encoding="utf-8"?> 
<rss version="2.0"
  xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd"
  xmlns:atom="http://www.w3.org/2005/Atom">

<channel>

<title>Photoindra: posts tagged windows</title>
<link>https://mail.photoindra.com/tags/windows/</link>
<description>My telegram</description>
<author></author>
<language>en</language>
<generator>Aegea 11.3 (v4134)</generator>

<itunes:subtitle>My telegram</itunes:subtitle>
<itunes:image href="" />
<itunes:explicit></itunes:explicit>

<item>
<title>Gif creation from sequence of images or mp4</title>
<guid isPermaLink="false">262</guid>
<link>https://mail.photoindra.com/all/gif-creation-from-sequence-of-images-or-mp4/</link>
<pubDate>Mon, 05 Oct 2020 08:52:47 -0500</pubDate>
<author></author>
<comments>https://mail.photoindra.com/all/gif-creation-from-sequence-of-images-or-mp4/</comments>
<description>
&lt;p&gt;&lt;iframe src="https://player.vimeo.com/video/465003616?autoplay=1&amp;loop=1&amp;autopause=0&amp;muted=1"" width="360" height="640" frameborder="0" allow="autoplay; fullscreen" allowfullscreen&gt;&lt;/iframe&gt;&lt;/p&gt;
&lt;p&gt;When I need to create gifs I ususally use After Effects and plugin &lt;a href="https://aescripts.com/gifgun/"&gt;GifGun&lt;/a&gt;.&lt;br /&gt;
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.&lt;br /&gt;
Some people use &lt;a href="https://ezgif.com/video-to-gif"&gt;Ezgif&lt;/a&gt;. But it has some limitations and you need to upload to web.&lt;/p&gt;
&lt;p&gt;So this weekend I tried &lt;a href="https://imagemagick.org/script/download.php"&gt;ImageMagick&lt;/a&gt;.&lt;br /&gt;
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).&lt;/p&gt;
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;I rendered 720x1280px image sequece in houdini with names like this:&lt;br /&gt;
CAM_top.0001.tif,&lt;br /&gt;
CAM_top.0002.tif,&lt;br /&gt;
...&lt;br /&gt;
CAM_top.0072.tif&lt;/p&gt;
&lt;p&gt;So to convert it to 24 fps gif with half-resolution and custom color pattern (for better colors representation) I used this line:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
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&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
And then compressed it with ImageMagick with this:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
magick convert output_360px.gif -fuzz 1% -layers Optimize output_360px_fuzz1.gif&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
fuzz1 – controls the amount of compresion. For example in some other tests fuzz5 gave ok results and smaller files size.&lt;br /&gt;
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:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
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&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
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:&lt;br /&gt;
&lt;code&gt;&lt;br /&gt;
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&lt;br /&gt;
&lt;/code&gt;&lt;br /&gt;
Here is single camera view (6 MB):&lt;/p&gt;
&lt;div class="e2-text-picture"&gt;
&lt;img src="https://mail.photoindra.com/pictures/CAM_top_360px_fuzz1.gif" width="360" height="640" alt="" /&gt;
&lt;/div&gt;
&lt;p&gt;And here is 15 seconds version with lots of motion (21 MB):&lt;/p&gt;
&lt;div class="e2-text-picture"&gt;
&lt;img src="https://mail.photoindra.com/pictures/output_optim_fuzz03.gif" width="360" height="640" alt="" /&gt;
&lt;/div&gt;
</description>
</item>

<item>
<title>Making Mac keyboard work on Windows 10</title>
<guid isPermaLink="false">249</guid>
<link>https://mail.photoindra.com/all/making-mac-keyboard-work-on-windows-10/</link>
<pubDate>Sat, 18 Jan 2020 07:31:39 -0500</pubDate>
<author></author>
<comments>https://mail.photoindra.com/all/making-mac-keyboard-work-on-windows-10/</comments>
<description>
&lt;p&gt;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.&lt;/p&gt;
&lt;p&gt;It took me a while to figure out how to make my Magic Keyboard to work on windows the same way as on mac.&lt;/p&gt;
&lt;p&gt;Fist you need to swap WIN key with CTRL in app called SharpKeys:&lt;/p&gt;
&lt;div class="e2-text-picture"&gt;
&lt;img src="https://mail.photoindra.com/pictures/sharpkeys_screenshot@2x.jpg" width="462" height="347" alt="" /&gt;
&lt;/div&gt;
&lt;p&gt;Then you need to install an app AutoHotkey.&lt;br /&gt;
Create a plain text document and call it whatever you want but with extension .ahk&lt;br /&gt;
Place it in your user startup folder (replace _username_ with your name):&lt;br /&gt;
C:\Users\_username_\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\Startup&lt;br /&gt;
Inside this ahk file write this:&lt;/p&gt;
&lt;pre class="e2-text-code"&gt;&lt;code class=""&gt;#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 &amp;amp; Tab:: 
    AltTabMenu := true
    If GetKeyState(&amp;quot;Shift&amp;quot;,&amp;quot;P&amp;quot;)
        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&lt;/code&gt;&lt;/pre&gt;</description>
</item>


</channel>
</rss>