npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

slp-recorder

v1.4.7

Published

Tools for converting slp files to video

Downloads

10

Readme

slp-recorder

Tools for converting slp files to video

This CLI achieves the following:

  • Generates a folder for each set from a complete challonge event
  • Ganerates a folder for each set from a completed smash.gg event
  • Creates a queue.json and bat file to run an queue of .slp files
  • Clears empty generated folders
  • Automates OBS Studio to record a list of sets as individual videos of your choice of format.

Resulting in able to play slippi files as a complete set as an mp4/flv/etc with playback controls! The only thing your are responsible for is remembering which slp files go to each set/folder.

example4

example1

example3

Warning: Windows machine only at the moment.

In order to use this tool

  • Install NodeJS. - https://nodejs.org/en/
  • Download OBS Studio - https://obsproject.com/
  • Download OBS websocket - https://github.com/Palakis/obs-websocket/releases
  • Download Slippi Launcher - https://slippi.gg/downloads

Installation

npm install -g slp-recorder

Config JSON

Before running the program make sure you create a json file with the following keys. Depending on your needs you might want to skill some variables to be declared. Use the .example.json file as a template and copy the correct values.

Or you can run:

    slp-recorder

to create a new config.json step by step!

Needed for everything

  • DIR = Target Directory of your video outputs as well as your collected slippi files

Needed for Recording

  • ISO = Melee ISO used for dolphin
  • DOLPHIN = Dolphin execuatable used for replaying slippi files
  • OBS_PORT = Part for obs-websocket
  • OBS_PASS = Password for obs-websocket
  • OBS_SCENE = Scene used for OBS recording

Getting the smash.gg slug

    tournament/<tournament-url>/events/<event-url>

Example: https://smash.gg/tournament/alberta-melee-arcadian-5/events/melee-singles/overview would be tournament/alberta-melee-arcadian-5/event/melee-singles

You can just copy it from the URL and change events to event!

Getting the challonge slug

    https://challonge.com/<slug-copy-this-part>

Example: https://challonge.com/bauybnpp would be bauybnpp

You can just copy it from the URL.

Setting up the OBS Scene

On OBS, create a scene for your slippi recording. Create a Game Capture or window capture of the dolphin.exe that will be running the replays. Easiest way to catch this is playing a slp file via slippi launcher.

You will also want to go to settings -> output to pick your video format and other output opinions

Finally go to tools -> websocket server settings to choose your port and password.

Running Program

slp-recorder <config.json>

You can create your own folders for how to divide the slp files or you can use the first two opinions to generate the folders for you if you have a proper API key.

The third opinion creates a queue.json which is necessary to feed the dolphin exe to tell which slp files to play in sequence. It will also create a windows batch file that the program will use to play the dolphin emulation for the recording phase.

Before you start the recording option, make sure OBS is already running!

TODO List

  • [ ] Finish Documentation
  • [ ] Refactor Youtube Upload
  • [ ] Stop restarting dolphin