360 Secure SkillHub
360 安全技能中心

news-video-maker

该 Skill 按四步流程把新闻主题变成视频:先用搜索工具获取当日新闻,再用 TTS 生成配音,最后用 FFmpeg 将用户提供的背景图、音频和金色字幕合成为 1280x720 的 MP4 新闻简报。字幕需自备 SRT,每行不超过 20 个汉字,样式与时间轴由使用者按规定设置。

izorro
izorro
热度 84.91
最近更新 2026-05-17 14:02:23
分类:创作依赖:代码执行 / 读写文件 / 第三方 API应用场景:视频编辑

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add news-video-maker
Metadata
name
news-video-maker
description
News video maker skill. Use search tools to get news, generate speech, and create video with golden subtitles. For creating news briefing videos.

News Video Maker

Convert news content into a video with voiceover and subtitles.

Input

  • News topic/keywords (get via search tool in real-time)
  • Background image path (provided by user)
  • Output directory (user-defined, default: C:\Users\hyzu\Documents\openclaw\)

Steps

1. Get News

Use search tool to get today's news:

  • Use freeUnlimited-websearch or ollama_web_search or tavily-search skill to search for today's news
  • Keywords like: "today news", "2026 March news", etc.

Example prompt:

Search for important news today, including international and domestic news

2. Generate Speech

Use TTS tool to convert news text to speech:

  • Call tts tool to generate mp3 audio

3. Create Video

Use FFmpeg to combine background image, audio, and add subtitles.

Subtitle calculation rules:

  • Video width: 1280px
  • Font size: 36px (about 20-25 Chinese characters per line)
  • Gold subtitles: PrimaryColour=&HFFD700&

Command:

ffmpeg -y -loop 1 -i "{background_image}" -i "{audio_file}" -vf "subtitles='{subtitle_file}':force_style='Fontsize=36,PrimaryColour=&HFFD700&,BorderStyle=3,Outline=2,MarginV=50',scale=1280:720:force_original_aspect_ratio=decrease,pad=1280:720:(ow-iw)/2:(oh-ih)/2" -shortest -c:v libx264 -tune stillimage -c:a aac -b:a 192k -pix_fmt yuv420p "{output_video}"

4. Subtitle File Format (SRT)

Subtitle rules:

  • Max 20 Chinese characters per line
  • Timestamp format: HH:MM:SS,mmm --> HH:MM:SS,mmm

Example:

1
00:00:00,000 --> 00:00:04,000
2026年3月11日新闻简报

Output

MP4 video file saved to user-specified output directory.

Notes

  • Split long subtitles into multiple lines, keep each line under 20 characters
  • Backslashes in paths need escaping or use double quotes
  • Audio file can reuse MP3 generated by TTS tool