Sdcb.FFmpeg
Sdcb.FFmpeg copied to clipboard
FFmpeg basic .NET API generated by CppSharp
求教怎么初始化?
VS2022已安装 Sdcb.FFmpeg 6.1.0.1、Sdcb.FFmpeg.runtime.windows-x64 6.1.1. FormatContext inFc = FormatContext.OpenInputUrl("rtsp://admin:@192.168.58.89:554/channel=1_stream=0"); inFc.LoadStreamInfo(); MediaStream inVideoStream = inFc.GetVideoStream(); 运行时报错System.DllNotFoundException:“无法加载 DLL“avformat-60”: 找不到指定的模块。 (异常来自 HRESULT:0x8007007E)。” 使用大佬库时要先初始化吗?查了下DEBUG\DLL\X64\下有avformat-60
错误代码如下: Sdcb.FFmpeg.Common.FFmpegException: [FFmpeg error -1094995529]: Invalid data found when processing input Sdcb.FFmpeg.Common.FFmpegException [FFmpeg error -1094995529]: Invalid data found when processing input 在 Sdcb.FFmpeg.Formats.FormatContext.OpenInputIO(IOContext inputIO, Nullable`1 format, MediaDictionary options) 位置 G:\Sdcb.FFmpeg\src\Sdcb.FFmpeg\Formats\FormatContext.cs:行号...
using CodecContext cc = new(Codec.CommonEncoders.Libx264RGB) { Width = rcp.Width, Height = rcp.Height, PixelFormat = rcp.PixelFormat, TimeBase = new AVRational(1, 20), }; 运行Example 4: Streaming screen and transfer via network 服务端...
我想用代码 执行 如下推流命令, 代码需要怎么写? .\ffmpeg -i "rtsp://admin:@192.168.58.89:554/channel=1_stream=0" -pix_fmt yuv420p -vcodec libx264 -an -f flv "rtmp://192.168.99.100:1935/live/stream0" 看完例子还是不太会写, 是一定要从inputContext每帧读取再写到outputContext吗? FFmpegLogger.LogWriter = (level, msg) => Debug.WriteLine(msg); using FormatContext inFc = FormatContext.OpenInputUrl("rtsp://admin:@192.168.58.89:554/channel=1_stream=0"); inFc.LoadStreamInfo(); MediaStream...
如题 到处都找不到
纯音频例子
能给一个纯音频的转码例子吗? 尝试了一下,总是报错,没有发现网上有类似音频的例子,代码里给的几个例子都有视频流在里面。 感谢周老板
[FFmpeg error -2]: No such file or directory 用下面的代码列出USB摄像头,报错 var dict = new MediaDictionary(); dict.Set("list_devices", "true", 0); using FormatContext inFc = FormatContext.OpenInputUrl("video=dummy", InputFormat.FindByShortName("dshow"), dict); inFc.LoadStreamInfo();
Should just probably add after this line https://github.com/sdcb/Sdcb.FFmpeg/blob/release/7.0/src/Sdcb.FFmpeg.AutoGen/Processors/StructureProcessor.cs#L198 ```csharp ByReference = !arrayType.QualifiedType.Qualifiers.IsConst ``` Has been noticed with av_image_fill_pointers for example
请问如何把图片连续帧转成视频推流出去,完全不知道要怎么弄
硬解有支持吗?
基于DXVA2的