Using ffmpeg on macOS to Correct AVI Index Errors and Convert to MP4

Standard

I’ve had a dashcam in my car for several years. My first dashcam worked great but after a few years it died. I replaced it with a less expensive unit and, as they say, you get what you pay for. It works OK. The quality and perspective isn’t as good as my first dashcam – it also doesn’t record GPS and current speed. If I replace this one I’m definitely going to get one that has features more similar to my first dashcam.

In addition, the video that I pull from the SD cards it records to usually have index errors, which prevent the videos from playing in most players (it works in VLC but requires a little bit of preprocessing to correct index issues). Obviously, this isn’t very good for something recording video that might one day be provided to law enforcement, compiled into a video poking fun at bad drivers or perhaps on the rare ocassion you’re nearly hit by a horse and rider as they gallop across a busy highway. I used ffmpeg to correct this issue with the last video prevoiusly linked.

Continue reading

Automatically Disabling WiFi in macOS Mojave When Connecting to Ethernet

Standard

I don’t know why, but macOS doesn’t seem to have an automatic ability to shut down the WiFi adapter when an Ethernet connection is detected. It’s a simple thing that can cause several problems, especially if you are in an environment where you may need to authenticate to a network or access VPN services.

It may be possible to manage locations and some additional tools, but I didn’t want something that required retooling every time I used my system in a new location, so I decided to write a simple script, using built-in tools for everything except the execution of the script.

This script will check for both an active WiFi connection and also an active Ethernet connection. If it detects both, it will shutdown the WiFi interface and display a notification, via macOS notifications, that it has done this. I haven’t tested this on previous versions of macOS (only Mojave), though if the rest of the commands work, the script might function by simply removing the statement that generates a notification.

Continue reading

Solving a VPN Connection Problem with VPN Enabler on macOS Mojave

Standard

This solution probably applies only to systems that were previously running macOS Server to provide VPN services.

The system I’ve been using to run Indigo for home automation has been stuck on High Sierra, due to the removal of support for the VPN server in the macOS Server application under Mojave. But running an older OS isn’t ideal, for several reasons, so I started searching, again, for a method to provide VPN services under Mojave.

After some brief searching, once again, I found positive reviews for VPN Enabler, a handy, low-cost tool ($15) that provides a GUI for the built-in VPN server in Mojave. The VPN services are still present in later version of Mojave; Apple simply removed the ability to administer it from the Server application (the Server application doesn’t work at all in the latest versions of Mojave).

Continue reading

A Good USB Microscope for Education and Fun (Plugable USB 2.0 Digital Microscope)

Standard

This post contains Amazon Associate links. If you purchase something through them I may get a small commission, which helps cover the hosting costs for this blog.

IMG_2520.JPG

Even though our son isn’t yet three years old I wanted to go ahead and introduce him to some cool science. I had the idea that a USB microscope might be a fun way. We could look at various things up close, including insects. After reviewing several devices I decided the Plugable USB 2.0 Digital Microscope with Flexible Arm Observation Stand for Windows, Mac, Linux (2MP, 250x Magnification) would be a good choice. With a birthday coming up soon I chose to add it to my wishlist rather than outright buy it though at only $35 it’s a great price. Sure enough, someone bought it as a gift.

The only thing I can’t offer a comment on at this stage is how well it holds up as I’ve only had it for a week. I’m impressed by the simplicity of how it works. The device easily connected to my Mac and instead of requiring the installation of driver software it connected as a standard USB webcam. At this point the only software I’ve used to view and capture images is Apple’s built-in Photobooth app.

The microscope has a built-in LED light with a plastic guard surrounding the camera. To view something up-close one simply holds the guard against whatever is being inspected. The focus is adjusted by twisting the middle, rubber part of the camera assembly.

It’s USB only though it wouldn’t take much effort to connect an HDMI cable to my laptop and send the video to a TV. I’ve only used it on macOS though its supported on multiple operating systems.

Here are some sample images:

Photo on 4-7-18 at 1.35 AM.jpg

Close-up of the threads in the comforter on our bed, including some dyed strands.

 

Photo on 4-7-18 at 1.36 AM #2.jpg

This is the smooth, aluminum shell of my MacBook Air.

 

Photo on 4-7-18 at 1.36 AM #3.jpg

Threads in a pair of my pajamas.

 

Photo on 4-7-18 at 1.36 AM.jpg

High thread-count bedsheet, which normally looks dark blue.

 

Photo on 4-7-18 at 1.37 AM.jpg

A closeup of the bottom side of one of my feet.