owncast/core
Vivian Lim ⭐ f81e8dcda7
Mute the 'stream ended' clip's audio (#3630)
* Mute the 'stream ended' clip's audio

The 'stream ended' clip plays at the at the end of every stream broadcast using owncast.
It currently contains audio that peaks at -7.1db. (according to ffmpeg's volumedetect audio filter)
This can result in a bad experience for viewers if the stream that they were just watching had a much lower average volume, and they had turned up their speakers or headphones to compensate. In extreme cases this could theoretically cause harm to viewers and/or their equipment.
As an admin running owncast, there is no way to remove this audio *except* for patching the file. Even if you do patch the file, you need to notify your viewers to clear their browser caches if they have ever seen the clip, because offline.ts has a cache-control max-age header specifying 365 days. The caching of the previous version of this clip is out of scope of this PR.

This issue is discussed in more detail in #1965.

Unlike my previous attempt in #3332, which removed the audio track, this PR *mutes* the audio.

Specifically, I used this ffmpeg command:
```
ffmpeg -i offline.ts -filter:a "volume=0.0" output.ts
```

There are no other modifications to the clip.

* Commit updated API documentation

* feat(video): make compatible muted offline clip. Rename clip as a v2 so it is not cached

* Fix conflict

* force add new offline file

---------

Co-authored-by: vivlim <vivlim@vivl.im>
Co-authored-by: Owncast <owncast@owncast.online>
Co-authored-by: Gabe Kangas <gabek@real-ity.com>
2024-04-17 11:44:19 -07:00
..
cache Gek/cache bot search page (#3530) 2024-01-21 17:18:47 -08:00
chat Optionally disable chat rate limiter and add optional chat slur/language filter (#3681) 2024-04-09 22:25:41 -07:00
data Optionally disable chat rate limiter and add optional chat slur/language filter (#3681) 2024-04-09 22:25:41 -07:00
playlist Add support for IP-based bans (#1703) 2022-03-06 20:34:49 -08:00
rtmp feat(video): add IP address to RTMP logs. Closes #3212 (#3233) 2023-08-03 20:54:56 -07:00
storageproviders fix: share local hls file cleanup between s3 and filesystem providers. Fixes #3522 (#3531) 2024-01-22 20:26:36 -08:00
transcoder feat(log): point to passthrough as a potential issue when unable to generate thumbnails 2023-11-20 18:04:01 -08:00
user Update to Go 1.20 + run better align (#2927) 2023-05-30 10:31:43 -07:00
webhooks chore(go): run betteralign and gofumpt on codebase 2023-10-08 14:22:28 -07:00
core.go Mute the 'stream ended' clip's audio (#3630) 2024-04-17 11:44:19 -07:00
offlineState.go Mute the 'stream ended' clip's audio (#3630) 2024-04-17 11:44:19 -07:00
stats.go Add support for active viewer details API. Closes #1477 (#1747) 2022-03-06 17:31:47 -08:00
status.go Expanded linting + fix warnings (#1396) 2021-09-12 00:18:15 -07:00
storage.go remove global variables from core/storageproviders (#1444) 2021-10-11 16:29:36 -07:00
streamState.go Mute the 'stream ended' clip's audio (#3630) 2024-04-17 11:44:19 -07:00