GNOME Bugzilla – Bug 578671
catch encoder exceptions and show them in the GUI
Last modified: 2012-11-17 16:55:54 UTC
Whenever something prevents the rendering from taking place, the user should be informed. For example, trying to render something in 720x555 in H.264 will print this in the terminal: x264 [error]: width or height not divisible by 2 (720x555) However, the user will not know unless he is running pitivi from the terminal and actively looking for errors. I currently get a dialog saying something this, at most: gstx264enc.c(642): gst_x264_enc_init_encoder (): /GstPipeline:pipeline0/GstBin:bin3/GstBin:bin4/GstBin:bin5/GstX264Enc:x264enc0
It all depends on whether the error is handled properly in the various plugins. If it's the case, then eventually a GST_MESSAGE_ERROR will be posted and we'll be informed about that. Could you attach a log (GST_DEBUG=3) of that issue so we can figure out who's wrong and to which gstreamer module we should forward this.
Created attachment 133078 [details] debug log
I actually get an error in the GUI, but it is completely impossible to understand to mortals: "gstx264enc.c(642): gst_x264_enc_init_encoder (): /GstPipeline:pipeline0/GstBin:bin3/GstBin:bin4/GstBin:bin5/GstX264Enc:x264enc0" ...Comparatively to the error printed to the terminal ("x264 [error]: width or height not divisible by 2 (720x555)")
I think this requires a bit more thought. Totem and rhythmbox don't show messages coming from gstreamer at all. They handle specific errors and show custom messages. I think we should do the same, possibly adding a separate "debug console" window like the javascript error window in web browsers. We could use that console to collect gst/pitivi log statements as well.
*** This bug has been marked as a duplicate of bug 657392 ***