Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/xiguaxigua/ffmpeg-online

An online version of ffmpeg built on ffmpeg.wasm
https://github.com/xiguaxigua/ffmpeg-online

ffmpeg

Last synced: 7 days ago
JSON representation

An online version of ffmpeg built on ffmpeg.wasm

Awesome Lists containing this project

README

        

# ffmpeg-online

> https://ffmpeg-online.vercel.app/

An online version of ffmpeg based on ffmpeg.wasm, which can be used to process audio and video online

## Clip video

In ffmpeg, the command for video clipping is

```shell
ffmpeg -i test.mp4 -ss 00:00:00 -t 00:00:05 -vcodec copy -acodec copy output.mp4
```

You can upload the `test.mp4` file and run the command following the example below

![](./demo/clip-video.jpg)

## Audio and video synthesis

In ffmpeg, the command for audio and video synthesis is

```shell
ffmpeg -i test.mp4 -i test.mp3 -c:v copy -c:a aac -strict experimental -map 0:v:0 -map 1:a:0 -shortest output.mp4
```

You can upload the `test.mp4` `test.mp3` file and run the command following the example below

![](./demo/video-audio.jpg)

## Crop video

In ffmpeg, the command for video cropping is

```shell
ffmpeg -i test.mp4 -strict -2 -vf crop=1126:742:0:420 output.mp4
```

You can upload the `test.mp4` file and run the command following the example below

![](./demo/crop-video.jpg)