[Mono-osx] OutputDataReceived event not raised when using the Process class together with Ffmpeg?
Michael Hutchinson
m.j.hutchinson at gmail.com
Wed Jun 13 17:00:41 UTC 2012
Yes, please file a Mono bug.
On Jun 11, 2012 11:49 AM, "johot" <johan.otterud at gmail.com> wrote:
> 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.
> _______________________________________________
> Mono-osx mailing list
> Mono-osx at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-osx
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ximian.com/pipermail/mono-osx/attachments/20120613/88ca5bf6/attachment.html>
More information about the Mono-osx
mailing list