Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: improve README #75

Merged
merged 2 commits into from
Jan 22, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 14 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ This project is designed to be used via the AMCP protocol in CasparCG server. Ho

### Requirements

The scanner needs a copy of `ffmpeg` to be able to scan any media files. On windows, a copy of `ffmpeg.exe` should be placed in the same folder as the scanner executable. On linux, `ffmpeg` should be made available on the path.
The scanner needs a copy of `ffmpeg` to be able to scan any media files. On windows, a copy of `ffmpeg.exe` should be placed in the same folder as the scanner executable. On linux, `ffmpeg` should be made available on the path.
You can override these locations in the scanner configuration.

### Configuration
Expand Down Expand Up @@ -57,41 +57,44 @@ db.changes({
});
```

Development
-----------
# For Developers

This project uses the latest LTS version NodeJS (18), so you need that installed. Get it from: https://nodejs.org/en/.
## Running in development

This project uses the latest LTS version NodeJS (18), so you need that installed. Get it from: https://nodejs.org/en/.
We also use Leveldown which uses native modules so if you're on Windows you need to install windows build tools:

`npm install --global --production windows-build-tools`

After this:
* Clone the repository
* [Required] Obtain the [_FFmpeg_ and _FFprobe_](https://ffmpeg.org/download.html) executables and place them in the root folder (or add them to your PATH).
nytamin marked this conversation as resolved.
Show resolved Hide resolved
* FFmpeg 6.1 is currently recommended, newer versions have not been tested and may have issues
* A full list of known working versions can be found at https://github.com/CasparCG/media-scanner/blob/master/src/__tests__/ffmpegReleases.json
* [Optional] Copy a `casparcg.config` file into the root folder
* Run `yarn install`
* Run `yarn dev` to start the development server

Building
-----------
## Building executable

Be aware that because of the native extensions, you can only build for the target you are currently on.

* On Windows
* `yarn build-win32`
* On Linux
* `yarn build-linux`

The built files will be placed in `./dist`, make sure you copy all files into the main CasparCG directory.

License
-------
# License

CasparCG Media-Scanner is distributed under the GNU Lesser General Public License LGPLv3 or
higher, see [LICENSE](LICENSE) for details.

More information is available at http://casparcg.com/


Documentation
-------------
# Documentation

The most up-to-date documentation is always available at
https://github.com/CasparCG/help/wiki