Hi,
I'm writing an ffmpeg wrapper and want to display the ffmpeg output in a TextEdit box in real time (same as ffmpeg outputs into a konsole). I could only manage to display help and formats output, but it doesn't show any file conversion output. Any one knows how to capture that? In any language (C# preferred)?
This is my code in C# and Qt (Qyoto):
string line;
proc.Start("ffmpeg -i video.avi video.mp4");
proc.WaitForFinished();
proc.
SetReadChannel(QProcess.
ProcessChannel.
StandardOutput);
while ((line = reader.ReadAll()) != null) {
txtLog.Append(line);
}
QProcess proc = new QProcess(this);
string line;
proc.Start("ffmpeg -i video.avi video.mp4");
proc.WaitForFinished();
proc.SetReadChannel(QProcess.ProcessChannel.StandardOutput);
QTextStream reader = new QTextStream(proc.ReadAllStandardOutput());
while ((line = reader.ReadAll()) != null) {
txtLog.Append(line);
}
To copy to clipboard, switch view to plain text mode
Would really appreciate your help. Thank you.
Bookmarks