Skip to content

Commit

Permalink
Update installation instructions and use GPAC for
Browse files Browse the repository at this point in the history
video conversion
  • Loading branch information
infinitel8p committed Nov 13, 2023
1 parent 1639c07 commit 9b46e49
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
12 changes: 6 additions & 6 deletions docs/SCRIPT.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,14 +80,14 @@ sudo pip3 install -r requirements.txt
npm -v # Checks npm version
```
## Install FFmpeg
- Install FFmpeg with the following commands:
1. Install FFmpeg
## Install GPAC
- Install GPAC with the following commands:
1. Install GPAC
```bash
sudo apt-get update
sudo apt-get install ffmpeg
sudo apt-get install gpac
```
2. Check the version
1. Check if GPAC is installed
```bash
ffmpeg -version
gpac
```
2 changes: 1 addition & 1 deletion server/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function broadcastData(data, senderWs) {

function convertToMp4(inputPath, outputPath) {
return new Promise((resolve, reject) => {
const command = `ffmpeg -i "${inputPath}" -c:v libx264 -preset ultrafast -crf 22 -c:a aac -b:a 128k "${outputPath}"`;
const command = `MP4Box -add "${inputPath}#video" "${outputPath}"`;

exec(command, (error, stdout, stderr) => {
if (error) {
Expand Down

0 comments on commit 9b46e49

Please sign in to comment.