B4J Question Jshell ffmpeg wait for process completed not firing

xavier66

New Member
B4X:
    sh.InitializeDoNotHandleQuotes("ffmpeg", File.Combine("c:\ffmpeg\bin","ffmpeg.exe"),params)
        sh.WorkingDirectory = "c:\ffmpeg\bin"
sh.Run(-1)
wait for sh_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)

params is a list of parameters.

Nor with sh.initialize.

How to detect that ffmpeg has finished video processing?

Thanks
 

DonManfred

Expert
Licensed User
Longtime User
sh.InitializeDoNotHandleQuotes("ffmpeg", File.Combine("c:\ffmpeg\bin","ffmpeg.exe"),params)
You did set the event-prefix to ffmpeg but you are using sh????
B4X:
wait for ffmpeg_ProcessCompleted (Success As Boolean, ExitCode As Int, StdOut As String, StdErr As String)
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…