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

bento4js

v0.0.3

Published

Native NodeJS wrapper implementing the bento4 utilities.

Downloads

9

Readme

Native NodeJS wrapper implementing the bento4 utilities.

🏠 Homepage

Demo


Install

yarn add bento4js

Usage

const { mp4decrypt } = require('bento4js');

const keys = {
  aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa: 'bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb',
};

const encrypted = fs.readFileSync('enc.m4s');
mp4decrypt.decrypt(encrypted, keys).then(decrypted => {
  fs.writeFileSync('dec.mp4', decrypted);
});

Run tests

yarn test

Roadmap

| app name | description | status | reference | | -------------- | ------------------------------------------------------------------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------------------------- | | mp4info | displays high level info about an MP4 file, including all tracks and codec details | ❌ | mp4info.cpp | | mp4dump | displays the entire atom/box structure of an MP4 file | ❌ | mp4dump.cpp | | mp4edit | add/insert/remove/replace atom/box items of an MP4 file | ❌ | mp4edit.cpp | | mp4extract | extracts an atom/box from an MP4 file | ❌ | mp4extract.cpp | | mp4encrypt | encrypts an MP4 file (multiple encryption schemes are supported) | ❌ | mp4encrypt.cpp | | mp4decrypt | decrypts an MP4 file (multiple encryption schemes are supported) | ✅ | Mp4Decrypt.cpp | | mp4dcfpackager | encrypts a media file into an OMA DCF file | ❌ | mp4dcfpackager.cpp | | mp4compact | converts ‘stsz’ tables into ‘stz2′ tables to create more compact MP4 files | ❌ | mp4compact.cpp | | mp4fragment | creates a fragmented MP4 file from a non-fragmented one or re-fragments an already-fragmented file | ❌ | mp4fragment.cpp | | mp4split | splits a fragmented MP4 file into discrete files | ❌ | mp4split.cpp | | mp4tag | show/edit MP4 metadata (iTunes-style and others) | ❌ | mp4tag.cpp | | mp4mux | multiplexes one or more elementary streams (H264, AAC) into an MP4 file | ❌ | mp4mux.cpp | | mp42aac | extract a raw AAC elementary stream from an MP4 file | ❌ | mp42aac.cpp | | mp42avc | extract a raw AVC/H.264 elementary stream from an MP4 file | ❌ | mp42avc.cpp | | mp42hls | converts an MP4 file to an HLS (HTTP Live Streaming) presentation, including the generation of the segments and .m3u8 playlist. | ❌ | mp42hls.cpp | | mp42ts | converts an MP4 file to an MPEG2-TS file. | ❌ | mp42ts.cpp | | mp4-dash | creates an MPEG DASH output from one or more MP4 files, including encryption. | ❌ | mp4-dash.cpp | | mp4-dash-clone | creates a local clone of a remote or local MPEG DASH presentation, optionally encrypting the segments as they are cloned. | ❌ | mp4-dash-clone.cpp |


Author

👤 nunsie


Acknowledgements

@ubuntuegor: For the ubuntuegor/mp4decrypt-buffer repo that this project is based on and the pointers he has provided me with to get started.

@axiomatic-systems: For the axiomatic-systems/Bento4 fantastic Bento4 SDK.


🤝 Contributing

Contributions, issues and feature requests are welcome!Feel free to check issues page. You can also take a look at the contributing guide.


Show your support

Give a ⭐️ if this project helped you!


📝 License

Copyright © 2021 nunsie. This project is GPL--2.0 licensed.