Repository navigation
Add FFMpegCore.Extensions.SkiaSharp - #396
Conversation
Changes can be made in a single place if neeeded
Required for successful test execution on my rather slow machine
They are now also supported on Linux because we are using SkiaSharp instead of System.Drawing.Common
Required for execution on Linux, otherwise we get the following error: Unable to load shared library 'libSkiaSharp' or one of its dependencies See mono/SkiaSharp#1341 for more information
…rawing" This reverts commit c96fdc4.
This reverts commit fb19f45.
The two constructors were causing issues with ambiguous method calls but are a good idea, so this is more of a workaround. Error message: The call is ambiguous between the following methods or properties: 'FFMpegCore.Pipes.RawVideoPipeSource.RawVideoPipeSource(System.Collections.Generic.IEnumerator<FFMpegCore.Pipes.IVideoFrame>)' and 'FFMpegCore.Pipes.RawVideoPipeSource.RawVideoPipeSource(System.Collections.Generic.IEnumerable<FFMpegCore.Pipes.IVideoFrame>)'
|
Hey Dimitri, looks very interesting :) |
|
I cannot push changes to your PR btw, although I could resolve the conflicts |
Codecov ReportBase: 74.85% // Head: 74.18% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #396 +/- ##
==========================================
- Coverage 74.85% 74.18% -0.67%
==========================================
Files 106 109 +3
Lines 2708 2774 +66
==========================================
+ Hits 2027 2058 +31
- Misses 681 716 +35
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
Execution time is now approximately one fifth of what it was previously
Existing (untouched) tests are not stable in CI test execution
|
I have verified the visual output with some of my actual uses cases, in addition to the unit tests, and everything seems to work fine. The Codecov checks fail but the code coverage seems fine to me and is on par with the existing code. |
|
Looks great @drasive |
> ℹ️ **Note** > > This PR body was truncated due to platform limits. This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---| | [FFMpegCore](https://github.com/rosenbjerg/FFMpegCore) | `5.4.0` → `5.5.0` |  |  | | [LaunchDarkly.ServerSdk](https://github.com/launchdarkly/dotnet-core) | `8.16.2` → `8.17.1` |  |  | | [Moq](https://github.com/moq/moq) | `4.20.72` → `4.21.0` |  |  | | [OpenAI](https://github.com/openai/openai-dotnet/tree/OpenAI_2.14.0) ([source](https://github.com/openai/openai-dotnet)) | `2.13.0` → `2.14.0` |  |  | --- ### Release Notes <details> <summary>rosenbjerg/FFMpegCore (FFMpegCore)</summary> ### [`v5.5.0`](https://github.com/rosenbjerg/FFMpegCore/releases/tag/v5.5.0): FFMpegCore 5.5.0 #### What's Changed - \[Bugfix] Handle joining of non png images by [@​rosenbjerg](https://github.com/rosenbjerg) in [#​397](rosenbjerg/FFMpegCore#397) - Add PackageOutputPath by [@​rosenbjerg](https://github.com/rosenbjerg) in [#​398](rosenbjerg/FFMpegCore#398) - Only upload to codecov on windows by [@​rosenbjerg](https://github.com/rosenbjerg) in [#​406](rosenbjerg/FFMpegCore#406) - Sub video function by [@​slugger7](https://github.com/slugger7) in [#​403](rosenbjerg/FFMpegCore#403) - Add FFMpegCore.Extensions.SkiaSharp by [@​drasive](https://github.com/drasive) in [#​396](rosenbjerg/FFMpegCore#396) - Bump nuget version and cleanup by [@​rosenbjerg](https://github.com/rosenbjerg) in [#​407](rosenbjerg/FFMpegCore#407) - Add a helper method to generate GIF Snapshots by [@​rpaschoal](https://github.com/rpaschoal) in [#​419](rosenbjerg/FFMpegCore#419) - fix: readme minor mistakes. by [@​NaBian](https://github.com/NaBian) in [#​433](rosenbjerg/FFMpegCore#433) - Update SaveM3U8Stream method to use "-codec copy" argument by [@​rpaschoal](https://github.com/rpaschoal)...
Adds a new project and corresponding NuGet package FFMpegCore.Extensions.SkiaSharp. It is based on FFMpegCore.Extensions.SystemDrawingCommon but uses SkiaSharp instead of SystemDrawingCommon, the former being supported on Windows when using .NET 7. See also #381.
FFMpegCore.Test was adjusted so that the tests contibue to be executed for Extensions.SystemDrawingCommon as-is but are also executed for the new Extensions.SkiaSharp implementation.
I have little familiarity with SkiaSharp and cannot vouch for the correctness of the implementation. If it does not pass the bar for being merged, it may still be useful to some or as a starting point.
Areas that could be improved:
I may publish this version of FFMpegCore.Extensions.SkiaSharp to NuGet under the package name "**DimitriVranken.**FFMpegCore.Extensions.SkiaSharp" as not to cause a conflict with a potential later "official" release called "FFMpegCore.Extensions.SkiaSharp".