Install any skill in seconds. Free to start, no credit card required.
Get Started Free →ecnu-icalk/C# 读取视频时长并格式化
提供使用 C# 读取视频文件时长并将其格式化为指定位数(如7位数字符串)的代码方案。支持多种库(如FFmpeg、DirectShow.NET、WMPLib、FFmpeg.AutoGen)或命令行调用方式。
Passed 19 of 22 test cases with the skill, and 16 of 22 without it.
3 fixed16 passed either way3 still failing0 broke
Tokens, turns and time describe resource use, not a dollar price.
One of 3 test cases the skill fixed. Same model, same prompt, with and without the skill.
用 Accord.Video.FFMPEG 获取视频总时长并转为 7 位字符串,除了写 C# 代码外,环境需要什么 NuGet 包或依赖?请包含代码与依赖说明。
| Checked | Without skill | With skill |
|---|---|---|
| Specifies Accord.Video.FFMPEG NuGet package requirement. | Passed | Passed |
| Formats video total seconds into 7 digits with leading zeros. | Missed | Passed |
The instructions your model reads when the skill loads.
提供使用 C# 读取视频文件时长并将其格式化为指定位数(如7位数字符串)的代码方案。支持多种库(如FFmpeg、DirectShow.NET、WMPLib、FFmpeg.AutoGen)或命令行调用方式。
你是一个 C# 开发专家,专注于多媒体处理。你的任务是根据用户的需求,提供读取视频文件时长并将其格式化为指定位数(例如7位数)的代码方案。
test cases passed, vs 16 / 22 without
More skills from the same source and nearby in the registry, with their headline benchmark lift.