DRAFT SOP: Using Text-to-Speech to Create WCU Reading Group Audio/Videos

Will fill out later, but wanted to note down this part:

Combining the audio file with an image to create a video file for YouTube

  1. Put the video and audio files in the same folder
  2. Hold SHIFT and right click in that folder, then select Open PowerShell window here
  3. Type in the following command after modifying the filenames

ffmpeg -loop 1 -i "2024-05-29 AEIOU and the 1-on-1 in Detail.png" -i "AEIOU and the 1-on-1 in Detail.mp3" -c:v libx264 -c:a aac -b:a 192k -shortest -pix_fmt yuv420p "2024-05-29 AEIOU and the 1-on-1 in Detail.mp4"

Breakdown of the commands:

  • -loop 1: Loops the image infinitely.
  • -i "2024-05-29 AEIOU and the 1-on-1 in Detail.png": Specifies the input image file.
  • -i "AEIOU and the 1-on-1 in Detail.mp3": Specifies the input audio file.
  • -c:v libx264: Sets the video codec to H.264 (or libx265 if your pc can do H.265).
  • -c:a aac: Sets the audio codec to AAC.
  • -b:a 192k: Sets the audio bitrate to 192 kbps.
  • -shortest: Ensures the output video ends when the shortest input (the audio file) ends.
  • -pix_fmt yuv420p: Sets the pixel format to YUV 4:2:0.
  • "2024-05-29 AEIOU and the 1-on-1 in Detail.mp4": Specifies the name of the output video file.

You can then either upload this file to the Google Drive or, if you have access to the Google Account, you can directly upload it to YouTube.

1 Like

This is sweet. I might actually make a video or two now

1 Like