Compare commits
30 commits
Author | SHA1 | Date | |
---|---|---|---|
f590f77bca | |||
ecb03ded2a | |||
21b39e80bf | |||
55b94d0021 | |||
4f34191d2f | |||
7c4bd84486 | |||
e34712976b | |||
dc190ab807 | |||
21050bb0b7 | |||
482caad25f | |||
5841006f15 | |||
ee64d06e0a | |||
2ef8bda147 | |||
b6d6b84839 | |||
f2b04f0cea | |||
c22a9c295d | |||
b391e05ed3 | |||
a74bb33967 | |||
8d34199ae0 | |||
b894fd0856 | |||
39d84c9b57 | |||
981f95c40d | |||
c8538f5d03 | |||
2c2f469cc5 | |||
7973a02603 | |||
a6fe54fd9c | |||
20052ed7d6 | |||
4223ede10a | |||
877021ee0d | |||
fce9bce308 |
7 changed files with 357 additions and 521 deletions
36
README.md
36
README.md
|
@ -1,10 +1,10 @@
|
||||||
# Discord Video Sharing ![status-badge](https://git.mylloon.fr/Anri/dsr/badges/workflows/release.yml/badge.svg)
|
# Discord Video Sharing [![status-badge](https://git.mylloon.fr/Anri/dsr/badges/workflows/release.yml/badge.svg)](https://git.mylloon.fr/Anri/dsr/actions?workflow=release.yml)
|
||||||
|
|
||||||
Tool for sharing video to Discord.
|
Tool for sharing video to Discord.
|
||||||
|
|
||||||
> This tool was primarily made for video captured by NVidia Shadowplay.
|
> This tool was primarily made for video captured by NVidia Shadowplay.
|
||||||
|
|
||||||
## Download/Install
|
## Download/Install/Update
|
||||||
|
|
||||||
2 choices :
|
2 choices :
|
||||||
|
|
||||||
|
@ -15,22 +15,36 @@ Tool for sharing video to Discord.
|
||||||
irm https://git.mylloon.fr/Anri/dsr/raw/branch/main/install.ps1 | iex
|
irm https://git.mylloon.fr/Anri/dsr/raw/branch/main/install.ps1 | iex
|
||||||
```
|
```
|
||||||
|
|
||||||
> - If you have Discord Nitro: add `/nitro` flag when running DSR.
|
## Available flags
|
||||||
> - If you have an NVidia GPU with NVenc: add `/nvenc` flag when running DSR.
|
|
||||||
|
You can add thoses flags in the `Target` field of your Windows shortcut.
|
||||||
|
|
||||||
|
| | |
|
||||||
|
| ------------- | ----------------------------------------------------- |
|
||||||
|
| `/nitro` | Increase the file limit to 500Mo |
|
||||||
|
| `/nitrobasic` | Increase the file limit to 50Mo |
|
||||||
|
| | |
|
||||||
|
| `/nvenc_h264` | Enable NVenc with H.264 encoder (NVidia GPU required) |
|
||||||
|
| `/nvenc_h265` | Enable NVenc with H.265 encoder (NVidia GPU required) |
|
||||||
|
| `/h265` | Enable the H.265 CPU encoder (slow compression) |
|
||||||
|
|
||||||
|
> NVenc support is experimental, but faster than CPU counterparts.
|
||||||
|
|
||||||
## More info
|
## More info
|
||||||
|
|
||||||
- [x] KISS interface
|
- [x] KISS interface
|
||||||
- [x] Support drag&drop into the icon
|
- [x] Support drag&drop into the icon
|
||||||
- [x] Keep the video under 25mb (discord limitation)
|
- [x] Keep the video under discord limitation
|
||||||
- [x] NVenc support
|
- [x] Defaults to H.264 CPU encoder
|
||||||
- [x] If already under the limit, the file won't be compressed
|
- [x] If already under the limit, the file won't be compressed
|
||||||
- [x] Nitro suppport via `/nitro` flag
|
- [x] NVenc support
|
||||||
- [x] Merge audio files into one track when recorded with system audio and microphone
|
- [x] Nitro suppport
|
||||||
split up, while keeping the original ones (with conveninant metadata)
|
- [x] Merge 2 audio files into one track when recorded with system audio and microphone
|
||||||
- [x] Works also with file with only one audio track
|
split up, while keeping the original ones (with conveniant metadata)
|
||||||
|
- [x] Works also with file with only one or more than 2 audio track, by doing
|
||||||
|
nothing
|
||||||
- [x] Support multiples files at once
|
- [x] Support multiples files at once
|
||||||
- [x] Optimize for video streaming
|
- [x] Always optimize for video streaming
|
||||||
|
|
||||||
## Package the app for Windows
|
## Package the app for Windows
|
||||||
|
|
||||||
|
|
665
package-lock.json
generated
665
package-lock.json
generated
File diff suppressed because it is too large
Load diff
11
package.json
11
package.json
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "dsr",
|
"name": "dsr",
|
||||||
"version": "1.9.3",
|
"version": "1.11.2",
|
||||||
"description": "Discord Video Sharing",
|
"description": "Discord Video Sharing",
|
||||||
"main": "./dist/main.js",
|
"main": "./dist/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -18,16 +18,15 @@
|
||||||
"author": "Mylloon",
|
"author": "Mylloon",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@electron-forge/maker-zip": "^7.4",
|
"@electron-forge/maker-zip": "^7.5",
|
||||||
"ffmpeg-static": "^5.2",
|
"ffmpeg-static": "^5.2",
|
||||||
"ffprobe-static": "^3.1",
|
"ffprobe-static": "^3.1",
|
||||||
"terminate": "^2.8",
|
"typescript": "^5.6"
|
||||||
"typescript": "^5.5"
|
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@electron-forge/cli": "^7.4",
|
"@electron-forge/cli": "^7.5",
|
||||||
"@types/ffprobe-static": "^2.0",
|
"@types/ffprobe-static": "^2.0",
|
||||||
"electron": "^32.0"
|
"electron": "^33.0"
|
||||||
},
|
},
|
||||||
"config": {
|
"config": {
|
||||||
"forge": {
|
"forge": {
|
||||||
|
|
108
src/main.ts
108
src/main.ts
|
@ -15,8 +15,6 @@ import path = require("path");
|
||||||
import ffmpeg = require("ffmpeg-static");
|
import ffmpeg = require("ffmpeg-static");
|
||||||
const ffmpegPath = `${ffmpeg}`.replace("app.asar", "app.asar.unpacked");
|
const ffmpegPath = `${ffmpeg}`.replace("app.asar", "app.asar.unpacked");
|
||||||
|
|
||||||
const kill = require("terminate");
|
|
||||||
|
|
||||||
let error = false;
|
let error = false;
|
||||||
|
|
||||||
const moviesFilter = {
|
const moviesFilter = {
|
||||||
|
@ -24,6 +22,7 @@ const moviesFilter = {
|
||||||
extensions: ["mp4", "mkv"],
|
extensions: ["mp4", "mkv"],
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const metadataAudioSize = 3;
|
||||||
const metadataAudio = `-metadata:s:a:0 title="System sounds and microphone" \
|
const metadataAudio = `-metadata:s:a:0 title="System sounds and microphone" \
|
||||||
-metadata:s:a:1 title="System sounds" \
|
-metadata:s:a:1 title="System sounds" \
|
||||||
-metadata:s:a:2 title="Microphone"`;
|
-metadata:s:a:2 title="Microphone"`;
|
||||||
|
@ -91,9 +90,9 @@ app.whenReady().then(() => {
|
||||||
const tmpFile = getNewFilename(file, "TMP_");
|
const tmpFile = getNewFilename(file, "TMP_");
|
||||||
let outFile;
|
let outFile;
|
||||||
|
|
||||||
const nbTracks = getNumberOfAudioTracks(file);
|
let audioTracks = getNumberOfAudioTracks(file);
|
||||||
|
|
||||||
switch (nbTracks) {
|
switch (audioTracks.length) {
|
||||||
case 2:
|
case 2:
|
||||||
// Merge 2 audio
|
// Merge 2 audio
|
||||||
// See: https://trac.ffmpeg.org/wiki/AudioChannelManipulation#a2stereostereo
|
// See: https://trac.ffmpeg.org/wiki/AudioChannelManipulation#a2stereostereo
|
||||||
|
@ -122,6 +121,8 @@ app.whenReady().then(() => {
|
||||||
// Delete the temporary video file
|
// Delete the temporary video file
|
||||||
deleteFile(tmpFile);
|
deleteFile(tmpFile);
|
||||||
|
|
||||||
|
audioTracks = getNumberOfAudioTracks(outFile);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
// Other cases: no merge needed
|
// Other cases: no merge needed
|
||||||
|
@ -139,49 +140,63 @@ app.whenReady().then(() => {
|
||||||
title: outFile,
|
title: outFile,
|
||||||
size: stats.size / 1024 / 1024,
|
size: stats.size / 1024 / 1024,
|
||||||
duration,
|
duration,
|
||||||
nbTracks,
|
audioTracks,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Reduce size of a file */
|
/** Reduce size of a file
|
||||||
|
* Returns an empty string in case of failing
|
||||||
|
*/
|
||||||
const reduceSize = async (
|
const reduceSize = async (
|
||||||
file: string,
|
file: string,
|
||||||
bitrate: number,
|
bitrate: number,
|
||||||
nbTracks: number
|
audioTracks: number[]
|
||||||
) => {
|
) => {
|
||||||
const audioBitrate = 500; // keep some room
|
const audioBitrate = Math.ceil(
|
||||||
let videoBitrate = bitrate - audioBitrate;
|
audioTracks.reduce((sum, current) => current + sum, 50) // initial value > 0 for extra room
|
||||||
|
);
|
||||||
|
const videoBitrate = bitrate - audioBitrate;
|
||||||
|
let finalFile;
|
||||||
|
|
||||||
const finalFile = getNewFilename(file, "Compressed - ");
|
if (videoBitrate > 0) {
|
||||||
|
finalFile = getNewFilename(file, "Compressed - ");
|
||||||
|
|
||||||
// Trash the output, depends on the platform
|
// Trash the output, depends on the platform
|
||||||
const nul = process.platform === "win32" ? "NUL" : "/dev/null";
|
const nul = process.platform === "win32" ? "NUL" : "/dev/null";
|
||||||
|
|
||||||
// Mapping of tracks for FFMPEG, adding 1 for the video stream
|
// Mapping of tracks for FFMPEG, adding 1 for the video stream
|
||||||
const mappingTracks = Array(nbTracks + 1)
|
const mappingTracks = Array(audioTracks.length + 1)
|
||||||
.fill("-map 0:")
|
.fill("-map 0:")
|
||||||
.map((str, index) => {
|
.map((str, index) => {
|
||||||
return str + index;
|
return str + index;
|
||||||
})
|
})
|
||||||
.join(" ");
|
.join(" ");
|
||||||
|
|
||||||
let codec = "libx264";
|
let codec = "libx264";
|
||||||
let hwAcc = "";
|
let hwAcc = "";
|
||||||
|
|
||||||
const argv = process.argv;
|
const argv = process.argv;
|
||||||
if (argv.includes("/nvenc")) {
|
if (argv.includes("/nvenc_h264")) {
|
||||||
// Use NVenc
|
// Use NVenc H.264
|
||||||
codec = "h264_nvenc";
|
codec = "h264_nvenc";
|
||||||
hwAcc = "-hwaccel cuda";
|
hwAcc = "-hwaccel cuda";
|
||||||
|
}
|
||||||
|
|
||||||
// Increase video bitrate
|
if (argv.includes("/nvenc_h265")) {
|
||||||
videoBitrate = Math.floor(videoBitrate * 1.7);
|
// Use NVenc H.265
|
||||||
}
|
codec = "hevc_nvenc";
|
||||||
|
hwAcc = "-hwaccel cuda";
|
||||||
|
}
|
||||||
|
|
||||||
// Compress the video
|
if (argv.includes("/h265")) {
|
||||||
// Add metadata to audio's track
|
// Use H.265 encoder
|
||||||
await execute(
|
codec = "libx265";
|
||||||
`"${ffmpegPath}" -y ${hwAcc} \
|
}
|
||||||
|
|
||||||
|
// Compress the video
|
||||||
|
// Add metadata to audio's track
|
||||||
|
await execute(
|
||||||
|
`"${ffmpegPath}" -y ${hwAcc} \
|
||||||
-i "${file}" \
|
-i "${file}" \
|
||||||
-c:v ${codec} -b:v ${videoBitrate}k -pass 1 -an -f mp4 \
|
-c:v ${codec} -b:v ${videoBitrate}k -pass 1 -an -f mp4 \
|
||||||
${nul} \
|
${nul} \
|
||||||
|
@ -190,22 +205,26 @@ app.whenReady().then(() => {
|
||||||
-i "${file}" \
|
-i "${file}" \
|
||||||
-c:v ${codec} -b:v ${videoBitrate}k -pass 2 -c:a copy \
|
-c:v ${codec} -b:v ${videoBitrate}k -pass 2 -c:a copy \
|
||||||
${mappingTracks} -f mp4 \
|
${mappingTracks} -f mp4 \
|
||||||
${metadataAudio} \
|
-profile:v main \
|
||||||
|
${audioTracks.length === metadataAudioSize ? metadataAudio : ""} \
|
||||||
${shareOpt} \
|
${shareOpt} \
|
||||||
"${finalFile}"`
|
"${finalFile}"`
|
||||||
).catch((e) => registerError(win, e));
|
).catch((e) => registerError(win, e));
|
||||||
|
|
||||||
|
// Delete the 2 pass temporary files
|
||||||
|
deleteTwoPassFiles(process.cwd());
|
||||||
|
} else {
|
||||||
|
finalFile = "";
|
||||||
|
}
|
||||||
|
|
||||||
// Delete the old video file
|
// Delete the old video file
|
||||||
deleteFile(file);
|
deleteFile(file);
|
||||||
|
|
||||||
// Delete the 2 pass temporary files
|
|
||||||
deleteTwoPassFiles(process.cwd());
|
|
||||||
|
|
||||||
return finalFile;
|
return finalFile;
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Move metadata at the begenning of the file */
|
/** Move metadata at the begenning of the file */
|
||||||
const moveMetadata = async (file: string) => {
|
const moveMetadata = async (file: string, nbTracks: number) => {
|
||||||
const finalFile = getNewFilename(file, "Broadcastable - ");
|
const finalFile = getNewFilename(file, "Broadcastable - ");
|
||||||
|
|
||||||
// Optimize for streaming
|
// Optimize for streaming
|
||||||
|
@ -214,6 +233,7 @@ app.whenReady().then(() => {
|
||||||
-i "${file}" \
|
-i "${file}" \
|
||||||
-map 0 -codec copy \
|
-map 0 -codec copy \
|
||||||
${shareOpt} \
|
${shareOpt} \
|
||||||
|
${nbTracks === metadataAudioSize ? metadataAudio : ""} \
|
||||||
"${finalFile}"`
|
"${finalFile}"`
|
||||||
).catch((e) => registerError(win, e));
|
).catch((e) => registerError(win, e));
|
||||||
|
|
||||||
|
@ -231,17 +251,19 @@ app.whenReady().then(() => {
|
||||||
ipcMain.handle("mergeAudio", (_, file: string) => mergeAudio(file));
|
ipcMain.handle("mergeAudio", (_, file: string) => mergeAudio(file));
|
||||||
ipcMain.handle(
|
ipcMain.handle(
|
||||||
"reduceSize",
|
"reduceSize",
|
||||||
(_, file: string, bitrate: number, nbTracks: number) =>
|
(_, file: string, bitrate: number, audioTracks: number[]) =>
|
||||||
reduceSize(file, bitrate, nbTracks)
|
reduceSize(file, bitrate, audioTracks)
|
||||||
|
);
|
||||||
|
ipcMain.handle("moveMetadata", (_, file: string, nbTracks: number) =>
|
||||||
|
moveMetadata(file, nbTracks)
|
||||||
);
|
);
|
||||||
ipcMain.handle("moveMetadata", (_, file: string) => moveMetadata(file));
|
|
||||||
ipcMain.handle("exit", () => (error ? {} : app.quit()));
|
ipcMain.handle("exit", () => (error ? {} : app.quit()));
|
||||||
ipcMain.handle("confirmation", (_, text: string) => confirmation(text));
|
ipcMain.handle("confirmation", (_, text: string) => confirmation(text));
|
||||||
});
|
});
|
||||||
|
|
||||||
app.on("window-all-closed", () => {
|
app.on("window-all-closed", () => {
|
||||||
processes.forEach((process) => {
|
processes.forEach((process) => {
|
||||||
kill(process.pid);
|
process.stdin.write("q");
|
||||||
});
|
});
|
||||||
|
|
||||||
app.quit();
|
app.quit();
|
||||||
|
|
|
@ -13,9 +13,10 @@ contextBridge.exposeInMainWorld("internals", {
|
||||||
ipcRenderer.invoke("getFilename", filepath),
|
ipcRenderer.invoke("getFilename", filepath),
|
||||||
askFiles: () => ipcRenderer.invoke("askFiles"),
|
askFiles: () => ipcRenderer.invoke("askFiles"),
|
||||||
mergeAudio: (file: string) => ipcRenderer.invoke("mergeAudio", file),
|
mergeAudio: (file: string) => ipcRenderer.invoke("mergeAudio", file),
|
||||||
reduceSize: (file: string, bitrate: number, nbTracks: number) =>
|
reduceSize: (file: string, bitrate: number, audioTracks: number[]) =>
|
||||||
ipcRenderer.invoke("reduceSize", file, bitrate, nbTracks),
|
ipcRenderer.invoke("reduceSize", file, bitrate, audioTracks),
|
||||||
moveMetadata: (file: string) => ipcRenderer.invoke("moveMetadata", file),
|
moveMetadata: (file: string, nbTracks: number) =>
|
||||||
|
ipcRenderer.invoke("moveMetadata", file, nbTracks),
|
||||||
exit: () => ipcRenderer.invoke("exit"),
|
exit: () => ipcRenderer.invoke("exit"),
|
||||||
confirmation: (text: string) => ipcRenderer.invoke("confirmation", text),
|
confirmation: (text: string) => ipcRenderer.invoke("confirmation", text),
|
||||||
});
|
});
|
||||||
|
|
|
@ -11,14 +11,14 @@ let internals: {
|
||||||
title: string;
|
title: string;
|
||||||
duration: number;
|
duration: number;
|
||||||
size: number;
|
size: number;
|
||||||
nbTracks: number;
|
audioTracks: number[];
|
||||||
}>;
|
}>;
|
||||||
reduceSize: (
|
reduceSize: (
|
||||||
file: string,
|
file: string,
|
||||||
bitrate: number,
|
bitrate: number,
|
||||||
nbTracks: number
|
audioTracks: number[]
|
||||||
) => Promise<string>;
|
) => Promise<string>;
|
||||||
moveMetadata: (file: string) => Promise<string>;
|
moveMetadata: (file: string, nbTracks: number) => Promise<string>;
|
||||||
confirmation: (text: string) => Promise<void>;
|
confirmation: (text: string) => Promise<void>;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -56,13 +56,16 @@ const getFiles = async () => {
|
||||||
/** Returns maximum allowed size for files in MB */
|
/** Returns maximum allowed size for files in MB */
|
||||||
const fetchMaxSize = async () => {
|
const fetchMaxSize = async () => {
|
||||||
const argv = await internals.argv();
|
const argv = await internals.argv();
|
||||||
if (argv.includes("/nitro")) {
|
if (argv.includes("/nitrobasic")) {
|
||||||
|
// Nitro Basic user
|
||||||
|
return 50;
|
||||||
|
} else if (argv.includes("/nitro")) {
|
||||||
// Nitro user
|
// Nitro user
|
||||||
return 500;
|
return 500;
|
||||||
|
} else {
|
||||||
|
// Free user
|
||||||
|
return 10;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Free user
|
|
||||||
return 25;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Either replace the message, or add some info */
|
/** Either replace the message, or add some info */
|
||||||
|
@ -100,6 +103,7 @@ const main = async () => {
|
||||||
updateMessage("Récupération des fichiers...");
|
updateMessage("Récupération des fichiers...");
|
||||||
const files = await getFiles();
|
const files = await getFiles();
|
||||||
let processedFiles = "";
|
let processedFiles = "";
|
||||||
|
let numberOfUncompressableFiles = 0;
|
||||||
|
|
||||||
// Iterate over all the retrieved files
|
// Iterate over all the retrieved files
|
||||||
for (const [idx, file] of files.entries()) {
|
for (const [idx, file] of files.entries()) {
|
||||||
|
@ -132,24 +136,39 @@ const main = async () => {
|
||||||
finalTitle = await internals.reduceSize(
|
finalTitle = await internals.reduceSize(
|
||||||
newFile.title,
|
newFile.title,
|
||||||
bitrate,
|
bitrate,
|
||||||
newFile.nbTracks
|
newFile.audioTracks
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
updateMessage(`\nPréparation pour le partage...`, true, Mode.Append);
|
updateMessage(`\nPréparation pour le partage...`, true, Mode.Append);
|
||||||
|
|
||||||
// Move the metadata to make it playable before everything is downloaded
|
// Move the metadata to make it playable before everything is downloaded
|
||||||
finalTitle = await internals.moveMetadata(newFile.title);
|
finalTitle = await internals.moveMetadata(
|
||||||
|
newFile.title,
|
||||||
|
newFile.audioTracks.length
|
||||||
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Append title to the list of processed files
|
// Append title to the list of processed files
|
||||||
processedFiles += `\n- ${finalTitle}`;
|
if (finalTitle.length > 0) {
|
||||||
updateMessage(`Fichier ${counter} traités.`);
|
processedFiles += `\n- ${finalTitle}`;
|
||||||
|
updateMessage(`Fichier ${counter} traités.`);
|
||||||
|
} else {
|
||||||
|
processedFiles += `\n- ${file} [incompressable]`;
|
||||||
|
updateMessage(`Fichier ${counter} trop large pour être compressé.`);
|
||||||
|
numberOfUncompressableFiles++;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
let errorMessage = "";
|
||||||
|
if (numberOfUncompressableFiles > 0) {
|
||||||
|
errorMessage += `\nNombre de fichier incompressable : ${numberOfUncompressableFiles}.`;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Send confirmation to the user that we're done
|
// Send confirmation to the user that we're done
|
||||||
await internals.confirmation(
|
await internals.confirmation(
|
||||||
`${files.length} fichiers traités : ${processedFiles}`
|
`${files.length} fichiers traités : ${processedFiles}` + errorMessage
|
||||||
);
|
);
|
||||||
|
|
||||||
await internals.exit();
|
await internals.exit();
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -22,10 +22,12 @@ export const getVideoDuration = (file: string) => {
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Return the number of audio tracks */
|
/** Return the number of audio tracks */
|
||||||
export const getNumberOfAudioTracks = (file: string) => {
|
export const getNumberOfAudioTracks = (file: string): number[] => {
|
||||||
const command = `"${ffprobePath}" -v error -show_entries stream=index -select_streams a -of json "${file}"`;
|
const command = `"${ffprobePath}" -v error -show_entries stream=bit_rate -select_streams a -of json "${file}"`;
|
||||||
const result = child_process.execSync(command, { encoding: "utf8" });
|
const result = child_process.execSync(command, { encoding: "utf8" });
|
||||||
return JSON.parse(result).streams.length;
|
return JSON.parse(result).streams.map(
|
||||||
|
(v: { bit_rate: string }) => Number(v.bit_rate) / 1000
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
/** Print an error to the console and open the dev tool panel */
|
/** Print an error to the console and open the dev tool panel */
|
||||||
|
|
Loading…
Reference in a new issue