0

虽然在上传问题时压缩视频转码器中的视频看起来像 com.otaliastudios.transcoder.source.FilePathDataSource.ensureDescriptorSource Java.Lang.RuntimeException:(没有这样的文件或目录)但问题仍然没有重新创建我的手机。如何解决这个问题

 string path = System.IO.Path.GetDirectoryName(outputpath);
            AVAssetExportSession export = new AVAssetExportSession(sourceVideoPath);
            string outputFilePath = Path.Combine(path, $"{DateTime.Now.ToString(DateString.strDMYHMS, AppState.CultureInfo)}.mp4");
            export.OutputPath = outputFilePath;

            await export.ExportTaskAsync();

            MemoryStream output = new MemoryStream();
            using (Stream source = File.OpenRead(outputFilePath))
                await source.CopyToAsync(output);

            output.Seek(0, SeekOrigin.Begin);
            return outputFilePath;
4

0 回答 0