help

FFMPEG Improperly Switching to Grayscale

I use ffmpeg to make timelapse movies of images taken from one of my several webcams.  Recently, I started having trouble with it converting all the frames of my video to gray scale.  I’m am unsure if a software upgrade or a script change caused it, but I had a heck of a time tracking it down.

This is the gist of what the message ffmpeg was giving me: “Input stream #0.0 frame changed from size:” … “fmt:gray”. There are virtually no resources out there that mention that exact phrase, but after scouring the web for a few weeks off and on, I finally found a website mentioning a similar experience and it had a solution. To solve the problem, use ImageMagick’s convert utility with “-type TrueColor” in the options list. The example below is in my timelapse bash script. This will stamp the date and time onto the top of the image and save it into my temporary directory.


convert $FILE -bordercolor Black -border 20x20 -gravity north -crop 640x500+0+0\! -gravity NorthWest -font /usr/share/fonts/truetype/freefont/FreeMonoBold.ttf -pointsize 16 -type TrueColor -fill white -annotate +10+0 "$TIMESTAMP" $TEMPDIR/$(basename $FILE)

As I mentioned earlier, I found the hint at the solution I needed here: Source.

Posted by Chad Dotson in Technology, Tips, 0 comments

Firefox/Newegg.com Fix

Some users of Firefox will occasionally encounter an issue with www.newegg.com.  The problem will manifest itself as an inability to load the website.  The fix-all is to delete your Firefox profile, but there is a easier approach.  For me, its a language setting that gets changed for some reason.

To see if this is the problem your having and fix it:

  1. Enter about:config in the address bar and press enter.
  2. Check the entry key “intl.accept_languages.”  For me the value had been modified to “chrome://global/locale/intl.properties”.
  3. If step 2 is true, select the key, right-click, and select reset.
  4. Try accessing www.newegg.com, it should work now.
Posted by Chad Dotson in Misc, 0 comments