Skip to content

lobsterchan27/live2d-component

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Live2D Component for Video Pre-rendering

A Live2D integration component that pre-renders Live2D models and animations for use in video production.

Description

This project utilizes the Live2D Cubism SDK to create pre-rendered animations of Live2D models. It's designed for video production workflows, allowing for the integration of Live2D characters into video content through offline rendering.

Features

  • Pre-renders Live2D models using the Cubism SDK
  • Supports model loading, animations, and expressions
  • Integrates with audio for lip sync in pre-rendered output
  • Generates video output with FFmpeg
  • Designed for offline rendering, not real-time applications

Installation

  1. Clone the repository:

    git clone https://github.com/your-repo/live2d-component.git
    
  2. Install dependencies:

    • CMake (3.16 or higher)
    • Visual Studio 2019 or 2022 with C++ development tools
    • FFmpeg
  3. Build the project:

    cd live2d-component
    mkdir build && cd build
    cmake ..
    cmake --build . --config Release
    

Usage

Run the compiled executable with the following command-line arguments:

live2d.exe -a <audio_file> -v <video_file> [-o <output_path>]
  • -a: Path to the input audio file
  • -v: Path to the input video file
  • -o: (Optional) Path for the output video file. Defaults to "output" if not specified.

Example:

live2d.exe -a input_audio.wav -v input_video.mp4 -o output_video.mp4

This will render the Live2D model animation synchronized with the audio, overlay it on the input video, and save the result as output_video.mp4.

Configuration

Model settings can be adjusted in the LAppDefine.hpp file. This includes render target dimensions, motion groups, and other parameters.

Contributing

  1. Fork the repository
  2. Create a new branch for your feature
  3. Commit your changes
  4. Push to your branch
  5. Create a new Pull Request

Please ensure your code follows the existing style and includes appropriate tests.

License

This project uses the Live2D Cubism SDK, which is licensed under the Live2D Open Software License.

By using this software, you agree to the terms of the Live2D Open Software License.

The Live2D Cubism Components are subject to the license terms and conditions set forth by Live2D Inc. For more details, please refer to the official Live2D website and the license agreement included with the SDK.

All rights to the Live2D Cubism SDK belong to Live2D Inc. This project is not endorsed or certified by Live2D Inc.

Acknowledgements

Notes

This component is designed for integration with the Banana client. It provides a framework for rendering Live2D models and generating video output, but may require additional configuration or customization for specific use cases.

About

This project utilizes the Live2D Cubism SDK to create pre-rendered animations of Live2D models. It's designed for video production workflows, allowing for the integration of Live2D characters into video content through offline rendering.

Resources

Stars

Watchers

Forks

Releases

Packages

Contributors

Languages