<div dir="ltr"><div class="gmail_default" style="font-family:'courier new',monospace">OK, I built version 1.0.7 of gstreamer and the base, good, bad, ugly plugtins. I replaced the system installed jpegparse (1.0.6) with the compiled one. Now it works. So it seems to be a bug in jpegparse 1.0.6 then - does gst have test cases? How is it not caught?</div>
<div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">One question, why is a jpegparse needed in this case? In the future, how should I diagnose not-negotiated error?<br>
</div><div class="gmail_default" style="font-family:'courier new',monospace"><br></div><div class="gmail_default" style="font-family:'courier new',monospace">Thanks,</div><div class="gmail_default" style="font-family:'courier new',monospace">
K.</div><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 10, 2013 at 10:30 PM, k l <span dir="ltr"><<a href="mailto:kludev@gmail.com" target="_blank">kludev@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr"><div style="font-family:'courier new',monospace">Hi Tim,</div><div style="font-family:'courier new',monospace"><br></div><div style="font-family:'courier new',monospace">
I tried your suggestion. Still no luck. Still getting the not-negotiated error. I'm using Ubuntu 13.04 with the pre-packaged gst (1.0.6). I also tried compiling and installing my own gstreamer core with the source at [<a href="http://gstreamer.freedesktop.org/modules/gstreamer.html" style="font-family:arial" target="_blank">http://gstreamer.freedesktop.org/modules/gstreamer.html</a>]. Both with the same result.</div>

<div style="font-family:'courier new',monospace"><br></div><div style="font-family:'courier new',monospace">Could you try 1.0.6 just to see if it's a bug fix between 1.0.6 - 1.0.7, or is it something wrong with my pipeline?</div>

<div style="font-family:'courier new',monospace"><br></div><div style="font-family:'courier new',monospace">Also, what's the general guideline for diagnosing not-negotiated error? Any way I can get more diagnostic info? I've tried invoking gst-launch with -v but it doesn't give much more info.</div>

<div style="font-family:'courier new',monospace"><br></div><div style="font-family:'courier new',monospace"><br></div><div style="font-family:'courier new',monospace">
Thanks!</div><div style="font-family:'courier new',monospace">K</div><div style="font-family:'courier new',monospace"><br></div><div style="font-family:'courier new',monospace">
<br></div><div><div><font face="courier new, monospace">gst-launch-1.0 -v -e filesrc location=/tmp/test.multipart ! multipartdemux ! image/jpeg,framerate=\(fraction\)5/1 ! jpegparse ! jpegdec ! videoconvert ! ximagesink</font></div>
<div class="im">
<div><font face="courier new, monospace">Setting pipeline to PAUSED ...</font></div><div><font face="courier new, monospace">Pipeline is PREROLLING ...</font></div></div><div>
<font face="courier new, monospace">/GstPipeline:pipeline0/GstCapsFilter:capsfilter1: caps = image/jpeg, framerate=(fraction)5/1</font></div><div class="im"><div><font face="courier new, monospace">ERROR: from element /GstPipeline:pipeline0/GstFileSrc:filesrc0: Internal data flow error.</font></div>

<div><font face="courier new, monospace">Additional debug info:</font></div><div><font face="courier new, monospace">gstbasesrc.c(2809): gst_base_src_loop (): /GstPipeline:pipeline0/GstFileSrc:filesrc0:</font></div>
</div><div class="im"><div><font face="courier new, monospace">streaming task paused, reason not-negotiated (-4)</font></div></div><div class="im"><div><font face="courier new, monospace">ERROR: pipeline doesn't want to preroll.</font></div>

<div><font face="courier new, monospace">Setting pipeline to NULL ...</font></div><div><font face="courier new, monospace">Freeing pipeline ...</font></div><div style="font-family:'courier new',monospace">
<br></div></div></div><div><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Fri, May 10, 2013 at 3:07 AM, Tim-Philipp Müller <span dir="ltr"><<a href="mailto:t.i.m@zen.co.uk" target="_blank">t.i.m@zen.co.uk</a>></span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Thu, 2013-05-09 at 20:43 -0700, k l wrote:<br>
<br>
Hi,<br>
<div><br>
> In the official documents for MultipartMux [1] and Multipartdemux [2],<br>
> there are two sample pipelines as below. It's fine when I run the<br>
> first pipeline to encode. But when running the sencond pipeline to<br>
> decode, it gave me the following error.<br>
><br>
</div><div>> Encoding video to to jpeg multipart:<br>
><br>
>   $ gst-launch-1.0 videotestsrc ! video/x-raw,<br>
> framerate='(fraction)'5/1 ! jpegenc ! multipartmux ! filesink<br>
> location=/tmp/test.multipart<br>
><br>
><br>
> Decoding video from jpeg multipart:<br>
><br>
><br>
>   $ gst-launch-1.0 filesrc location=/tmp/test.multipart !<br>
> multipartdemux ! jpegdec ! videoconvert ! ximagesink<br>
><br>
><br>
> Error Message for the above demux pipeline:<br>
</div><div>> streaming task paused, reason not-negotiated (-4)<br>
<br>
</div>This works for me (with git master, and 1.0.7):<br>
<div><br>
gst-launch-1.0 filesrc location=/tmp/test.multipart ! multipartdemux !<br>
</div>image/jpeg,framerate=\(fraction\)5/1 ! jpegparse ! jpegdec !<br>
videoconvert ! ximagesink<br>
<br>
I will update the docs, thanks!<br>
<br>
Cheers<br>
 -Tim<br>
<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div></div></div></div>
</blockquote></div><br></div></div>