FFMpegCore icon indicating copy to clipboard operation
FFMpegCore copied to clipboard

System.IO.IOException pipe is broken

Open bidy opened this issue 3 years ago • 0 comments

I'm checking the duration of a video coming from a stream.

FFProbeHelper.VerifyFFProbeExists();
  using (var videoStream = await AzureStorageManager.DownloadAsync(model.VideoFilePath, AzureContainers.video))
  {
      var mediaInfo = await FFProbe.AnalyseAsync(videoStream);
      model.AdvertLength = mediaInfo.Duration.Seconds;
      ...
  }

When checking the duration mediaInfo.Duration.Seconds I'm getting a 'pipe is broken' exception. The video is 60 seconds long MP4. It works with other (shorter) videos.

bidy avatar Aug 27 '22 12:08 bidy