It's easy to get the file on the command line using a redirection:
Code: Select all
ffprobe... > output.txt
The application is under Windows.
Any suggestion?
Have a good day,
Pascal
Code: Select all
ffprobe... > output.txt
Really? What about wxProcess::Redirect(), wxProcess::GetInputStream(), wxProcess::GetOutputStream() etc?But the thing is that wxExecute doesn't handle redirection
Hi PB,
Hi Doublemax,doublemax wrote: ↑Mon Apr 12, 2021 4:34 pmReally? What about wxProcess::Redirect(), wxProcess::GetInputStream(), wxProcess::GetOutputStream() etc?But the thing is that wxExecute doesn't handle redirection
You need to subclass wxProcess, create an instance of it and pass it to wxExecute. Check the "exec" sample, look for occurrences of "MyPipedProcess".
This is funny because when I call from the command line (Win 10, cmd.exe)
Code: Select all
ffprobe 3d_ocean_1590675653.mov > output.txt
Code: Select all
ffprobe version 4.4-full_build-www.gyan.dev
Code: Select all
ffprobe 3d_ocean_1590675653.mov 2> output.txt
Code: Select all
ffprobe -show_frames 3d_ocean_1590675653.mov 1> frames.txt 2> info.txt
Code: Select all
cmd /c ffprobe -show_frames 3d_ocean_1590675653.mov 1> frames.txt 2> info.txt