spot: change rounding in trim
This commit is contained in:
parent
d3b6511e55
commit
fc01e47e28
2 changed files with 2 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ function SavingControls({
|
|||
const trim =
|
||||
bounds[0] + bounds[1] === 0
|
||||
? null
|
||||
: (bounds.map((i: number) => Math.round(i * 1000)) as [number, number]);
|
||||
: [Math.floor(bounds[0] * 1000), Math.ceil(bounds[1] * 1000)]
|
||||
const dataObj = {
|
||||
blob: videoBlob(),
|
||||
name: name(),
|
||||
|
|
|
|||
|
|
@ -4,6 +4,7 @@ function getRecordingSettings(qualityValue) {
|
|||
const settingsMap = {
|
||||
"4k": { audioBitsPerSecond: 192000, videoBitsPerSecond: 40000000, width: 4096, height: 2160 },
|
||||
"1080p": { audioBitsPerSecond: 192000, videoBitsPerSecond: 8000000, width: 1920, height: 1080 },
|
||||
// @default
|
||||
"720p": { audioBitsPerSecond: 96000, videoBitsPerSecond: 2500000, width: 1280, height: 720 },
|
||||
"480p": { audioBitsPerSecond: 96000, videoBitsPerSecond: 2500000, width: 854, height: 480 },
|
||||
"360p": { audioBitsPerSecond: 96000, videoBitsPerSecond: 1000000, width: 640, height: 360 },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue