[Mono-osx] OutputDataReceived event not raised when using the Process class together with Ffmpeg?

johot johan.otterud at gmail.com
Sun Jun 10 22:05:29 UTC 2012


Woho! Finally it works! 

Thank you so much for your help Michael!

Your URL was broken (for me atleast) but based on your reply I found a
similar solution here:
http://www.codeproject.com/Articles/170017/Solving-Problems-of-Monitoring-Standard-Output-and

I integrated this in my project and finally I could get the output! I also
found the cause of the problem, like I suspected earlier ffmpeg would output
data during the encoding phase with a "\r" return character instead of "\n".
Before the encoding phase however it uses "\n".

Based on this it seems that the mono implementation of the
OutputDataReceived event detection only looks for "\n" characters. In
Windows however, using the regular .NET framework, both type of newline
characters are valid. Maybe this should be posted as a bug and added so that
both characters works for finding new lines and raising the event?

Once again, thank you for all the help guys!



--
View this message in context: http://mono.1490590.n4.nabble.com/OutputDataReceived-event-not-raised-when-using-the-Process-class-together-with-Ffmpeg-tp4649705p4649858.html
Sent from the Mono - OSX mailing list archive at Nabble.com.


More information about the Mono-osx mailing list