diff options
| author | Copilot <198982749+Copilot@users.noreply.github.com> | 2025-10-23 18:59:12 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-23 18:59:12 +0900 |
| commit | 42f230f223589290e8b249eb0b5ac4ead71dc311 (patch) | |
| tree | 7cd3f43dd59ec26e50dc78a3ada36bc76a39b5d6 /packages/frontend/src/composables | |
| parent | refactor(frontend): 既存のGLSLを単独のファイルに移行 (#16677) (diff) | |
| download | misskey-42f230f223589290e8b249eb0b5ac4ead71dc311.tar.gz misskey-42f230f223589290e8b249eb0b5ac4ead71dc311.tar.bz2 misskey-42f230f223589290e8b249eb0b5ac4ead71dc311.zip | |
Fix video audio loss during compression by preserving audio stream (#16696)
* Initial plan
* Fix video audio loss during compression by specifying AAC codec
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
* Fix audio by avoiding transcoding - copy audio stream directly
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: syuilo <4439005+syuilo@users.noreply.github.com>
Diffstat (limited to 'packages/frontend/src/composables')
| -rw-r--r-- | packages/frontend/src/composables/use-uploader.ts | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/packages/frontend/src/composables/use-uploader.ts b/packages/frontend/src/composables/use-uploader.ts index 12b6e85940..e4aa1fda53 100644 --- a/packages/frontend/src/composables/use-uploader.ts +++ b/packages/frontend/src/composables/use-uploader.ts @@ -634,7 +634,9 @@ export function useUploader(options: { bitrate: item.compressionLevel === 1 ? mediabunny.QUALITY_VERY_HIGH : item.compressionLevel === 2 ? mediabunny.QUALITY_MEDIUM : mediabunny.QUALITY_VERY_LOW, }, audio: { - bitrate: item.compressionLevel === 1 ? mediabunny.QUALITY_VERY_HIGH : item.compressionLevel === 2 ? mediabunny.QUALITY_MEDIUM : mediabunny.QUALITY_VERY_LOW, + // Explicitly keep audio (don't discard) and copy it if possible + // without re-encoding to avoid WebCodecs limitations on iOS Safari + discard: false, }, }); |