• Uncategorized

    That Mac script that passes MP4v to ffmpeg

    Because of how Mac OS Mojave, Big Sur, Monterey handles file permissions, many Firefox add-ons are not able to pass downloaded files to outside binaries. Usually, the add-on will return a “file/directory not found” or “permission” error.

    I use one such add-on that converts movies to audio-only so that I can listen to a video in a car. After the upgrade to Mojave, the add-on started having problems with passing the downloaded MP4 file to ffmpeg to convert into M4A (MP4 Audio). So instead of typing commands into the Terminal to pass the file to ffmpeg, I decided to make an Automator script to convert MP4 to M4A from contextual menu by right-clicking on the file

    1. In Automator create a new Quick Action
    2. Make the item shown below. I usually keep the ffmpeg executable in ~/bin
    3. Save the script
    4. Name it Convert MP4 to M4A

    That’s it. Now you can right click on a MP4 file and call up the conversion script from the Quick Action or Services item.

    This script is meant for people who know what they’re doing. It won’t check if the file you’re trying to convert is an actual MP4 file, and it won’t display any errors to the GUI. Use with caution.

  • Uncategorized

    How do I unlink my Facebook account from the McDonalds mobile app?

    Short answer: At the time of this article (Dec 2021) YOU CANNOT.

    You can’t even change your e-mail address with the McDonalds app even if you signed up using your e-mail address only.

    According to the official McDonalds Mobile Order app help page: https://www.mcdonalds.com/us/en-us/mcdonalds-app/faqen.html

    Can I change the Email Address? No.

    I suspect that the developers for McD decided to use the e-mail/login-method as the primary unique key for each user instead of assigning a number for the userID. Kind of ridiculous. If you get fired from work or graduate from school, your e-mail address is going to change. If you move from Meta to Google, your login method is going to change. McDonalds expects each customer to possess a “for-life” e-mail address to be using the mobile app.

    I hope this changes in the future because it is totally do-able technically and makes sense practically.

  • Tech

    Downloaded iTunes/Music track is twice as long

    If you’ve downloaded music tracks from a video source, there is a chance that your software did not pass the correct parameters to the audio converter. This is the case with a certain Firefox extension YT downloader that passes the files to ffmpeg. The music track contains extra space for the non-existent video and the track time is twice as long. iTunes/Music.app has a bug where it will play the next track during this blank time, therefore, the CoverArt and Title will not change while the next song plays. You will need to reattempt to convert the files from MP4 to M4A manually or some kind of automated/batch method.

    The correct parameters are:

    ~/foo/bar/bin/ffmpeg -i %input -acodec copy -vn %output

    You can set up an Automator process as a Service so you have it under the Contextual menu when you Right-click, or you can set up the download folder for YT Downloader to be the target for a Automated process where the MP4 is converted to an m4a, then added to the iTunes/Music.app directory automatically.

  • Tech

    iOS 14.x Duplicate Songs in Downloaded Music

    If you see a bunch of duplicate songs in the “Downloaded” playlist in your iPhone Music.app, then there is a chance that you have manually dragged music files to your iPhone icon in iTunes or Finder to add them to the Library before Apple made a change in how these music files were marked. You will need to delete these music files from the iPhone to get rid of duplicates. This can be done by un-sync-ing your Music, deleting all Downloaded music, then re-sync-ing.

    1. Connect your iPhone to your Mac
    2. On the Mac, open a Finder window, select your iPhone from the left pane
    3. In the right pane, select the Music pane
    4. Un-check “Sync music onto… iPhone”
    5. Click “Sync” on bottom right; All sync’ed music should disappear from your iPhone
    6. On the iPhone, Go to Settings > General > iPhone Storage
    7. Swipe “All Music” to the left and delete all the music that is Downloaded to your phone; Now you should only have music tracks you’ve purchased from the iTunes Music store that are on the cloud
    8. On the Mac, go back to the Finder window with the Music pane
    9. Check “Sync music onto… iPhone”
    10. Click “Sync” on the bottom right; All or Selected music will be transferred back to the iPhone

    Now there’s going to be a problem if you downloaded music to the iPhone from another source, like another Mac. But if you were smart enough to do that, you can probably think of how to get around it.

  • Tech

    Things you MUST DO before upgrading/updating to Mac OS Big Sur (11.x)

    Ever since the beta versions of Mac OS Big Sur was introduced, there were a few dozen complaints of the installer not functioning properly at a catastrophic level. The problem happens particularly often with recent Macbook Pro models (Intel & M1), where the installer is stuck in a loop or bricks the computer completely. There is no way to cancel the install once the installer restarts your Mac, and no way to restart from your internal drive because the installer erases the Boot partition and replaces it with an Update partition.

    You can check out Mr. McIntosh’s blog for some details on the kinds of installation failures.

    If we take the statistic of “how many people report crimes” or “how many people get duped by spam”, we can estimate that the angry posts on the Apple Discussion Forum is only about 1.6% of actual Macs being affected. That means, if 10 people complain, there must be 625 affected machines out there. So far, I’ve seen about two dozen users (developers, mind you) so that’s 1500 Macs affected. Not a HUGE number but significant – especially if they are developers, beta-testers, pro-users, and early adopters.

    Anyways, long story short, here are things you MUST DO BEFORE upgrading to or updating Mac OS Big Sur. If the installation fails and your internal drive gets screwed or bricked, this will save you.

    • BACKUP – complete cloning of the internal drive is recommended
    • Enable at least one Admin user on the local drive
    • Enable booting from an External Drive – do this through Recovery Mode
    • Install Big Sur on an External Boot Drive as a production drive, if possible
    • Migrate Users to the External production drive
    • Make sure you have at least 35GB of available space on your internal drive

    Yes, yes, that means you have that same data in 3 different places. But you’ll thank me later.