This post shows how a Mac checks for a news email every hour, writes a script, makes the voice and visuals, and schedules the upload to YouTube. One long video and several Shorts are made in one go.
What you can do with this post
- Run email → script → voice → video → upload → scheduled release without human hands
- Make a horizontal long video and vertical Shorts from the same source
- Release at the same time as the blog post, and add the video to the post automatically
- Hourly automatic runs, status checks and backups
What you need and what it costs
- A Mac (I use a Mac mini with 32GB of memory). Video rendering needs a computer that stays on.
- A YouTube channel and a Google Cloud project (free)
- Free tools: Python, ffmpeg, a free speech synthesis model, free fonts
- The Claude app and Claude CLI
- Time: one to two days for the first setup, automatic after that
Overview
- Install video tools on the Mac mini (video editing tool, Python, speech synthesis model, fonts)
- Open Gmail and YouTube to programs in Google Cloud
- Sign in with two accounts: the account that receives mail and the YouTube channel account
- Keep only the news from the email and turn it into a script (excluding the email writer's opinions, name, signature and contact details)
- Script checks, video rendering, upload, scheduled release
- Something that runs it automatically every hour
- Backups
Step by step: YouTube video automation
Structure

- Every hour, the Mac mini checks the inbox (launchd on macOS).
- Claude CLI (Claude for the terminal) writes the video script as a JSON file.
- A program checks the script, and if it fails, asks Claude to fix it (up to 2 times).
- A free speech synthesis model makes the voice, and Python draws the screens and turns them into a video file.
- It uploads to YouTube as private and schedules release for 4 a.m. the next day.
- It labels the email.
Step 1: Install tools on the Mac
In the terminal, first install Homebrew (https://brew.sh), then install the video tool and Python.
brew install ffmpeg python@3.12
Ask Claude: "Make a setup_mac.sh that creates a Python virtual environment (.venv) in this folder and installs the packages we need." The packages in my project were sherpa-onnx (speech synthesis), numpy, pillow (drawing screens), soundfile, google-api-python-client, google-auth-oauthlib and beautifulsoup4. Also put a Korean font (a free font) in the folder.
Important: keep the project folder directly under your home folder, not in Desktop, Documents or Downloads. macOS can block background programs from accessing those.
Step 2: Claude CLI
curl -fsSL https://claude.ai/install.sh | bash
After installing, run claude in the terminal and sign in through the browser. To keep the sign-in working in the background, create a long-lived token with claude setup-token and have only the automatic run script read it.
Step 3: Open Gmail and YouTube in Google Cloud (about 10 minutes)
- Create a new project at https://console.cloud.google.com.
- In APIs & Services → Library, enable the Gmail API and YouTube Data API v3.
- OAuth consent screen: user type "External", enter the app name, and add both the mail account and the YouTube account as test users.
- Enter the blog's page addresses for the homepage, privacy policy and terms, then click "Publish to production". If left in testing, the sign-in expires every 7 days.
- Credentials → OAuth client ID → type "Desktop app"; download the JSON and put it in the auth folder as credentials.json.
- When you run the sign-in script, the browser opens twice. Choose the mail account the first time and the YouTube channel account the second time. If an "unverified app" warning appears, click Advanced → Go to.
Get all the permissions at once at the start. I only asked for upload permission at first, had to sign in again for playlists and scheduled release, and caption uploads needed yet another permission, so I created a separate sign-in just for captions.
Step 4: Script and checks
Ask Claude to define the script format and check rules. My checks are:
- Is there a banned name (such as the email writer)?
- Are there numbers or Latin letters left as is in the sentences to be read aloud? (Speech synthesis misreads them, so they are written out in Korean.)
- Is each Short part 179 seconds or less? (The Shorts limit is 3 minutes.)
- Do the video date and the content date match?
If you keep the script-writing instructions in a separate prompt.md file, you only need to edit that file when you want to change the tone or structure later.
Step 5: Making the video
Ask Claude: "Make a Python program that reads the script JSON and makes a vertical 1080×1920 Short and a horizontal 1920×1080 long video. Draw the screens with pillow and put them together with ffmpeg. Start with an intro that shows the day's biggest news in large type." At first, make single-frame preview images and refine the design, then render the video once you like it.
To avoid looking like repetitive content, the screen colors and frames change with each date.
Step 6: Upload and scheduling
- Upload as private and set publishAt (the scheduled release time) to 04:00 the next day.
- If there are several Shorts, release the last part first so that they appear in order 1, 2, 3 in the channel's newest-first list.
- Add them to a playlist, and set the thumbnail from a frame where the opening is fully drawn (2.5 seconds for the long video, 3 seconds for Shorts).
- Put the blog post address on the first line of the description.
Step 7: Run automatically every hour
Ask Claude: "Make a script that registers this pipeline with launchd to run every hour. Record each email's progress in state.json so that after a failure it resumes from the step where it stopped and never re-uploads a video already uploaded. Skip an email after three failures." Turn off sleep in System Settings → Energy.
Step 8: Status checks and backups
- If you make a command that shows the status at a glance (whether automation is on, last check time, recent uploads, failure reasons), you do not need to look in every day.

- Backups to the external disk can fail because of macOS permissions. I made a small app that only does backups and gave that app Full Disk Access in System Settings → Privacy & Security.
Daily limits
Check the YouTube API's actual limits in the Google Cloud Console → your project → YouTube Data API v3 → Quotas. My project had 100 uploads per day and 10,000 units per day for other calls. Trust the numbers in the console over the numbers in documents.
Common problems and fixes
When a notice is saved instead of the sign-in token
The clipboard held a notice message instead of the authentication token, so the wrong value was saved to the file. Creating a new token fixed it. It looks trivial, but steps like this took the longest.
When Shorts go over 3 minutes
The logs show check failures such as "Shorts part 1 is 197 seconds, over 179 seconds". I made it shorten the script automatically and retry up to two times.
When the sign-in expires every 7 days
When a Google app is in testing, the sign-in expires after 7 days. Publishing it to production requires a homepage, privacy policy and terms address, so I registered the Bits & Bites pages. This is where the blog and YouTube projects first connected. After publishing on October 26, the 7-day expiry went away, but because the app has not been verified by Google, the "unverified app" warning still appears at sign-in.
When you have to sign in again for missing permissions
At first I only got upload permission. When I tried to add videos to playlists and set scheduled releases, the permissions were not enough and I had to sign in again.
Decide the release time at the start
- First: release 2 hours after upload
- October 28, first change: release at 7 a.m. the day after the email, weekly video on Saturday
- October 28, second change: release at 4 a.m., weekly video on Sunday
- October 28, third change: release Shorts in reverse order (last part first)
The reverse order is so that parts 1, 2, 3 appear in order in the channel's newest-first list. If I had thought from the start about how viewers see the list, I would not have changed it three times in one day. The blog was aligned to this schedule as well.
When folder location and disk permissions get in the way
macOS can block background programs from accessing the Desktop, Documents and Downloads folders, so I moved the project directly under the home folder. Backups to the external disk failed with an "Operation not permitted" error. I worked around it by making a small dedicated backup app and giving that app disk access. If the app is rebuilt, the permission has to be given again.
When the backup command does nothing
There was a bug where the immediate backup command finished without errors but did not actually create a backup. I found the cause and fixed it.
Daily upload limit
At first, based on public documents, I wrote that "the YouTube API allows 10,000 units a day and one upload costs about 1,600 units, so about 6 videos a day is the limit". When I checked actual usage in the Google Cloud Console on November 11, that calculation turned out to be wrong. Uploads are counted separately at 100 per day, and the 10,000 units are used only for other calls such as captions and edits. I learned only after writing this post that you should not trust a number written down from an estimate (post 8).
Key takeaways
- For a non-developer, what takes the longest is not the code but setup steps such as sign-in, permissions and tokens.
- It is better to get all the permissions you need at once at the start.
- Automatic checks and automatic retries greatly reduce how often a person has to look in.
- The release schedule should be worked out backwards from the order viewers see, not from the maker's side.
- Operating system security permissions are a regular obstacle for background automation. Check the result files, not the success messages.
- The blog's policy pages became a requirement for the YouTube automation. When you run several channels, they become the foundation for each other.
Channel name change (November 19, 2026)
By the operator's decision, the channel name changed from 칩앤섹터 (Chip&Sector) to A&J Chip Insight. The handle @chip.sector stayed the same so that links already shared would not break. The name appeared in the channel name, channel description, blog footer and About page, the channel notice in blog posts, the hashtag in Facebook posts, and the profile picture and icon. On YouTube Studio, the channel name can be changed up to twice in 14 days.
My case: what I actually did and the results
This is the story of running the YouTube channel A&J Chip Insight (@chip.sector, named 칩앤섹터 until November 19, 2026) automatically. One email becomes one horizontal main video and 2 to 4 vertical Shorts.
Why I did it
- To make and upload videos without human hands when a semiconductor news email arrives.
- To make both a long video (main video) and Shorts to catch both ways of watching.
- To release on the same day and at the same time as the blog so that the two channels introduce each other.
- Later, to earn revenue through the YouTube Partner Program.
What I did
- Every hour, the Mac mini checks the inbox. When a new email arrives, Claude CLI writes the video script and a program checks it. The checks are whether a banned name is included, whether numbers or Latin letters are left as is in the sentences to be read aloud, and whether each Short part is 179 seconds or less. If a check fails, the script is fixed automatically and retried up to two times.
- Shorts are vertical 1080×1920 and the main video is horizontal 1920×1080. Chapters are added to the main video automatically.

- Uploads are private, with release scheduled for 4 a.m. the next day. Every video goes into the playlist "Semiconductor Briefing".

- The video opens with one line of the key news, then says that the details are at bits-and-bites.com. The screen frame changes with each date.
- On Sundays, a weekly video is made from the blog posts. It centers on companies everyone knows and comes only as a main video.
- The progress of each email is recorded, so after a failure midway it resumes from where it stopped and does not re-upload videos already uploaded. Emails that fail three times are skipped.
- Every Sunday it backs up to the external disk and keeps the latest 8.
- I made a command that shows the status at a glance, plus notifications for completion and failure.
What I decided not to do
I looked into ways of making AI videos look as if a person made them, but decided not to. Deceiving the platform is more dangerous if you are caught. The problem is less the use of AI itself than content that looks mass-produced and repetitive, so I chose to refine the content and format instead, for example changing the screen frame by date and putting the key news at the start. The risk of being judged repetitive content has not gone away.
Next
The next goal is to meet YouTube's monetization requirements (subscribers and watch time).

The numbers as of November 10, 2026:
- Subscribers: 109
- Total Shorts views: about 27,000
- Long video (main video) views: 100 or fewer per video
Four days later, on November 14, 2026, the channel page showed 151 subscribers and 95 videos.
Shorts get views, but almost no one watches the long videos. The viewers are also mainly men in their 40s and 50s. The news briefing format seems to narrow the age and gender of the audience.
So from November 9 I cut Shorts to 2 a day, and at the end of each Short I point viewers to the long video for all the news. From the November 12 video on, the long video is in English (post 8). I will share the numbers on whether it worked in a later entry. I have not compiled the watch time yet.
![[Build Log 4] How to Turn One Email into YouTube Videos and Upload Them Automatically](https://bits-and-bites.com/wp-content/uploads/2026/11/build-log-images-04-cover_en-1.png)
Leave a Reply