SuperAPI AI Directory

video-merge-send

Office & productivity

View repository

Updated 10-15 10:23

About this skill

Video Merging and Sending

Merge multiple segmented videos (such as storyboard clips generated by Jimeng Digital Human) into one complete video and send it to Feishu.

Prerequisites

  • ffmpeg is installed (brew install ffmpeg)
  • Segmented videos have been downloaded locally

Merge Videos

Method 1: Specify a file list

python3 skills/video-merge-send/scripts/merge_videos.py \
  -i clip1.mp4 clip2.mp4 clip3.mp4 \
  -o output.mp4

Method 2: Specify a directory (sorted by filename)

python3 skills/video-merge-send/scripts/merge_videos.py \
  -d ./clips/ \
  -o output.mp4

Method 3: With fade-in/fade-out transitions

python3 skills/video-merge-send/scripts/merge_videos.py \
  -d ./clips/ \
  -o output.mp4 \
  --transition fade \
  --transition-duration 0.5

Parameter Description

Parameter Description Default Value
-i List of input video files (in order) -
-d Input video directory -
-o Output file path Required
--transition Transition type:fade / none none
--transition-duration Transition duration (seconds) 0.5

Send to Feishu

After merging is complete, use the feishu-media skill or the message tool to send the video to Feishu:

message(action=send, filePath=output.mp4)

Complete Workflow

  1. The user uses the jimeng-storyboard skill to generate a storyboard script
  2. The user generates and downloads videos shot by shot on the Jimeng web page (naming them 01.mp4, 02.mp4, ... is recommended)
  3. Put the downloaded videos into the same directory
  4. Run the merge script
  5. Send to Feishu

Notes

  • When segmented videos have different resolutions, the script will automatically unify them to the resolution of the first video
  • It is recommended to name segmented videos with sequence numbers to ensure the correct order (such as 01_hook.mp4, 02_problem.mp4)
  • The merged video uses H.264 encoding for good compatibility