Found 10 packages
Format Duration (format-duration) binding library for Bridge.NET projects.
Get video information for .NET (wrapper for ffprobe tool). Provides details about file media streams: format, codecs, video resolution and frame rate, duration, custom tags etc. NReco.VideoInfo nuget can be used for free in non-SaaS apps that have only one single-server production deployment. This nuget package includes ffprobe.exe (it is extracted on the first use automatically - you don't need to deploy ffprobe separately) and therefore can be used only on Windows. For cross-platform deployments NReco.VideoInfo.LT nuget should be used instead. How to use: var ffProbe = new NReco.VideoInfo.FFProbe(); var videoInfo = ffProbe.GetMediaInfo(pathToVideoFileOrUrl); Console.WriteLine(videoInfo.FormatName); Console.WriteLine(videoInfo.Duration); More info and online demo: https://www.nrecosite.com/video_info_net.aspx
Moment Duration Format (moment-duration-format) binding library for Bridge.NET projects.
It is well known that DateTime.Now is often used inappropriately. For example, it may be used together with TimeSpan to produce a task's timeout point or subtracted from another DateTime to calculate a duration. This can cause subtle bugs because DateTime is not monotonic: the system clock can change, making the result of the subtraction inaccurate -- potentially causing a premature timeout or an infinite loop. Yet, DateTime is an incredibly convenient and widely used value type in .NET code and is especially useful when printed in ISO-8601 format (with the "O" format specifier). With the "O" specifier, you can resolution down to tenths of a microsecond, which is nice. Until you learn that the resolution of the system clock is usually more coarse than several *milliseconds*, making the additional decimal places misleading garbage values. For calculating durations (time between events), it is better to use a high-resolution and monotonic clock like that provided by System.Diagnostics.Stopwatch: on most computers it is far more **accurate** than DateTime.Now even though, seemingly paradoxically, on a few systems, its *resolution* is lower than that of DateTime. Also, unsurprisingly, Stopwatch does not provide values that correlate to times of day: while it is appropriate for calculating durations, it is inappropriate for timestamping against a readable date and time. This library provides timestamps (both as DateTime and as analogous value types it defines) that use the Stopwatch (and your system's high peformance event counter) as its clock, but returns values as DateTimes or an analog thereto so that these values can be used for a mixed purpose of timestamping and providing a meaningful way to calculate time elapsed between events or to calculate how long to perform a programmatic task.
Get video information for .NET (wrapper for ffprobe tool). Provides details about file media streams: format, codecs, video resolution and frame rate, duration, custom tags etc. This LT-version nuget package does NOT include ffprobe.exe and is suitable for cross-platform deployments (Windows, Linux/Docker, Mac-OS) or using a ffprobe build/version of your choice. NReco.VideoInfo.LT nuget can be used for free in non-SaaS apps that have only one single-server production deployment. How to use: var ffProbe = new NReco.VideoInfo.FFProbe(); ffProbe.FFProbeExeName = "ffprobe.exe"; // just "ffprobe" for Linux/OS-X ffProbe.ToolPath = "<path_to_folder_with_ffprobe>"; var videoInfo = ffProbe.GetMediaInfo(pathToVideoFile); More info and online demo: https://www.nrecosite.com/video_info_net.aspx
get mp4 format file duration
- LogoutFilter The LogoutFilter class is a filter in an ASP.NET Core application that intercepts requests to the logout endpoint and invalidates the user's token. This filter is useful for implementing logout functionality by invalidating the user's token upon logout. - TokenBlackListMiddleware The TokenBlackListMiddleware class is responsible for checking if a token is blacklisted and preventing access if it is. It also provides a method to blacklist tokens for a specified duration. This middleware is useful for implementing logout functionality by blacklisting tokens upon logout.
(01) HttpApi is a convinent framework to provide data by http, It can be the upgrating replacement for WebAPI. (02) HttpApi can export class function to http interface. (03) HttpApi can export page's method to http interface. (04) HttpApi can auto create client javascript. (05) HttpApi can auto create api list page, api test page. (06) Caching: You can assign api result caching duration. And client can refresh cache by '_refresh=true' parameter. (07) Auth: IP, Method, LoginStatus, UserName, UserRole, Token, and custom logic. (08) Capsule: return standard APIResult object to client. (09) Output configuration: You can config output format, such as enum, datetime, long number, error. (10) Server site and client can assign api output data format, such as text, xml, json, file, image, base64image. (11) Support nullable and default parameter. (12) Support traffic control, see HttpApiAttribute.AuthTraffic (13) Support upload file, see HttpApiAttribute.PostFile
VelocityExcel is a high-performance, ultra fast, streaming Excel (XLSX) reader and writer for .NET with minimal memory footprint. ✓ The only Excel library that delivers ultra-high-speed read and write operations with the lowest memory consumption. ✓ Forward-only streaming read/write (no loading entire file into memory) ✓ Culture-aware parsing of dates, times, durations, numbers, and booleans ✓ Shared string deduplication with overflow protection ✓ Precise ECMA-376 format detection for date/time/duration values ✓ Safe XML parsing ✓ Zero external dependencies Ideal for processing large Excel files in ASP.NET, ASP.NET MVC, ASP.NET Core, Blazor, Web API, Windows Forms, WPF background services, or CLI tools.