Tin2tin Posted September 14, 2012 Share Posted September 14, 2012 How do I send the letter q to ffmpeg running in the cmd in order to stop it? DVD slideshow GUI Link to comment Share on other sites More sharing options...
iamtheky Posted September 14, 2012 Share Posted September 14, 2012 run("cmd /k ffmpeg ...) sleep (2000) send ("q") ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Tin2tin Posted September 14, 2012 Author Share Posted September 14, 2012 I couldn't get it to work that way, however this works: ProcessClose("ffmpeg.exe") DVD slideshow GUI Link to comment Share on other sites More sharing options...
iamtheky Posted September 14, 2012 Share Posted September 14, 2012 Those are two different behaviors, from my 2 minutes of testing with a script that combines video of one file and audio of another: processclose results in an unusable file. sending q results in a half-generated file that still contains the frames that got processed. ,-. .--. ________ .-. .-. ,---. ,-. .-. .-. .-. |(| / /\ \ |\ /| |__ __||| | | || .-' | |/ / \ \_/ )/ (_) / /__\ \ |(\ / | )| | | `-' | | `-. | | / __ \ (_) | | | __ | (_)\/ | (_) | | .-. | | .-' | | \ |__| ) ( | | | | |)| | \ / | | | | | |)| | `--. | |) \ | | `-' |_| (_) | |\/| | `-' /( (_)/( __.' |((_)-' /(_| '-' '-' (__) (__) (_) (__) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now