androzdev / mediaplex Goto Github PK
View Code? Open in Web Editor NEW[WIP] High performance media transcoding utility for node written in Rust ๐ฆ ๐ถ
Home Page: https://npm.im/mediaplex
License: MIT License
[WIP] High performance media transcoding utility for node written in Rust ๐ฆ ๐ถ
Home Page: https://npm.im/mediaplex
License: MIT License
Implement the following methods in mediaplex for discord-player
crypto_secretbox_open_easy
crypto_secretbox_easy
randombytes_buf
Since this library was created for discord-player, the API should be similar to its current transcoder, which is a node.js stream. It works by taking raw stream, piping it to transcoder and receive the desired output.
My current idea is to implement something similar to the following:
import { probeStream, CodecType, Transcoder } from 'mediaplex'
const stream = getInputStream();
const probeResult = await probeStream(stream);
if (!probeResult.result) return; // unsupported stream
const transcoder = new Transcoder({
format: CodecType.OPUS, // the output format
sampleRate: 48000, // output sample rate
channels: 2, // the number of channels
... // other options
}); // Transcoder extends Transform stream
const output = stream.pipe(transcoder); // output shall be Opus stream, as specified in format
hello, I don't know if it is the right place to report this issue but the mediaplex-linux-x64-musl isn't updated (0.0.1 instead of 0.0.9)
this issue mean that mediaplex doesn't work when running on alpine
Edit: musl removed here: #4
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.