Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

demrec

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

demrec - npm Package Compare versions

Comparing version 3.2.1 to 3.3.0

2

package.json
{
"name": "demrec",
"version": "3.2.1",
"version": "3.3.0",
"description": "Demo Recorder Renderer",

@@ -5,0 +5,0 @@ "main": "src/index.js",

@@ -168,8 +168,9 @@ let fs = require('fs')

let file = ph.join(dir, files[i])
let tmp = ph.join(dir, 'tmp-' + files[i])
let mp4 = ph.join(out, files[i])
let input = ph.join(dir, 'tmp-' + files[i])
let result = ph.join(out, files[i])
await ffmpeg(`-i "${file + '.mp4'}" -i "${file + '.wav'}" -c:v copy -c:a aac "${this.cfg.FFMPEG ? tmp : mp4}.mp4"`, progress => {
await ffmpeg(`-i "${file + '.mp4'}" -i "${file + '.wav'}" -c:v copy -c:a aac "${this.cfg.FFMPEG ? input : result}.mp4"`, progress => {
this.emit('log', { file: files[i], type: 'Merging', progress, index: this.cfg.FFMPEG ? 1 : null })
})
util.remove([file + '.mp4', file + '.wav'])

@@ -179,4 +180,7 @@ if (this.cfg.FFMPEG) {

for (let i = 0; i < parts.length; i++) {
let pipe = [`${file}_${i}`, `${file}_${i + 1}`]
let cmd = parts[i].join(' ')
.replaceAll('%IN%', tmp)
.replaceAll('%PREV%', pipe[0])
.replaceAll('%NEXT%', pipe[1])
.replaceAll('%IN%', input)
.replaceAll('%DIR%', dir)

@@ -186,10 +190,12 @@ .replaceAll('%TIME%', util.getTickTime(a.ticks[1] - a.ticks[0]))

.replaceAll('%TIME_END%', util.getTickTime(a.ticks[1] - a.ticks[0] - a.padding))
.replaceAll('%OUT%', mp4)
.replaceAll('%OUT%', result)
await ffmpeg(cmd, progress => {
this.emit('log', { file: files[i], type: 'Merging', progress, index: i + 2 })
})
util.remove(pipe[0])
}
}
res.push(mp4 + '.mp4')
res.push(result + '.mp4')
}

@@ -196,0 +202,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc