Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
framo
Advanced tools
Readme
✨ Glorious media processing right in your browser with Typescript support ✨
Explore the docs »
Framo aims to provide advanced media features on the browser itself without having to configure or setup multiple dependencies. It does all the hard work for you by using the best configurations for FFmpeg and only exposing the necessary options. See the full list of features.
Framo is made using:
To use Framo in your project
npm install framo
Initialize framo with initializeFramo() before using any of its features
const framo = new Framo();
await framo.initializeFramo();
...
OR
framo.initializeFramo().then(() => {
...
})
Alternatively, you can initialize framo asynchronously by subscribing to the ready
observable.
const framo = new Framo();
framo.ready.subscribe(() => {
...
});
framo.initializeFramo();
makeFilmstrip()
Make a filmstrip using frames at regular intervals.
const config: FilmstripRequestConfig = {
file: <File>,
filename: 'input.mp4',
timeInterval: 1,
outputExtension: FramoImageExtension.JPG,
orientation: FilmstripOrientation.VERTICAL,
/** Optional */
resolution: {
height: 150,
},
margin: 5,
padding: 5,
color: '#ff0000',
}
const filmstrip = await framo.makeFilmstrip(config);
stitchFrames()
Stitch frames together to make a video.
const config: StitchFramesRequestConfig = {
files: <Files>,
inputExtension: FramoImageExtension.JPG,
videoExtension: FramoVideoExtension.MP4;
/** Optional */
frameDuration: 1,
};
const frames = await framo.stitchFrames(config);
extractFrames()
Extract frames from videos at specific time points or at regular intervals.
const config: ExtractFramesRequestConfig = {
file: <File>,
filename: 'input.mp4',
timeInterval: 5,
outputExtension: FramoImageExtension.JPG,
};
const frames = await framo.extractFrames(config);
More features coming soon...
ready
is triggered when framo is ready for operations.
framo.ready.subscribe(() => {
...
});
Subscribe to the progress
observable to monitor operation progress.
framo.progress.subscribe((progress: Progress) => {
...
});
For more details, please refer to the Documentation
Distributed under the MIT License. See LICENSE
for more information.
FAQs
Glorious media processing right in your browser with Typescript support
The npm package framo receives a total of 11 weekly downloads. As such, framo popularity was classified as not popular.
We found that framo demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.