Coder Social home page Coder Social logo

macchiatoneko / icom_media_display Goto Github PK

View Code? Open in Web Editor NEW
0.0 2.0 0.0 2.52 MB

The IcomMediaDisplay (IMD) plugin for SCP: Secret Laboratory enhances the Intercom system by allowing the playback of exported frames (images) in a specified folder or container. This feature enables server administrators to create immersive and dynamic communication experiences using visual media.

C# 100.00%
exiled scpsl

icom_media_display's Introduction

IcomMediaDisplay

Description

The IcomMediaDisplay (IMD) plugin for SCP: Secret Laboratory enhances the Intercom system by allowing the playback of exported frames (images) in a specified folder or container. This feature enables server administrators to create immersive and dynamic communication experiences using visual media.

Features

  • Automatically downscale large images if they are too large.
  • Bitmap quantizer, to compress code size by not a lot.
  • Keeping track of previous color to not repeat same color tag.
  • Media containers, as folders.
  • Highly optimized, uses Async, conversion does not run in main thread.

Commands

  • imd play <folderID>: Initiates playback of frames from the specified directory or container.
  • imd pause: Pauses the current playback.
  • imd stop: Aborts the ongoing playback.
  • imd help: Displays information about the available commands and their usage.
  • imd mod <value>: Modifies the values of certain configuration fields.

Permissions

  • imd.command: Grants permission to use all IMD commands.

Usage

  • Open a terminal or command prompt on your computer.
  • Use the cd command to navigate to the directory where your video file is located.
  • Use the following FFmpeg command to export frames from the video, scaling them down by a factor of 10 or your desired one (please do this, do not use absolute size, do not torture your server), and using the %d notation for the output filename ffmpeg -i input.mp4 -vf "scale=iw/10:ih/10" output/%d.png (create output folder before executing the command!)
  • Change the output folder to desired one, for example Billy_Herrington
  • Place it in .config/EXILED/Plugins/IcomMediaDisplay/
  • Use command play, for example imd play Billy_Herrington

Credits

  • ChatGPT for the README, because I am lazy to write my own one.
  • kyutkoharu for keeping me awake while coding this at night, wakey wakey.
  • tsukisashamiko moving to async.

icom_media_display's People

Contributors

kohakow avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.