Compare commits
2 commits
21b39e80bf
...
f590f77bca
Author | SHA1 | Date | |
---|---|---|---|
f590f77bca | |||
ecb03ded2a |
3 changed files with 4 additions and 4 deletions
4
package-lock.json
generated
4
package-lock.json
generated
|
@ -1,12 +1,12 @@
|
||||||
{
|
{
|
||||||
"name": "dsr",
|
"name": "dsr",
|
||||||
"version": "1.11.1",
|
"version": "1.11.2",
|
||||||
"lockfileVersion": 3,
|
"lockfileVersion": 3,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "dsr",
|
"name": "dsr",
|
||||||
"version": "1.11.1",
|
"version": "1.11.2",
|
||||||
"license": "AGPL-3.0-or-later",
|
"license": "AGPL-3.0-or-later",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@electron-forge/maker-zip": "^7.5",
|
"@electron-forge/maker-zip": "^7.5",
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
{
|
{
|
||||||
"name": "dsr",
|
"name": "dsr",
|
||||||
"version": "1.11.1",
|
"version": "1.11.2",
|
||||||
"description": "Discord Video Sharing",
|
"description": "Discord Video Sharing",
|
||||||
"main": "./dist/main.js",
|
"main": "./dist/main.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|
|
@ -153,7 +153,7 @@ app.whenReady().then(() => {
|
||||||
audioTracks: number[]
|
audioTracks: number[]
|
||||||
) => {
|
) => {
|
||||||
const audioBitrate = Math.ceil(
|
const audioBitrate = Math.ceil(
|
||||||
audioTracks.reduce((sum, current) => current + sum, 0)
|
audioTracks.reduce((sum, current) => current + sum, 50) // initial value > 0 for extra room
|
||||||
);
|
);
|
||||||
const videoBitrate = bitrate - audioBitrate;
|
const videoBitrate = bitrate - audioBitrate;
|
||||||
let finalFile;
|
let finalFile;
|
||||||
|
|
Loading…
Reference in a new issue