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

ffmpeg-over-ip

v3.0.0

Published

Connect to remote ffmpeg servers

Downloads

12

Readme

ffmpeg over IP

Connect to remote ffmpeg servers. Are you tired of unsuccessfully trying to pass your GPU through to a docker container running in a VM? So was I! ffmpeg-over-ip allows you to run an ffmpeg server on a machine with access to a GPU (Linux, Windows, or Mac) and connect to it from a remote machine. The only thing you need is Node.js installed and a shared filesystem (could be NFS, SMB, etc.) between the two machines.

Installation

ffmpeg-over-ip consists of two main parts, the server and the client. Both are packed neatly into single JS files. You can download these from the npm interface or by npm install ffmpeg-over-ip and then copying them to the relevant places. You don't need any node_modules to run the server or the client.

The javascript files require Node.js runtime to work. If you want standalone files that you can mount in a docker container, you can find these in the Github Releases.

Configuration

The server and the client are both configured using JSONC (JSON with comments) configuration files. The paths of these files can be flexible. To identify which paths are being used, you can invoke either with --debug-print-search-paths.

Template/example configuration files are provided in this repository for your convinience. Unless the server and the client share the same filesystem, you may have to specify rewrites in the server configuration file.

Usage

Both the server and the client files are executable, so long as there is a Node.js installation available. If you intend to use this in a docker container, you can directly mount the client file to where the container would expect a regular ffmpeg executable to be, ie docker run -v ./path/to/client.js:/usr/lib/jellyfin-ffmpeg/ffmpeg ....

The server and the client communicate commands over HTTP, so make sure that whatever port you specify on the server is allowed through the firewall.

Assuming you want to download these from npm, here's how you would do it

On the client side:

$ npm install ffmpeg-over-ip
$ ./node_modules/.bin/ffmpeg-over-ip-client --debug-print-search-paths # See the places where it'll look for config
$ cp template.ffmpeg-over-ip.client.jsonc ffmpeg-over-ip.client.jsonc # Add config to one of the places
$ nano ffmpeg-over-ip.client.jsonc # Change the stuff you want
$ ./node_modules/.bin/ffmpeg-over-ip-client <use like ffmpeg, add ffmpeg args here>

On the server side:

$ npm install ffmpeg-over-ip
$ ./node_modules/.bin/ffmpeg-over-ip-server --debug-print-search-paths # See the places where it'll look for config
$ cp template.ffmpeg-over-ip.server.jsonc ffmpeg-over-ip.server.jsonc # Add config to one of the places
$ nano ffmpeg-over-ip.server.jsonc # Change the stuff you want, especially the rewrites
$ ./node_modules/.bin/ffmpeg-over-ip-server

License

The contents of this project are licensed under the terms of the MIT License.