aboutsummaryrefslogtreecommitdiff
path: root/tests/Jellyfin.MediaEncoding.Tests
AgeCommit message (Collapse)Author
2026-07-22Check the "name" tag, not just "title"Richard Webster
2026-07-21Fix subtitle encoding for local files (#17281)Tim Eisele
* Fix subtitle encoding * Add short-circuit * Use IsTextFormat * Update MediaBrowser.MediaEncoding/Subtitles/SubtitleEncoder.cs Co-authored-by: Bond-009 <bond.009@outlook.com> --------- Co-authored-by: Bond-009 <bond.009@outlook.com>
2026-07-20Merge pull request #17342 from LTe/fix-subtitle-conversion-raceCody Robibero
Fix race condition in concurrent subtitle conversion
2026-07-20Remove libpostproc check for ffmpeg version validation (#17384)gnattu
Remove libpostproc check for ffmpeg version validation
2026-07-15Fix race condition in concurrent subtitle conversionPiotr Niełacny
SubtitleEncoder.ConvertSubtitles parsed subtitles with libse's static Subtitle.Parse, which iterates a statically cached list of shared SubtitleFormat instances. Format parsers keep mutable per-parse state on the instance, so concurrent subtitle requests corrupted each other's output (cues mixed across streams and languages, truncated files) or failed with NullReferenceException when format detection broke down and Subtitle.Parse returned null. Parse through the injected ISubtitleParser instead. SubtitleEditParser instantiates a fresh format parser per call, so requests no longer share state. Its Parse method now returns the libse Subtitle directly (the SubtitleTrackInfo flattening was unused since the SubtitleEdit writer rework) so the writers keep full fidelity such as ASS styling.
2026-06-23Rework bitrate reportingShadowghost
2026-06-16Make sure we don't include the null terminatorBond_009
2026-06-15Add regression testBond_009
2026-05-30Write subtitles using SubtitleEditBond_009
We've been using SubtitleEdit to parse since 2021 https://github.com/jellyfin/jellyfin/pull/4984 I think it's time we start using it to write too
2026-05-07Add OriginalLanguage as option to PreferredAudioLanguage (#12579)Erik W
* Add OriginalLanguage as option to PreferredAudioLanguage * Support for multiple original languages * Add original audio stream indicator * Fetch OriginalLanguage from TMDB * Adapt to EFCore refactor * Fix PlayDefaultAudioTrack OriginalLanguage behavior * Fix better PlayDefaultAudioTrack OriginalLanguage behavior * Add comment to ItemFields * Improved PlayDefaultAudioTrack behavior * Add migration for original language * Use sting.Equals for string comparisons * Always set dto OriginalLanguage * Remove OriginalLanguage from ItemFields --------- Co-authored-by: Lampan-git <lampan-git@users.noreply.github.com>
2026-04-24Merge pull request #16666 from Shadowghost/xunit3Bond-009
Upgrade to xunit v3
2026-04-19Upgrade to xunit v3Shadowghost
2026-04-15fix: retain subtitles spanning HLS segment boundaries (#16594)Hilmar Gústafsson
fix: retain subtitles spanning HLS segment boundaries
2026-03-29Only set IsAvc for video streamsBond_009
Also enables nullable for MediaStreamInfo Makes more properties nullable that aren't always present
2026-03-01Fix StyleCop and xUnit analyzer errorsNoFear0411
- Add missing param and returns XML doc tags (SA1611, SA1615) - Remove trailing alignment whitespace in test attributes (SA1025) - Use nullable string parameter for null test case (xUnit1012)
2026-03-01Fix near-1:1 SAR values falsely flagged as anamorphicNoFear0411
Encoders sometimes produce sample aspect ratios like 3201:3200 (0.03% off square) for content that has effectively square pixels. The exact string comparison against "1:1" marks these as anamorphic, which triggers unnecessary transcoding on clients that require non-anamorphic video. Parse the SAR ratio numerically and treat values within 1% of 1:1 as square pixels. This threshold is well clear of the nearest real anamorphic SAR (PAL 4:3 at 16:15 = 6.67% off).
2025-12-28Backport pull request #15807 from jellyfin/release-10.11.zgnattu
Enforce more strict webm check Original-merge: 8379b4634aeaf9827d07a41cf9ba8fd80c8c323e Merged-by: crobibero <cody@robibe.ro> Backported-by: Bond_009 <bond.009@outlook.com>
2025-04-19Fix OverflowException when scanning media with a very short duration (#13949)Bond-009
2025-02-17Revert nullability of MediaStream.IsHearingImpaired (#13573)Cody Robibero
2024-11-14Fixed TestsJPVenson
2024-08-27Merge pull request #11250 from nyanmisaka/fix-hwa-video-rotationBond-009
Fix the broken video orientation (+-90/180)
2024-08-05Backport pull request #12374 from jellyfin/release-10.9.znyanmisaka
Fix compatibility between TranscodingThrottler and FFmpeg 7.0 Original-merge: ee0094d889fe99cc3e27b556d5470e94b2521a3e Merged-by: crobibero <cody@robibe.ro> Backported-by: Bond_009 <bond.009@outlook.com>
2024-07-23Merge branch 'master' into fix-hwa-video-rotationNyanmisaka
2024-07-21Backport pull request #12278 from jellyfin/release-10.9.zBond-009
Fix localization of audio title Original-merge: f7a90b6383aed557c0c2d3a824fc00340f72fe40 Merged-by: Bond-009 <bond.009@outlook.com> Backported-by: Joshua M. Boniface <joshua@boniface.me>
2024-06-01Backport pull request #11857 from jellyfin/release-10.9.zgnattu
Fix ffprobe -user_agent parameter Original-merge: d0336cd67edb3c70b9a0ec03a5ef1f991e3c9b84 Merged-by: Bond-009 <bond.009@outlook.com> Backported-by: Joshua M. Boniface <joshua@boniface.me>
2024-03-30Add tests for the video rotation side datanyanmisaka
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-03-17Clean the outdated ffmpeg test data and add 6.1.1nyanmisaka
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-01-09test: add webm testDmitry Lyzo
2024-01-06Detect audio spatial format (#9996)Mohamed Akram
* Detect audio spatial format * Update MediaBrowser.Model/Entities/MediaStream.cs * Update MediaStream.cs --------- Co-authored-by: Cody Robibero <cody@robibe.ro>
2023-10-26Extract the MediaEncoder probing command arguments builderVincent Lark
2023-10-21Forward user_agent config to ffprobeVincent Lark
2023-09-18Fix xUnit1030: Do not call ConfigureAwait in test methodBond_009
2023-09-11Removed nesting levels through block-scoped `using` statement (#10025)Lehonti Ramos
Co-authored-by: John Doe <john@doe> Co-authored-by: Lehonti Ramos <lehonti@ramos>
2023-03-25Convert Person.Type to use PersonKind enum (#9487)Cody Robibero
2023-03-09Backport pull request #9422 from jellyfin/release-10.8.znyanmisaka
Fix stream map when using filter_complex with unlabeled output Original-merge: 6821a2ab358761282a0030c42c837b39bad089e1 Merged-by: Bond-009 <bond.009@outlook.com> Backported-by: crobibero <cody@robibe.ro>
2023-02-12Always run code analyzers for tests projects (#9304)Bond-009
2023-02-04Use Directory.Packages.props (#9135)Zoltan Csizmadia
Co-authored-by: Zoltan Csizmadia <CsizmadiaZ@valassis.com>
2023-02-01Improve ffprobe json parsing and don't log error for Codec Type attachmentBond_009
2023-01-19Revert 'Fix interlace check for H.264 MBAFF coded MP4 files' (#6222)Bond_009
2023-01-18chore(deps): update dependency microsoft.codeanalysis.bannedapianalyzers to ↵renovate[bot]
v3.3.4 (#9117) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-01-14Update test dependencies (#9094)Patrick Barron
2023-01-11Fix all warnings in MediaBrowser.MediaEncoding (#9073)Bond-009
2022-12-14Fix debug builds (#8909)Bond-009
2022-12-07Update projects to .net7Bond_009
2022-10-07Add hearing impaired subtitle stream indicator (#7379)Joe Rogers
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2022-09-28Remove redundant using directivesHannes Braun
2022-09-26Bump Microsoft.NET.Test.Sdk from 17.3.1 to 17.3.2dependabot[bot]
Bumps [Microsoft.NET.Test.Sdk](https://github.com/microsoft/vstest) from 17.3.1 to 17.3.2. - [Release notes](https://github.com/microsoft/vstest/releases) - [Commits](https://github.com/microsoft/vstest/compare/v17.3.1...v17.3.2) --- updated-dependencies: - dependency-name: Microsoft.NET.Test.Sdk dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-09-09Fix build errors from new warningsCody Robibero
2022-09-09Bump xunit from 2.4.1 to 2.4.2dependabot[bot]
Bumps [xunit](https://github.com/xunit/xunit) from 2.4.1 to 2.4.2. - [Release notes](https://github.com/xunit/xunit/releases) - [Commits](https://github.com/xunit/xunit/compare/2.4.1...2.4.2) --- updated-dependencies: - dependency-name: xunit dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>
2022-09-09Bump Moq from 4.18.1 to 4.18.2dependabot[bot]
Bumps [Moq](https://github.com/moq/moq4) from 4.18.1 to 4.18.2. - [Release notes](https://github.com/moq/moq4/releases) - [Changelog](https://github.com/moq/moq4/blob/main/CHANGELOG.md) - [Commits](https://github.com/moq/moq4/compare/v4.18.1...v4.18.2) --- updated-dependencies: - dependency-name: Moq dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com>