Skip to content

huanglynch/slideshow-video-generator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Slideshow Video Generator

A simple GUI tool built with Python (Tkinter and MoviePy) to generate slideshow videos from images and videos. Supports text inserts, background music, various styles, and customizable settings.

Features

  • Select a folder containing images (JPG, PNG, GIF) and videos (MP4, MOV, AVI).
  • Customize image duration, video quality (low/medium/high/ultra), FPS (1/12/24/30/60), resolution (up to 4K), and aspect ratio.
  • Add text overlays at specific positions with font, color, size, and duration.
  • Apply transition styles (e.g., fade in/out, slide left/right).
  • Add background music with volume control.
  • Output MP4 video to an "output" subfolder.
  • Supports multilingual text (English, Chinese, Japanese fonts).
  • Preview thumbnails and file info in the GUI.

Installation

  • Prerequisites: Python 3.12+, Tkinter (built-in), MoviePy, Pillow, screeninfo.
  • Install dependencies: pip install moviepy pillow screeninfo.
  • For full features, ensure FFmpeg is installed (MoviePy requirement).
  • Download the source code or EXE from releases.

Usage

  1. Run the script: python main.py or double-click the EXE.
  2. Select a folder.
  3. Choose files from the list (multi-select supported).
  4. Adjust settings via "Settings" button (duration, quality, text inserts, music).
  5. Click "Generate Video".

For detailed settings:

  • Text inserts format: position:content:font:color:size:duration:bg_color (e.g., 0:Welcome:Arial:white:72:3.0:black).
  • Multiple inserts separated by semicolons.

Building EXE

Use PyInstaller: pyinstaller --onefile --windowed main.py (rename to your script name).

License

MIT License. See LICENSE for details.

Contributing

Pull requests welcome. For issues, open a GitHub issue.


幻灯片视频生成器

这是一个使用 Python(Tkinter 和 MoviePy)构建的简单 GUI 工具,用于从图片和视频生成幻灯片视频。支持文本插入、背景音乐、各种风格和自定义设置。

功能

  • 选择包含图片(JPG、PNG、GIF)和视频(MP4、MOV、AVI)的文件夹。
  • 自定义图片显示时长、视频质量(low/medium/high/ultra)、帧率(1/12/24/30/60)、分辨率(最高 4K)和宽高比。
  • 在特定位置添加文本叠加,包括字体、颜色、大小和持续时间。
  • 应用过渡风格(例如淡入/淡出、向左/右滑动)。
  • 添加背景音乐并控制音量。
  • 输出 MP4 视频到“output”子文件夹。
  • 支持多语言文本(英文、中文、日文字体)。
  • 在 GUI 中预览缩略图和文件信息。

安装

  • 前提:Python 3.12+、Tkinter(内置)、MoviePy、Pillow、screeninfo。
  • 安装依赖:pip install moviepy pillow screeninfo
  • 为完整功能,确保安装 FFmpeg(MoviePy 要求)。
  • 从 releases 下载源代码或 EXE。

使用

  1. 运行脚本:python main.py 或双击 EXE。
  2. 选择文件夹。
  3. 从列表中选择文件(支持多选)。
  4. 通过“设置”按钮调整设置(时长、质量、文本插入、音乐)。
  5. 点击“生成视频”。

详细设置:

  • 文本插入格式:position:content:font:color:size:duration:bg_color(例如 0:欢迎:Arial:white:72:3.0:black)。
  • 多个插入用分号分隔。

构建 EXE

使用 PyInstaller:pyinstaller --onefile --windowed main.py(替换为您的脚本名)。

许可证

MIT 许可证。详见 LICENSE

贡献

欢迎 Pull Request。对于问题,请在 GitHub 开 issue。

About

A Python tool to generate slideshow videos from images and videos.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages