Skip to content

Commit

Permalink
v5.0.19
Browse files Browse the repository at this point in the history
  • Loading branch information
seydx committed Apr 16, 2022
1 parent ac0ad81 commit 0bd58a1
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 19 deletions.
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
# Changelog
All notable changes to this project will be documented in this file.

# NEXT
# v5.0.19 - 2022-04-16

## Bugfixes
- Fixed an issue with ffmpeg logging that caused HomeKit Stream to stop responding and display a warning
- Fixed minor issues with FFmpeg v5

# v5.0.18 - 2022-04-16

## Other Changes
- Minor recording improvements
Expand Down
18 changes: 9 additions & 9 deletions package-lock.json

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

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "homebridge-camera-ui",
"version": "5.0.18",
"version": "5.0.19",
"description": "User Interface for RTSP capable cameras with HSV support.",
"author": "SeydX (https://github.com/SeydX/homebridge-camera-ui)",
"scripts": {
Expand All @@ -14,7 +14,7 @@
"main": "index.js",
"dependencies": {
"@homebridge/plugin-ui-utils": "^0.0.19",
"camera.ui": "^1.1.8",
"camera.ui": "^1.1.9",
"fs-extra": "10.0.1",
"pick-port": "^1.0.0"
},
Expand Down
23 changes: 16 additions & 7 deletions src/accessories/camera.js
Original file line number Diff line number Diff line change
Expand Up @@ -572,7 +572,13 @@ export default class CameraDelegate {

this.log.info(`Starting video stream: ${resolutionText}`, this.accessory.displayName);

const ffmpegArguments = ['-hide_banner', '-loglevel', videoConfig.debug ? 'verbose' : 'error', ...ffmpegInput];
const ffmpegArguments = ['-hide_banner'];

if (videoConfig.debug) {
ffmpegArguments.push('-loglevel', 'verbose');
}

ffmpegArguments.push(...ffmpegInput);

if (!inputChanged && !prebufferInput && videoConfig.mapvideo) {
ffmpegArguments.push('-map', videoConfig.mapvideo);
Expand Down Expand Up @@ -713,10 +719,13 @@ export default class CameraDelegate {
);

if (videoConfig.audio && videoConfig.returnAudioTarget && !inputChanged) {
const ffmpegReturnArguments = [
'-hide_banner',
'-loglevel',
videoConfig.debug ? 'verbose' : '',
const ffmpegReturnArguments = ['-hide_banner'];

if (videoConfig.debug) {
ffmpegReturnArguments.push('-loglevel', 'verbose');
}

ffmpegArguments.push(
'-protocol_whitelist',
'pipe,udp,rtp,file,crypto',
'-f',
Expand All @@ -725,8 +734,8 @@ export default class CameraDelegate {
'libfdk_aac',
'-i',
'pipe:',
...videoConfig.returnAudioTarget.split(/\s+/),
];
...videoConfig.returnAudioTarget.split(/\s+/)
);

const ipVersion = sessionInfo.ipv6 ? 'IP6' : 'IP4';

Expand Down

0 comments on commit 0bd58a1

Please sign in to comment.