aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Controller/MediaEncoding/EncodingHelper.cs
AgeCommit message (Collapse)Author
2024-04-30Use more accurate rounding in GetFixedOutputSize (#11435)gnattu
* Use more accurate rounding in GetFixedOutputSize Signed-off-by: gnattu <gnattuoc@me.com> * Force trickplay thumbnails to have even width Signed-off-by: gnattu <gnattuoc@me.com> * Use Convert.ToInt32 Signed-off-by: gnattu <gnattuoc@me.com> * Force video size as thumbnail size if the trickplay width setting is larger This will fix an issue when the trickplay setting contains a very huge width, but the video has a lower resolution than that setting. Our scaling filter logic will not do any upscale, and we have to force to use the video width Signed-off-by: gnattu <gnattuoc@me.com> --------- Signed-off-by: gnattu <gnattuoc@me.com>
2024-04-22Only apply custom downmix to 5.1 audios (#11401)gnattu
2024-04-12Enable more warnings as errors (#11288)Bond-009
2024-04-08Fix apple audio codecs (#11315)gnattu
2024-03-30fix: don't do empty hwupload for VT (#11235)gnattu
2024-03-30fix: unset qmin and qmax for vt (#11246)gnattu
Co-authored-by: Nyanmisaka <nst799610810@gmail.com>
2024-03-28Fix the broken codecs shifting (#11243)Nyanmisaka
2024-03-28fix: forward port patch for GHSA-866x-wj5j-2vf4 (#11228)gnattu
2024-03-26fix: remove legacy codecs (#11217)gnattu
2024-03-24fix: use Metal tonemap instead of OpenCL (#11198)gnattu
2024-03-24fix: map encoder preset to quality setting for VideoToolbox (#11205)gnattu
2024-03-23Add new VideoRangeTypes to fully support DoVi on webOS (#10469)vedant
2024-03-17Bump the required minimum ffmpeg version to 4.4nyanmisaka
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-03-16Set input readrate for using SegmentDeletion with stream-copynyanmisaka
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-03-09Merge pull request #11014 from gnattu/vf-videotoolboxCody Robibero
2024-03-09fix: convert all non-yuv420 inputs to nv12gnattu
Signed-off-by: gnattu <gnattuoc@me.com>
2024-03-09fix: force a pixel format for 10-bit inputsgnattu
Signed-off-by: gnattu <gnattuoc@me.com>
2024-03-09fix: no need to check filters prematurelygnattu
Signed-off-by: gnattu <gnattuoc@me.com>
2024-03-08fix: also check if we are doing scalinggnattu
Signed-off-by: gnattu <gnattuoc@me.com>
2024-03-08fix: code clean upgnattu
Co-authored-by: nyanmisaka <nst799610810@gmail.com> Signed-off-by: gnattu <gnattuoc@me.com>
2024-02-29fix: stack overflowgnattu
Signed-off-by: gnattu <gnattuoc@me.com>
2024-02-29fix: code stylegnattu
Signed-off-by: gnattu <gnattuoc@me.com>
2024-02-28feat: fully support videotoolbox hardware filtersgnattu
Signed-off-by: gnattu <gnattuoc@me.com>
2024-02-20Fix the preproc filters for dvbsub burn-in (#11034)Nyanmisaka
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-02-16fix: use hardware videotoolbox filter even only scale is availablegnattu
Signed-off-by: gnattu <gnattuoc@me.com>
2024-02-16fix: use hardware filter option name explicitlygnattu
Signed-off-by: gnattu <gnattuoc@me.com>
2024-02-16fix: correctly set the supported formats of videotoolbox tone mappinggnattu
Signed-off-by: gnattu <gnattuoc@me.com>
2024-02-16fix: typognattu
Signed-off-by: gnattu <gnattuoc@me.com>
2024-02-16feat: separate videotoolbox tone mapping optiongnattu
Signed-off-by: gnattu <gnattuoc@me.com>
2024-02-15fix: code stylegnattu
Signed-off-by: gnattu <gnattuoc@me.com>
2024-02-15feat: add tone mapping for videotoolboxgnattu
Signed-off-by: gnattu <gnattuoc@me.com>
2024-02-15feat: add hw scale filter for videotoolboxgnattu
Signed-off-by: gnattu <gnattuoc@me.com>
2024-02-10Fix file extension based on containerShadowghost
2024-02-01Add full HWA transcoding pipeline for RKMPPnyanmisaka
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-01-28Use video framerate for ASS subtitle HW burn-innyanmisaka
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-01-28Fix the display aspect ratio of PGSSUB subtitle burn-innyanmisaka
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2024-01-04Use -noauto{scale,rotate} for disabling auto filters (#10810)Nyanmisaka
`-auto{scale,rotate} 0` has been dropped in upstream FFmpeg. Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2023-12-13Use `eof_action=pass` when overlaying subtitlesjkhsjdhjs
The previous behavior using `eof_action=endall` and `shortest=1` would end the video stream if one of the input stream (video, subtitle) ends. In some cases the duration of the overlayed subtitles is shorter than the video stream, causing the output to end when the subtitles end and dropping the remaining video stream. This commit changes this behavior so `eof_action=pass` is used instead, which continues passing the video stream through even if the subtitles end earlier [1]. `shortest=1` is also removed, as this option implies `eof_action=endall`. If the subtitle stream has a higher duration than the video stream, the output will also end with the video stream without `shortest=1`, as the video stream is the primary input to the `overlay` filter. Fix #10698 [1] https://ffmpeg.org/ffmpeg-filters.html#Options-for-filters-with-several-inputs-_0028framesync_0029
2023-11-14Fix warningsBond_009
2023-10-22Fix mismatch between intel VAAPI UMD/KMD in rare casesnyanmisaka
Signed-off-by: nyanmisaka <nst799610810@gmail.com>
2023-10-18Merge branch 'master' into trickplayNick
2023-10-12Merge branch 'master' into fix-resharper-warningsStepan Goremykin
# Conflicts: # Emby.Server.Implementations/Net/SocketFactory.cs # RSSDP/SsdpCommunicationsServer.cs # RSSDP/SsdpDeviceLocator.cs # RSSDP/SsdpDevicePublisher.cs
2023-10-08Merge pull request #10348 from Bond-009/stringsBond-009
2023-10-08Join declaration and assignmentStepan Goremykin
2023-10-08Reduce string literal length by using verbatim stringStepan Goremykin
2023-10-07Merge pull request #10321 from feilongfl/masterBond-009
2023-10-06Merge pull request #10135 from 0x25CBFC4F/fix/ffmpeg-probesizeClaus Vium
Fixed probesize argument passing to FFmpeg
2023-10-06simplify the ifClaus Vium
2023-10-06Reduce string allocationsBond_009
Some simple changes to reduce the number of allocated strings
2023-10-06change Substring to AsSpanfei long
Co-authored-by: Bond-009 <bond.009@outlook.com>