Skip to content

Commit 2378021

Browse files
committed
remove double quotes from command and changed output file name
1 parent 2aaa8d2 commit 2378021

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

server.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ app.post('/supercut', (req, res) => {
5050
const body = req.body
5151

5252
const id = uuidv4()
53-
const outputFile = `${process.cwd()}/data/${id}.mp4`;
53+
const outputFile = `${process.cwd()}/${id}.mp4`;
5454
const w = 640
5555
const h = 480
5656

@@ -70,9 +70,9 @@ app.post('/supercut', (req, res) => {
7070
const filterComplex1 = filter1.join(' ')
7171
const filterComplex2 = filter2.join('')
7272
const filterComplex3 = `concat=n=${body.cuts.length}:v=1:a=1[v][a]`
73-
const streamMapping = ['-map', '"[v]"', '-map', '"[a]"']
73+
const streamMapping = ['-map', '[v]', '-map', '[a]']
7474
// removing '-fps_mode', 'vfr' to check if it works without variable framerate
75-
const filterComplex = ['-filter_complex', `"${filterComplex1} ${filterComplex2}${filterComplex3}"`]
75+
const filterComplex = ['-filter_complex', `${filterComplex1} ${filterComplex2}${filterComplex3}`]
7676

7777

7878
inputs.push(...filterComplex)

0 commit comments

Comments
 (0)