Skip to content

Commit

Permalink
fix(homebridge): use custom ffmpegPath when checking libfdk_aac s…
Browse files Browse the repository at this point in the history
…upport
  • Loading branch information
dgreif committed Oct 23, 2020
1 parent c7d4a14 commit 68af136
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions homebridge/camera-source.ts
Expand Up @@ -180,6 +180,7 @@ export class CameraSource implements CameraStreamingDelegate {
srtp_salt: videoSrtpSalt,
},
} = request,
ffmpegPath = getFfmpegPath(),
[sipSession, libfdkAacInstalled] = await Promise.all([
this.ringCamera.createSipSession({
audio: {
Expand All @@ -192,7 +193,7 @@ export class CameraSource implements CameraStreamingDelegate {
},
skipFfmpegCheck: true,
}),
doesFfmpegSupportCodec('libfdk_aac')
doesFfmpegSupportCodec('libfdk_aac', ffmpegPath)
.then((supported) => {
if (!supported) {
this.logger.error(
Expand Down Expand Up @@ -371,7 +372,7 @@ export class CameraSource implements CameraStreamingDelegate {
encodeSrtpOptions(sipSession.rtpOptions.audio),
`srtp://127.0.0.1:${await returnAudioTranscodedSplitter.portPromise}?pkt_size=188`,
],
ffmpegPath: getFfmpegPath(),
ffmpegPath,
logger: {
info: logDebug,
error: logError,
Expand Down

0 comments on commit 68af136

Please sign in to comment.