# mp4-convert

> Convert any video file into a MP4 file playable on the Web, using ffmpeg

Latest version **1.0.2** (published 2016-11-22) · MIT license · 0 weekly downloads

## Install

```sh
npm install mp4-convert
pnpm add mp4-convert
yarn add mp4-convert
bun add mp4-convert
```

Provides the command `mp4-convert`.

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2016-11-22 |
| First published | 2015-06-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 2 |
| Author | Julien Chaumond |
| Maintainers | julien-c |
| Keywords | ffmpeg, mp4, video |

## Links

- npm: https://www.npmjs.com/package/mp4-convert
- Repository: https://github.com/julien-c/mp4-convert
- Homepage: https://github.com/julien-c/mp4-convert#readme
- Issues: https://github.com/julien-c/mp4-convert/issues
- npm.io page: https://npm.io/package/mp4-convert

## Alternatives

- [@sindresorhus/slugify](https://npm.io/package/@sindresorhus/slugify.md) — 3.7M weekly downloads
- [solid-js](https://npm.io/package/solid-js.md) — 2.7M weekly downloads
- [expo-glass-effect](https://npm.io/package/expo-glass-effect.md) — 2.5M weekly downloads
- [nanoassert](https://npm.io/package/nanoassert.md) — 780.8K weekly downloads
- [@ffmpeg/ffmpeg](https://npm.io/package/@ffmpeg/ffmpeg.md) — 529.5K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2016-11-22
- 1.0.1 — 2015-06-08
- 1.0.0 — 2015-06-05

## README

# mp4-convert

## Requirements

- `ffmpeg` (includes `ffprobe`)

## How to run the CLI

- `npm install mp4-convert`
- `node_modules/.bin/mp4-convert somevideo.mkv output.mp4`

## How to use programmatically

```js
var convert = new Mp4Convert(input, output);
convert.on('ffprobeCommand', function(cmd) {
	console.log('Command', cmd);
});
convert.on('ffprobeOutput', function(json) {
	console.log('ffprobe output');
});
convert.on('progress', function(p) {
	console.log('Progress', p);
});
convert.on('done', function() {
	console.log('Done');
});
convert.start();
```

---
_Source: https://npm.io/package/mp4-convert · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
