Skip to content

fboucher/auto-clip-youtube

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reka AI

Auto-clip YouTube videos

Each times there a new video on a specific YouTube channel, create a short clip from it using AI.

This is composed of 2 n8n flows:

  1. Submit Reel Creation: This flow is triggered when a new video is published on a specific YouTube channel. It sends the video URL to Reka Clips API to create a short clip from the video.

flow_create-clip-job

  1. Check Reel Status: This flow checks the status of the clip creation process. Once the clip is ready, it retrieves the clip URL and shares it.

flow_check-status

Setup

  • Create a Data table named videos with the following columns:
    • video_title (string)
    • video_url (string)
    • job_id (string)
    • job_status (string)
  • Import the two n8n workflows located in the n8n folder.

videos table

Flow: Submit Reel Creation

  1. When New Video (trigger):

    • Change the YouTube channel ID of the Feed URL for the channel you want to monitor.
  2. Create Reel Creation Job:

    • If you don't already have an API Key, get your free API key from Reka Platform.
    • Add your API Key to the field Bearer Token in the Bearer Auth.
    • If needed, update the JSON parameters to customize the clip creation. By default it looks like this:
     {
         "video_urls": ["{{ $json.link }}"],
         "prompt": "Create an engaging short video highlighting the best moments",
         "generation_config": {
             "template": "moments",
             "num_generations": 1,
             "min_duration_seconds": 0,
             "max_duration_seconds": 30
         },
         "rendering_config": {
             "subtitles": true,
             "aspect_ratio": "9:16"
         }
     }

    This will create one short vertical clip (9:16) up to 30 seconds long, with subtitles, using the "moments" template.

  3. Insert row:

    • Make sure there is no error.

After saving the workflow, activate it to start monitoring the YouTube channel for new videos.

Flow: Check Reel status

  1. Trigger:
    • By default the trigger is manual, I prefer this when testing. Once you are happy with your setup, change it to a time trigger to run periodically (e.g., every 15-30 minutes). Checking too frequently may lead to hitting rate limits.
  2. Get Job Status:
    • Same as before, add your API Key to the field Bearer Token in the Bearer Auth.
  3. Append row in sheet:
    • Here I'm using Google Sheets to log the results, but you can use any other method to store or share the clip URL. (email, Slack, etc.) To use Google Sheets, make sure to set up the Google Sheets credentials in n8n.
    • Update the Document, Sheet and Columns fields to match your Google Sheets setup. Google sheet example

Questions or issues

If you have any questions or run into issues, feel free to open an issue. You can also join the Reka Community Discord for support and discussions.

Documentation

Documentation for Reka Clips API can be found here: Clip Generation API (Reka Clip

License

This project is licensed under the MIT License. See the LICENSE file for details.

About

create an AI generated clip each time there a new video published on a specific YouTube channel

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published