diff --git a/content/posts/create_gif_on_commandline.md b/content/posts/create_gif_on_commandline.md
new file mode 100644
index 0000000..c587a68
--- /dev/null
+++ b/content/posts/create_gif_on_commandline.md
@@ -0,0 +1,65 @@
+---
+title: 'Create a GIF from a video - Right from the Command Line!'
+date: 2024-07-03T17:41:15-04:00
+tags: ["tutorial", "snippets", "commandline"]
+author: "Me"
+showToc: true
+TocOpen: false
+draft: false
+hidemeta: false
+description: 'create_gif_on_commandline'
+disableHLJS: true # to disable highlightjs
+disableShare: false
+disableHLJS: false
+hideSummary: false
+searchHidden: true
+ShowReadingTime: true
+ShowBreadCrumbs: true
+ShowPostNavLinks: true
+ShowWordCount: true
+ShowRssButtonInSectionTermList: true
+UseHugoToc: true
+cover:
+ image: ""
+ alt: ""
+ caption: ""
+ relative: false
+ hidden: true
+---
+
+Finding this little set of commands is one of the main reasons why I love the Command Line. Once I realized that almost everything that I was doing in a UI was possible on the CLI, the world opened up. One of the things I return to from time to time is when I can't find a GIF I want to use in a message or email. Every time, I look up how to convert a video to a GIF and every time, I'm given a new solution. Imgur's [video-to-gif](https://imgur.com/vidgif) used to be reliable, but the last few times it hasn't been working as expected.
+
+This last time, I was trying to convert a very important It's Always Sunny in Philadelphia clip to a reaction gif. Can you believe there is no "thank you" reaction gif from when [Dennis reads Charlie's speech?!](https://www.youtube.com/watch?v=ROCKGuuviis). Here's the gif for your own collections.
+
+
+
+The command line functions I found came to get this done came mostly from [Funky Cloud Medina's](https://www.funkycloudmedina.com/2022/06/convert-a-video-file-to-a-gif-using-a-macos-automator-task/) post on this. I didn't want to use automator, but just write out a few commands, so here is what I did (on MacOS):
+
+First, install ffmpeg and gifsicle with Homebrew. `brew install ffmpeg gifsicle`
+
+Next, navigate to the directory where your video is. If you plan on doing this regularly, you can create some permanent directories, but I started with creating two temporary directories for the images and then the final gifs.
+```conf
+mkdir pngs/ gifs/
+```
+This will create both `gifs` and `pngs` folders in the directory you're currently in.
+
+Next, we'll process the movie.
+
+```
+ffmpeg -i Untitled.mov -r 10 pngs/out%04d.png
+```
+`Untitled.mov` is the name of the video file in the directory you're currently in and outputs each frame to the `pngs` folder with increment digits. The incrementing digits are so you don't overwrite everything and end up with just a single picture file.
+
+Next, we'll use `sips`, the Scriptable Image Processing System. (Check out `man sips` from your own CLI for more info!)
+```
+sips -s format gif pngs/*.png --out gifs
+```
+
+Almost there! This is processing all the image files into the gifs folder. Let's now move into the gifs folder with cd: `cd gifs`
+
+And now we can use [gifsicle](https://www.lcdf.org/gifsicle/) to merge all the images into a single gif! We'll do that with the following command:
+```
+gifsicle --optimize=3 --delay=10 --loopcount *.gif > ~/Documents/thankyou.gif
+```
+
+And voila! You should have a auto-playing gif file ready for use in all your reactions and emails. Enjoy!
diff --git a/content/posts/img/iasip_thank_you.gif b/content/posts/img/iasip_thank_you.gif
new file mode 100644
index 0000000..2e404c4
Binary files /dev/null and b/content/posts/img/iasip_thank_you.gif differ
diff --git a/content/posts/img/thankyou.gif b/content/posts/img/thankyou.gif
new file mode 100644
index 0000000..54202ce
Binary files /dev/null and b/content/posts/img/thankyou.gif differ
diff --git a/public/404.html b/public/404.html
index 9037d2f..28e692b 100644
--- a/public/404.html
+++ b/public/404.html
@@ -28,7 +28,10 @@
}
-
+
+
+
+
@@ -82,11 +85,6 @@
Posts
-
Create a GIF from a video - Right from the Command Line!
+
+
+
+
Finding this little set of commands is one of the main reasons why I love the Command Line. Once I realized that almost everything that I was doing in a UI was possible on the CLI, the world opened up. One of the things I return to from time to time is when I can’t find a GIF I want to use in a message or email. Every time, I look up how to convert a video to a GIF and every time, I’m given a new solution....
+
+
+
+
+
How to Revisit your Terminal Session's History
@@ -225,19 +235,6 @@ In order to greatly reduce the number of nodes needed in the single recipe, I cr
-
-
-
-
BirdNET-PI & HomeAssistant: Part 2
-
-
-
-
Checking for Entities If you’re following up on this from my first post, you’ve already added your AppDaemon script and confirmed that the AppDaemon logs don’t show any errors. Now is the true test if it’s working: do you have the new sensors in HomeAssistant?!
-The best way to do this is by just type e from any screen in the HomeAssistant UI! That will bring up a list of entities....
-
-
-
-
+
This last time, I was trying to convert a very important It’s Always Sunny in Philadelphia clip to a reaction gif. Can you believe there is no “thank you” reaction gif from when Dennis reads Charlie’s speech?!. Here’s the gif for your own collections.
+
+
+
The command line functions I found came to get this done came mostly from Funky Cloud Medina’s post on this. I didn’t want to use automator, but just write out a few commands, so here is what I did (on MacOS):
+
First, install ffmpeg and gifsicle with Homebrew. brew install ffmpeg gifsicle
+
Next, navigate to the directory where your video is. If you plan on doing this regularly, you can create some permanent directories, but I started with creating two temporary directories for the images and then the final gifs.
+
mkdir pngs/ gifs/
+
This will create both gifs and pngs folders in the directory you’re currently in.
+
Next, we’ll process the movie.
+
ffmpeg -i Untitled.mov -r 10 pngs/out%04d.png
+
Untitled.mov is the name of the video file in the directory you’re currently in and outputs each frame to the pngs folder with increment digits. The incrementing digits are so you don’t overwrite everything and end up with just a single picture file.
+
Next, we’ll use sips, the Scriptable Image Processing System. (Check out man sips from your own CLI for more info!)
+
sips -s format gif pngs/*.png --out gifs
+
Almost there! This is processing all the image files into the gifs folder. Let’s now move into the gifs folder with cd: cd gifs
+
And now we can use gifsicle to merge all the images into a single gif! We’ll do that with the following command:
Checking for Entities If you’re following up on this from my first post, you’ve already added your AppDaemon script and confirmed that the AppDaemon logs don’t show any errors. Now is the true test if it’s working: do you have the new sensors in HomeAssistant?!
+The best way to do this is by just type e from any screen in the HomeAssistant UI! That will bring up a list of entities....
+
+
+
+
+
Creating a BirdNetPi Dashboard in HomeAssistant - Part 1
diff --git a/public/posts.html b/public/posts.html
index 57c09a4..b9d20fd 100644
--- a/public/posts.html
+++ b/public/posts.html
@@ -29,7 +29,10 @@
}
-
+
+
+
+
@@ -98,11 +101,6 @@
Posts
-
Create a GIF from a video - Right from the Command Line!
+
+
+
+
Finding this little set of commands is one of the main reasons why I love the Command Line. Once I realized that almost everything that I was doing in a UI was possible on the CLI, the world opened up. One of the things I return to from time to time is when I can’t find a GIF I want to use in a message or email. Every time, I look up how to convert a video to a GIF and every time, I’m given a new solution....
+
+
+
+
+
How to Revisit your Terminal Session's History
@@ -187,19 +197,6 @@ In order to greatly reduce the number of nodes needed in the single recipe, I cr
-
-
-
-
BirdNET-PI & HomeAssistant: Part 2
-
-
-
-
Checking for Entities If you’re following up on this from my first post, you’ve already added your AppDaemon script and confirmed that the AppDaemon logs don’t show any errors. Now is the true test if it’s working: do you have the new sensors in HomeAssistant?!
-The best way to do this is by just type e from any screen in the HomeAssistant UI! That will bring up a list of entities....
Create a GIF from a video - Right from the Command Line!
+
+
+
+
Finding this little set of commands is one of the main reasons why I love the Command Line. Once I realized that almost everything that I was doing in a UI was possible on the CLI, the world opened up. One of the things I return to from time to time is when I can’t find a GIF I want to use in a message or email. Every time, I look up how to convert a video to a GIF and every time, I’m given a new solution....
+
+
+
+
+
Pushing a Single Local Git Repo to Multiple Remote Repos
diff --git a/public/tags/commandline/index.xml b/public/tags/commandline/index.xml
index 80cd988..685eda2 100644
--- a/public/tags/commandline/index.xml
+++ b/public/tags/commandline/index.xml
@@ -6,8 +6,34 @@
Recent content in Commandline on Norm-working Packets 💾Hugo -- gohugo.ioen-us
- Fri, 22 Sep 2023 15:07:10 -0400
+ Wed, 03 Jul 2024 17:41:15 -0400
+
+ Create a GIF from a video - Right from the Command Line!
+ /posts/create_gif_on_commandline.html
+ Wed, 03 Jul 2024 17:41:15 -0400
+ /posts/create_gif_on_commandline.html
+ create_gif_on_commandline
+ Finding this little set of commands is one of the main reasons why I love the Command Line. Once I realized that almost everything that I was doing in a UI was possible on the CLI, the world opened up. One of the things I return to from time to time is when I can’t find a GIF I want to use in a message or email. Every time, I look up how to convert a video to a GIF and every time, I’m given a new solution. Imgur’s video-to-gif used to be reliable, but the last few times it hasn’t been working as expected.
+
This last time, I was trying to convert a very important It’s Always Sunny in Philadelphia clip to a reaction gif. Can you believe there is no “thank you” reaction gif from when Dennis reads Charlie’s speech?!. Here’s the gif for your own collections.
+
+
+
The command line functions I found came to get this done came mostly from Funky Cloud Medina’s post on this. I didn’t want to use automator, but just write out a few commands, so here is what I did (on MacOS):
+
First, install ffmpeg and gifsicle with Homebrew. brew install ffmpeg gifsicle
+
Next, navigate to the directory where your video is. If you plan on doing this regularly, you can create some permanent directories, but I started with creating two temporary directories for the images and then the final gifs.
+
mkdir pngs/ gifs/
+
This will create both gifs and pngs folders in the directory you’re currently in.
+
Next, we’ll process the movie.
+
ffmpeg -i Untitled.mov -r 10 pngs/out%04d.png
+
Untitled.mov is the name of the video file in the directory you’re currently in and outputs each frame to the pngs folder with increment digits. The incrementing digits are so you don’t overwrite everything and end up with just a single picture file.
+
Next, we’ll use sips, the Scriptable Image Processing System. (Check out man sips from your own CLI for more info!)
+
sips -s format gif pngs/*.png --out gifs
+
Almost there! This is processing all the image files into the gifs folder. Let’s now move into the gifs folder with cd: cd gifs
+
And now we can use gifsicle to merge all the images into a single gif! We’ll do that with the following command:
Create a GIF from a video - Right from the Command Line!
+
+
+
+
Finding this little set of commands is one of the main reasons why I love the Command Line. Once I realized that almost everything that I was doing in a UI was possible on the CLI, the world opened up. One of the things I return to from time to time is when I can’t find a GIF I want to use in a message or email. Every time, I look up how to convert a video to a GIF and every time, I’m given a new solution....
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
diff --git a/public/tags/snippets/index.xml b/public/tags/snippets/index.xml
new file mode 100644
index 0000000..2ded0da
--- /dev/null
+++ b/public/tags/snippets/index.xml
@@ -0,0 +1,38 @@
+
+
+
+ Snippets on Norm-working Packets 💾
+ /tags/snippets.html
+ Recent content in Snippets on Norm-working Packets 💾
+ Hugo -- gohugo.io
+ en-us
+ Wed, 03 Jul 2024 17:41:15 -0400
+
+
+ Create a GIF from a video - Right from the Command Line!
+ /posts/create_gif_on_commandline.html
+ Wed, 03 Jul 2024 17:41:15 -0400
+ /posts/create_gif_on_commandline.html
+ create_gif_on_commandline
+ Finding this little set of commands is one of the main reasons why I love the Command Line. Once I realized that almost everything that I was doing in a UI was possible on the CLI, the world opened up. One of the things I return to from time to time is when I can’t find a GIF I want to use in a message or email. Every time, I look up how to convert a video to a GIF and every time, I’m given a new solution. Imgur’s video-to-gif used to be reliable, but the last few times it hasn’t been working as expected.
+
This last time, I was trying to convert a very important It’s Always Sunny in Philadelphia clip to a reaction gif. Can you believe there is no “thank you” reaction gif from when Dennis reads Charlie’s speech?!. Here’s the gif for your own collections.
+
+
+
The command line functions I found came to get this done came mostly from Funky Cloud Medina’s post on this. I didn’t want to use automator, but just write out a few commands, so here is what I did (on MacOS):
+
First, install ffmpeg and gifsicle with Homebrew. brew install ffmpeg gifsicle
+
Next, navigate to the directory where your video is. If you plan on doing this regularly, you can create some permanent directories, but I started with creating two temporary directories for the images and then the final gifs.
+
mkdir pngs/ gifs/
+
This will create both gifs and pngs folders in the directory you’re currently in.
+
Next, we’ll process the movie.
+
ffmpeg -i Untitled.mov -r 10 pngs/out%04d.png
+
Untitled.mov is the name of the video file in the directory you’re currently in and outputs each frame to the pngs folder with increment digits. The incrementing digits are so you don’t overwrite everything and end up with just a single picture file.
+
Next, we’ll use sips, the Scriptable Image Processing System. (Check out man sips from your own CLI for more info!)
+
sips -s format gif pngs/*.png --out gifs
+
Almost there! This is processing all the image files into the gifs folder. Let’s now move into the gifs folder with cd: cd gifs
+
And now we can use gifsicle to merge all the images into a single gif! We’ll do that with the following command:
Create a GIF from a video - Right from the Command Line!
+
+
+
+
Finding this little set of commands is one of the main reasons why I love the Command Line. Once I realized that almost everything that I was doing in a UI was possible on the CLI, the world opened up. One of the things I return to from time to time is when I can’t find a GIF I want to use in a message or email. Every time, I look up how to convert a video to a GIF and every time, I’m given a new solution....
+
+
+
+
+
ESP8266 Medicine Indicator Light
diff --git a/public/tags/tutorial/index.xml b/public/tags/tutorial/index.xml
index 4c17d18..af802fb 100644
--- a/public/tags/tutorial/index.xml
+++ b/public/tags/tutorial/index.xml
@@ -6,8 +6,34 @@
Recent content in Tutorial on Norm-working Packets 💾Hugo -- gohugo.ioen-us
- Mon, 16 Oct 2023 11:34:14 -0400
+ Wed, 03 Jul 2024 17:41:15 -0400
+
+ Create a GIF from a video - Right from the Command Line!
+ /posts/create_gif_on_commandline.html
+ Wed, 03 Jul 2024 17:41:15 -0400
+ /posts/create_gif_on_commandline.html
+ create_gif_on_commandline
+ Finding this little set of commands is one of the main reasons why I love the Command Line. Once I realized that almost everything that I was doing in a UI was possible on the CLI, the world opened up. One of the things I return to from time to time is when I can’t find a GIF I want to use in a message or email. Every time, I look up how to convert a video to a GIF and every time, I’m given a new solution. Imgur’s video-to-gif used to be reliable, but the last few times it hasn’t been working as expected.
+
This last time, I was trying to convert a very important It’s Always Sunny in Philadelphia clip to a reaction gif. Can you believe there is no “thank you” reaction gif from when Dennis reads Charlie’s speech?!. Here’s the gif for your own collections.
+
+
+
The command line functions I found came to get this done came mostly from Funky Cloud Medina’s post on this. I didn’t want to use automator, but just write out a few commands, so here is what I did (on MacOS):
+
First, install ffmpeg and gifsicle with Homebrew. brew install ffmpeg gifsicle
+
Next, navigate to the directory where your video is. If you plan on doing this regularly, you can create some permanent directories, but I started with creating two temporary directories for the images and then the final gifs.
+
mkdir pngs/ gifs/
+
This will create both gifs and pngs folders in the directory you’re currently in.
+
Next, we’ll process the movie.
+
ffmpeg -i Untitled.mov -r 10 pngs/out%04d.png
+
Untitled.mov is the name of the video file in the directory you’re currently in and outputs each frame to the pngs folder with increment digits. The incrementing digits are so you don’t overwrite everything and end up with just a single picture file.
+
Next, we’ll use sips, the Scriptable Image Processing System. (Check out man sips from your own CLI for more info!)
+
sips -s format gif pngs/*.png --out gifs
+
Almost there! This is processing all the image files into the gifs folder. Let’s now move into the gifs folder with cd: cd gifs
+
And now we can use gifsicle to merge all the images into a single gif! We’ll do that with the following command: