Skip to content

Commit

Permalink
[script.audiooffsetmanager] 1.3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
matthane committed Nov 9, 2024
1 parent f1ad426 commit fc14b46
Show file tree
Hide file tree
Showing 21 changed files with 9,943 additions and 0 deletions.
674 changes: 674 additions & 0 deletions script.audiooffsetmanager/LICENSE.txt

Large diffs are not rendered by default.

65 changes: 65 additions & 0 deletions script.audiooffsetmanager/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<img src="https://raw.githubusercontent.com/matthane/script.audiooffsetmanager/refs/heads/main/resources/icon.png" width="256" height="256" alt="Audio Offset Manager">

# Audio Offset Manager

Audio Offset Manager is a utility addon for Kodi (v20.0+) designed to enhance your viewing experience by providing dynamic audio delay adjustments tailored to the content you're watching. This addon intelligently adjusts the audio offset based on the detected HDR type, audio format, and even FPS value according to user-configured settings.

<img src="https://raw.githubusercontent.com/matthane/script.audiooffsetmanager/refs/heads/main/resources/screenshot-1.jpg" width="100%" alt="Audio Offset Manager screenshot 1">

## Features

- **Dynamic Audio Offset Application**: Automatically sets audio delay based on the HDR type, audio format, and FPS value of the current video, applying user-defined offsets to ensure consistent audio-visual sync without needing repeated manual adjustments.

- **Active Monitoring Mode**: Monitors when users manually adjust audio delay via Kodi's OSD settings, stores those adjustments, and applies them for future playback of similar content. This feature is particularly useful for initial AV calibration, allowing users to fine-tune audio sync and have those settings automatically applied to similar content in the future.

- **Custom Seek-Backs**: Offers user-configurable "seek-back" functionality to rewind a few seconds in specific playback situations to keep audio synchronized, such as:
- When playback starts or resumes
- When the audio stream changes during playback
- When the audio offset is adjusted
- When the player is unpaused

<img src="https://raw.githubusercontent.com/matthane/script.audiooffsetmanager/refs/heads/main/resources/screenshot-2.jpg" width="100%" alt="Audio Offset Manager screenshot 2">

This addon streamlines your viewing experience by automating the process of audio delay adjustment, ensuring that once you've configured the appropriate offsets, they are dynamically applied for each type of content.

## Supported Formats

### Audio Formats
- Dolby Atmos / TrueHD
- Dolby Digital Plus (E-AC-3)
- Dolby Digital (AC-3)
- DTS:X / DTS-HD MA (8+ channels)
- DTS-HD MA (6 channels)
- DTS (DCA)
- Other/PCM

### Video Formats
- Dolby Vision
- HDR10
- HDR10+
- HLG
- SDR

### FPS Types
23.98, 24, 25, 29.97, 30, 50, 59.94, 60

## Installation and Usage

1. Download the addon from the Kodi repository or install it manually.
2. Enable the addon in Kodi's addon settings.
3. Open and briefly play any video to fully initialize and enable all addon settings.
4. Configure your desired audio offsets for different HDR types, audio formats, and FPS types in the addon settings.
5. If you want to perform initial AV calibration, enable the active monitoring mode in the addon settings. This will allow the addon to learn and store your manual audio offset adjustments for future use.
6. The addon will run as a background service, automatically applying your configured offsets during playback.

## Compatibility

This addon is designed for Kodi v20.0 and above. It may not function correctly with earlier versions of Kodi.

## Contributing and Reporting Issues

Contributions to improve Audio Offset Manager are welcome. If you encounter any issues or have suggestions for improvements, please open an issue on the [GitHub repository](https://github.com/matthane/script.audiooffsetmanager).

### Attributions

Icon designed by [Freepik](http://www.freepik.com/)
24 changes: 24 additions & 0 deletions script.audiooffsetmanager/addon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.audiooffsetmanager" version="1.3.2" name="Audio Offset Manager" provider-name="matthane">
<requires>
<import addon="xbmc.python" version="3.0.1"/>
</requires>
<extension point="xbmc.service" library="service.py" />
<extension point="xbmc.python.script" library="script.py" />
<extension point="xbmc.addon.metadata">
<source>https://github.com/matthane/script.audiooffsetmanager</source>
<news>v1.3.2 (2024-09-11)
- Seek back bug fixes
</news>
<summary lang="en_GB">Dynamically manages audio offsets</summary>
<description lang="en_GB">This add-on intelligently adjusts the audio offset based on the detected HDR type, audio format, and FPS type according to user-configured settings, along with other helpful features</description>
<platform>all</platform>
<license>GPL-3.0-or-later</license>
<assets>
<icon>resources/icon.png</icon>
<fanart>resources/fanart.jpg</fanart>
<screenshot>resources/screenshot-1.jpg</screenshot>
<screenshot>resources/screenshot-2.jpg</screenshot>
</assets>
</extension>
</addon>
Binary file added script.audiooffsetmanager/resources/fanart.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added script.audiooffsetmanager/resources/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit fc14b46

Please sign in to comment.