Giter Site home page Giter Site logo

androzdev / mediaplex Goto Github PK

View Code? Open in Web Editor NEW
11.0 11.0 1.0 5.56 MB

[WIP] High performance media transcoding utility for node written in Rust ๐Ÿฆ€ ๐ŸŽถ

Home Page: https://npm.im/mediaplex

License: MIT License

JavaScript 22.27% Rust 77.68% C 0.05%
audio ffmpeg hacktoberfest libopus media node rust

mediaplex's People

Contributors

twlite avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

darksaid98

mediaplex's Issues

Add Transcoder

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

outdated musl binary

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

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.