How to stop ffmpeg video recording in c#?

后端 未结 1 888
囚心锁ツ
囚心锁ツ 2020-12-22 09:41

I am using FFmpeg in application and it start and record video perfectly but when I want to stop it ask for press \"q\", I got a System.EntryPointNotFoundException Error me

相关标签:
1条回答
  • 2020-12-22 10:20

    If you created the process initially, you can keep a handle to its stdin and send it "q" (possibly need to also send it a "\n" after).

    If you didn't, then you could some third party .exe (or an internal equivalent) to send it a ctrl+c/ctrl+break to its process ID.

    FFmpeg doesn't have a window handle since it's a console app, so you can't send it keystrokes with PostMessage et al. only through console signals (i.e. ctrl+c/break)

    0 讨论(0)
提交回复
热议问题