Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/asp.net/34.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
使用FFMpegConverter的C#视频拼接_C#_Asp.net_Video_Ffmpeg_Concatenation - Fatal编程技术网

使用FFMpegConverter的C#视频拼接

使用FFMpegConverter的C#视频拼接,c#,asp.net,video,ffmpeg,concatenation,C#,Asp.net,Video,Ffmpeg,Concatenation,我需要在我的ASP.NET Web API中实现视频连接。我可以使用“FFMpegConverter”Nuget包成功地连接从互联网下载的一些示例视频。但是,当我尝试连接从手机捕获的文件并尝试打开它时,我得到了以下错误。 下面是我正在使用的代码片段: var ffMpeg = new NReco.VideoConverter.FFMpegConverter(); ffMpeg.ConcatMedia(_fileNames, videoRootPath.mp4,

我需要在我的ASP.NET Web API中实现视频连接。我可以使用“FFMpegConverter”Nuget包成功地连接从互联网下载的一些示例视频。但是,当我尝试连接从手机捕获的文件并尝试打开它时,我得到了以下错误。

下面是我正在使用的代码片段:

var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
ffMpeg.ConcatMedia(_fileNames, videoRootPath.mp4, 
                   NReco.VideoConverter.Format.mp4, set);
这是两个mp4文件的属性屏幕截图


提前感谢

通过对代码进行以下更改,我获得了正确的输出

  var ffMpeg = new NReco.VideoConverter.FFMpegConverter();
                NReco.VideoConverter.ConcatSettings set = new NReco.VideoConverter.ConcatSettings();
                ffMpeg.ConcatMedia(_fileNames, videoRootPath + tobename + ".mp4", NReco.VideoConverter.Format.mp4, set);

必须使用默认值初始化NReco.VideoConverter.ConcatSettings。这应该是“ffMpeg.Concatmedia”方法的第四个参数。

@b_in_你能告诉我使用FFMpegConverter()上传视频的默认大小是用户上传视频的时间限制吗?