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):
Qt Code:
  1. QProcess proc = new QProcess(this);
  2. string line;
  3. proc.Start("ffmpeg -i video.avi video.mp4");
  4. proc.WaitForFinished();
  5. proc.SetReadChannel(QProcess.ProcessChannel.StandardOutput);
  6. QTextStream reader = new QTextStream(proc.ReadAllStandardOutput());
  7. while ((line = reader.ReadAll()) != null) {
  8. txtLog.Append(line);
  9. }
To copy to clipboard, switch view to plain text mode 

Would really appreciate your help. Thank you.