Skip to content

Commit

Permalink
fix: Ffpeg path moved
Browse files Browse the repository at this point in the history
  • Loading branch information
richardscull committed Sep 11, 2023
1 parent 0b446ef commit b57f5a2
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/merge/audio.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ export async function MergeAudioAndExport(
timecodes: { endOfFirstHalf: number; startOfSecondHalf: number },
pathToExport: string
) {
ffmpeg.setFfmpegPath(ffmpegInstaller.path);
ffmpeg.setFfprobePath(ffprobe.path);

await cutMP3Audio(
`${firstSong.path}/${firstSong.difficulty.general.audioFilename}`,
"Temp/FirstPart.mp3",
Expand All @@ -21,13 +24,10 @@ export async function MergeAudioAndExport(
`${secondSong.path}/${secondSong.difficulty.general.audioFilename}`,
"Temp/SecondPart.mp3",
{
start: timecodes.startOfSecondHalf / 1000,
start: timecodes.startOfSecondHalf / 1000,
}
);

ffmpeg.setFfmpegPath(ffmpegInstaller.path);
ffmpeg.setFfprobePath(ffprobe.path);

return new Promise((resolve, reject) => {
ffmpeg()
.input("Temp/FirstPart.mp3")
Expand Down

0 comments on commit b57f5a2

Please sign in to comment.