aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Model/Entities/MediaStream.cs
AgeCommit message (Collapse)Author
2025-07-30Further refinement of BCP 47 language labeling supportdyphire
2025-04-07Translate the ISO-639-2/B codes to ISO-639-2/T. (#13068)baka0815
* Translate the ISO-639-2/B codes to ISO-639-2/T. This enables 19 additional languages to be displayed correctly. * Convert the 2-dimensional array to a dictionary * Added the French language to the list of ISO-639-2/B codes * Don't change the property, use a local variable instead. * When creating the MediaStream in the MediaStreamRepository ensure that the ISO 639-2/T (f.e. deu) code is used for the language as that is the one the .NET culture info knows. The other code is most likely the ISO 639-2/B code (f.e. ger) which is unknown to the .NET culture info and will result in just displaying the code instead of the display name. * Move the substitution of ISO 639-2/B to /T to the localization manager. Some language (like Chinese) have multiple entries in the iso6392.txt file (f.e. zho|chi|zh|..., zho|chi|zh-tw|...) but the conversation between /T and /B is the same so use .TryAdd. * Change the method definition from GetISO6392TFromB to TryGetISO6392TFromB and return true if a case was found. * Add unit tests for TryGetISO6392TFromB.
2025-04-02Improve dynamic HDR metadata handling (#13277)gnattu
* Add support for bitstream filter to remove dynamic hdr metadata * Add support for ffprobe's only_first_vframe for HDR10+ detection * Add BitStreamFilterOptionType for metadata removal check * Map HDR10+ metadata to VideoRangeType.cs Current implementation uses a hack that abuses the EL flag to avoid database schema changes. Should add proper field once EFCore migration is merged. * Add more Dolby Vision Range types Out of spec ones are problematic and should be marked as a dedicated invalid type and handled by the server to not crash the player. Profile 7 videos should not be treated as normal HDR10 videos at all and should remove the metadata before serving. * Remove dynamic hdr metadata when necessary * Allow direct playback of HDR10+ videos on HDR10 clients * Only use dovi codec tag when dovi metadata is not removed * Handle DV Profile 7 Videos better * Fix HDR10+ with new bitmask * Indicate the presence of HDR10+ in HLS SUPPLEMENTAL-CODECS * Fix Dovi 8.4 not labeled as HLG in HLS * Fallback to dovi_rpu bsf for av1 when possible * Fix dovi_rpu cli for av1 * Use correct EFCore db column for HDR10+ * Undo outdated migration * Add proper hdr10+ migration * Remove outdated migration * Rebase to new db code * Add migrations for Hdr10PlusPresentFlag * Directly use bsf enum * Add xmldocs for SupportsBitStreamFilterWithOption * Make `VideoRangeType.Unknown` explicitly default on api models. * Unset default for non-api model class * Use tuples for bsf dictionary for now
2025-03-31Explicitly set default value for enums used in API models (#13821)gnattu
Enums in response model with no nullability or default value will make the API very fragile as each extension to the enum will break the API for some clients, but a lot of enums actually do have an unknown value which should be used as a default. This set all model properties that are non-nullable using an enum that has an Unknown member in 10.10, except MediaStream.VideoRangeType which is refactored in #13277
2025-02-17Revert nullability of MediaStream.IsHearingImpaired (#13573)Cody Robibero
2025-01-26Fix typosluzpaz
Found via `codespell -q 3 -D ../../dictionary.txt -S "./Emby.Server.Implementations/Localization" -L allready,childrens,groupe,inh,raisons,re-use,som,supercede,superceded,thirdparty,whoknows`
2024-11-12Fixed invalid columns on MediaStreamsJPVenson
2024-09-07Add support DoVi Profile 10 (#11559)llutic
2024-09-07Add MediaStream.ReferenceFrameRate for problematic video files (#12603)gnattu
Co-authored-by: Nyanmisaka <nst799610810@gmail.com>
2024-08-28Apply suggestions from code reviewnyanmisaka
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-08-05Merge branch 'master' into fix-hwa-video-rotationNyanmisaka
2024-07-29Display DOVI title in DisplayTitle when availablegnattu
Signed-off-by: gnattu <gnattuoc@me.com>
2024-07-23Merge branch 'master' into fix-hwa-video-rotationNyanmisaka
2024-07-16Don't include new internal MediaStream properties in api spec (#12288)Cody Robibero
2024-07-15Allow streaming of raw PGS subtitles without transcoding (#12056)David Schulte
2024-06-23Backport pull request #12149 from jellyfin/release-10.9.znyanmisaka
Fix MicroDVD being recognized as DVDSUB subtitles Original-merge: 6010bc01c321ea85935314191f5f8c19fd4b3bfb Merged-by: crobibero <cody@robibe.ro> Backported-by: Joshua M. Boniface <joshua@boniface.me>
2024-05-21Prefer profile over codec for display titleBond_009
FFmpeg 6.1 and newer can recognize Dolby Atmos and DTS:X. This change makes it possible to see if a track has one of these technologies if the used FFmpeg supports it.
2024-04-10Add support for out-of-spec but existent, Dolby Vision Profile 8 CCid 6 ↵GeorgeH005
media. (#11334)
2024-03-30Add json parser for video rotation side datanyanmisaka
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-03-23Add new VideoRangeTypes to fully support DoVi on webOS (#10469)vedant
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-06-28Migrate VideoRange and VideoRangeType to EnumShadowghost
2022-12-30Add support for .sup subtitle (#8808)Cody Robibero
Fixes https://github.com/jellyfin/jellyfin/issues/8628
2022-10-07Add hearing impaired subtitle stream indicator (#7379)Joe Rogers
Co-authored-by: Claus Vium <cvium@users.noreply.github.com>
2022-08-15Fix various typos luz paz
Found via `codespell -q 3 -S ./Emby.Server.Implementations/Localization -L allready,doesnt,inh,receivedfrom,whoknows`
2022-08-13Backport pull request #8212 from jellyfin/release-10.8.zSenorSmartyPants
Add resolution text for 384 sized video Original-merge: 7ffdde9a0b88f543a84fa8a3fa7487cbe8dda8b4 Merged-by: Cody Robibero <cody@robibe.ro> Backported-by: Joshua Boniface <joshua@boniface.me>
2022-07-20Backport pull request #8104 from jellyfin/release-10.8.zJoshua Boniface
Add resolution text output for more resolutions Authored-by: Shadowghost <Ghost_of_Stone@web.de> Merged-by: Bond-009 <bond.009@outlook.com> Original-merge: 2b46917dcf7af970dc95d4ef0bbfebac7a520d25
2022-06-29Merge pull request #7964 from jellyfin/dovi-side-dataJoshua M. Boniface
(cherry picked from commit 39d185c7b19ed2da1ae46566152fb1cf182266cd) Signed-off-by: Joshua Boniface <joshua@boniface.me>
2022-06-29Merge pull request #7947 from nyanmisaka/video-range-conditionCody Robibero
(cherry picked from commit f1d56aa5cef4c60021e0b29c5d9fb3adf384fda7) Signed-off-by: Joshua Boniface <joshua@boniface.me>
2022-06-10Merge pull request #7828 from nyanmisaka/fix-dovi-tonemapBond-009
Fix Dolby Vision profile 5 and 8 to SDR HW tone-mapping (cherry picked from commit 8595a979a872c05d0d06f9b87ed1b56c693c267d) Signed-off-by: crobibero <cody@robibe.ro>
2022-03-10Add label for external audio/sub tracksJoe Rogers
2022-03-06Let the UI show which DTS profile is in usePatrick Farwick
There are different profiles for DTS. For example, both DTS and DTS-HD MA use the same codec, but provide a different profile. Some files may provide both a DTS and DTS-HD MA audio track. With this change, the UI shows which track is using which profile to allow the user to choose between them.
2022-03-04Use extension method for list searchGermanCoding
2022-03-04Hide ISO 639-2 special codes in display titlesGermanCoding
They are still shown in associated metadata, just hidden from the more visible display titles.
2021-09-03Merge remote-tracking branch 'upstream/master' into warn-259810Cody Robibero
2021-09-01Add subtitle format(codec) to stream display title (#5853)Mike
Co-authored-by: Michał Kurek <michal.kurek@mail.com>
2021-08-28Remove more and more warningsCody Robibero
2021-07-20Add tests for GetResolutionTextBond_009
2021-07-04Remove usage of this in GetResolutionTextMrTimscampi
2021-07-03Refactor GetResolutionTextMrTimscampi
This improves GetResolutionText a little by making it easier to read and better parsing resolutions (Also adding a few new ones like PAL resolutions and 8K) Co-authored-by: Maxr1998 <max.rumpf1998@gmail.com>
2021-05-18Properly detect Dolby Vision files derived from AV1, AVC and HEVCMrTimscampi
2021-05-05MediaStream: Replace string.IndexOf with string.Contains where possibleBond_009
2021-02-20Enable TreatWarningsAsErrors for MediaBrowser.ModelBond_009
2021-02-13Minor improvementsBond_009
2020-11-16add video range info to titlenyanmisaka
2020-09-28Fix SA1513, SA1514, SA1507, and SA1508Matt Montgomery
2020-09-04Merge branch 'master' into tonemapNyanmisaka
2020-08-03Minor improvementsBond_009
OFC I reduced some allocations
2020-07-25add Tonemapping relaying on nvdec and oclnyanmisaka
2020-07-23Fixed compilation error.Patrick Barron