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:
@@ -4,11 +4,12 @@
|
||||
|
||||
rrvideo is a tool for transforming the session recorded by [rrweb](https://github.com/rrweb-io/rrweb) into a video.
|
||||
|
||||

|
||||
|
||||
## 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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user