rrvideo: improve the video quality and add a progress bar for the CLI tool (#1197)

* refactor rrvideo: use playwright rather than puppeteer

* add a progress bar for the tool

* add tests for cli.ts

* fix build error

* add change log

* update readme file

* Apply a scaling method to improve the resolution of the output video
This commit is contained in:
Yun Feng
2023-05-01 22:04:38 +10:00
committed by GitHub
parent ebcbe8b0d7
commit 23d01387f4
16 changed files with 417 additions and 279 deletions

View File

@@ -4,11 +4,12 @@
rrvideo is a tool for transforming the session recorded by [rrweb](https://github.com/rrweb-io/rrweb) into a video.
![Demo Video](./demo/demo.gif)
## Install rrvideo
1. Install [ffmpeg](https://ffmpeg.org/download.html)。
2. Install [Node.JS](https://nodejs.org/en/download/)。
3. Run `npm i -g rrvideo` to install the rrvideo CLI。
1. Install [Node.JS](https://nodejs.org/en/download/)。
2. Run `npm i -g rrvideo` to install the rrvideo CLI.
## Use rrvideo
@@ -18,7 +19,7 @@ rrvideo is a tool for transforming the session recorded by [rrweb](https://githu
rrvideo --input PATH_TO_YOUR_RRWEB_EVENTS_FILE
```
Running this command will output a `rrvideo-output.mp4` file in the current working directory.
Running this command will output a `rrvideo-output.webm` file in the current working directory.
### Config the output path