resolve issue with mbtree
This commit is contained in:
parent
55847b6678
commit
5f7370830d
1 changed files with 2 additions and 2 deletions
|
@ -80,8 +80,8 @@ const reduceSize = (file: string, bitrate: number) => {
|
|||
const finalFile = getNewFilename(file, "Compressed - ");
|
||||
|
||||
child_process.execSync(
|
||||
`${ffmpegPath} -y -i "${file}" -c:v libx264 -b:v ${videoBitrate}k -pass 1 -an -f null ${nul} && \
|
||||
${ffmpegPath} -y -i "${file}" -c:v libx264 -b:v ${videoBitrate}k -pass 2 -c:a copy -map 0:0 -map 0:1 -map 0:2 -map 0:3 "${finalFile}"`
|
||||
`${ffmpegPath} -y -i "${file}" -c:v libx264 -b:v ${videoBitrate}k -pass 1 -an -f mp4 ${nul} && \
|
||||
${ffmpegPath} -y -i "${file}" -c:v libx264 -b:v ${videoBitrate}k -pass 2 -c:a copy -map 0:0 -map 0:1 -map 0:2 -map 0:3 -f mp4 "${finalFile}"`
|
||||
);
|
||||
|
||||
// Delete the old file
|
||||
|
|
Loading…
Reference in a new issue