i’m playing with a vb6 gui frontend for ffmpeg and as of now all i can do is to call the ffmpeg via cmd.exe which will shows the command prompt while the whole process is still running. And i thought this was the norm seeing how WinFF, another pascal based frontend gui for ffmpeg works.
But i was blown away when i saw this other GVC gui which has a progress bar and everything.
So basically, i’m looking into a way how i could cleanly hide the whole command prompt and link the transcoding progress to a progress bar into my gui.
So here’s my plan, I’m thinking of finding a win32 api function which i can call the cmd line and yet hide it, and from another discussion here, i think i would have to read the log file to get the ffmpeg progress information.
So which function should i call for the win32 api?
And does anyone knows of a better/easier way to get this done?
thanks
Updates:
In case anybody is interested, i find a nice class module on how to grab the cmd output into my vb6 app, and it’s by none other than the great joacim 🙂
I have written this exact same thing for Java on OSX. Very minimalist logic:
I do not believe having ffmpeg write to a log file is going to work. On *nix at least, ffmpeg writes this output to std err, and the status lines that you need to capture do not have a line feed, and so overwrite the previous status line. This is something you can overcome within your own code.
Sorry, can’t help with the VB6 part, but would assume it is straight forward to capture output from a process you shell out.