tomaszzmuda / Xabe.FFmpeg

.NET Standard wrapper for FFmpeg. It allows to process media without know how FFmpeg works, and can be used to pass customized arguments to FFmpeg from dotnet core application.

Home Page:https://xabe.net/product/xabe_ffmpeg/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

FFmpegWrapper.RunProcess() always produces incorrect output file if cancellationToken.Cancel() called

ytkachov opened this issue · comments

I am trying to write RTSP stream to file on disk and cancelling process by user request.

It looks like internal logic of RunProcess is incorrect when process gets cancelled. There is no chance for it to get "q" command from standard input and correctly close resulting file. Process is always killed.