arthenica / ffmpeg-kit

FFmpeg Kit for applications. Supports Android, Flutter, iOS, Linux, macOS, React Native and tvOS. Supersedes MobileFFmpeg, flutter_ffmpeg and react-native-ffmpeg.
https://arthenica.github.io/ffmpeg-kit
GNU Lesser General Public License v3.0
4.48k stars 596 forks source link

FFmpeg is not canceling using FFMpeg.cancel and with FFmpeg.cancel(exeID); it working behind the scene #1024

Open qasimali09 opened 2 months ago

qasimali09 commented 2 months ago

Description Closing the session using FFmpegKit.cancel(sessionId) does not close the session.

Expected behavior Session should be closed.

Current behavior Working well in iOS simulator but not in real iOS device

To Reproduce Create a session with the command -i input.mp4 -c:a copy -c:v h264_videotoolbox -vf scale=width:height -b:v bitrate output.mp4 Cancel it using FFmpegKit.cancel(sessionId) or FFmpegKit.cancel()

Environment

gregoireLem commented 2 months ago

Same, I used this hack to globally kill all ffmpeg process : FFmpegKit.execute("-t 0")