<div dir="auto">I forgot, to capture the logs, append 2> GST.log and send me the file. Put my email in CC as the mailing list will strip the attachment.</div><br><div class="gmail_quote"><div dir="ltr">Le ven. 19 oct. 2018 22 h 03, Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr">Le ven. 19 oct. 2018 19 h 12, Tim Harvey <<a href="mailto:tharvey@gateworks.com" rel="noreferrer noreferrer" target="_blank">tharvey@gateworks.com</a>> a écrit :<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">On Fri, Oct 19, 2018 at 1:31 PM Tim Harvey <<a href="mailto:tharvey@gateworks.com" rel="noreferrer noreferrer noreferrer" target="_blank">tharvey@gateworks.com</a>> wrote:<br>
><br>
> On Fri, Oct 19, 2018 at 11:57 AM Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca" rel="noreferrer noreferrer noreferrer" target="_blank">nicolas@ndufresne.ca</a>> wrote:<br>
> ><br>
> > Le vendredi 19 octobre 2018 à 11:27 -0700, Tim Harvey a écrit :<br>
> > > On Thu, Oct 18, 2018 at 7:32 PM Nicolas Dufresne <<br>
> > > <a href="mailto:nicolas@ndufresne.ca" rel="noreferrer noreferrer noreferrer" target="_blank">nicolas@ndufresne.ca</a>> wrote:<br>
> > > ><br>
> > > > Hi Tim,<br>
> > > ><br>
> > > > this felt familiar, this issue was fixed for colorimetry recently.<br>
> > > > I<br>
> > > > have filed this issue and attached a patch. If you could give this<br>
> > > > patch a try to confirm it would be nice.<br>
> > > ><br>
> > > > <a href="https://bugzilla.gnome.org/show_bug.cgi?id=797306" rel="noreferrer noreferrer noreferrer noreferrer" target="_blank">https://bugzilla.gnome.org/show_bug.cgi?id=797306</a><br>
> > > ><br>
> > ><br>
> > > Nicolas,<br>
> > ><br>
> > > Thanks - I'm working on testing this but building gstreamer on my<br>
> > > target board is proving to be challenging. I gave up trying to<br>
> > > understand the gst-build option and am now trying to gst-uninstalled<br>
> > > option and stuck trying to figure out how to disable gl from<br>
> > > gst-plugins-base as that's failing to build. Hopefully I will have<br>
> > > some feedback after banging my head against the wall a bit more.<br>
> ><br>
> > Thanks, let me know, and don't harm yourself please ;-D<br>
> ><br>
><br>
> Nicolas,<br>
><br>
> Indeed your patch does resolve this issue of v4l2src failing to<br>
> negotiate my interlaced pipeline. Let me know if you need me to act on<br>
> the bug directly or anything else that is needed to get this upstream.<br>
><br>
<br>
Nicolas,<br>
<br>
Sorry, I was mistaken. The patch didn't resolve the situation... I had<br>
an invalid build environment.<br>
<br>
With your patch:<br>
# media-ctl --get-v4l2 '"adv7180 2-0020":0'<br>
                [fmt:UYVY8_2X8/720x240@1001/30000 field:alternate<br>
colorspace:smpte170m]<br>
# gst-launch-1.0 v4l2src device=/dev/video7 !<br>
video/x-raw,format=UYVY,interlace-mode=interleaved ! jpegenc !<br>
rtpjpegpay ! udpsink host=$SERVER port=5000<br>
Setting pipeline to PAUSED ...<br>
Pipeline is live and does not need PREROLL ...<br>
Setting pipeline to PLAYING ...<br>
New clock: GstSystemClock<br>
0:00:00.644954667  7467  0x1ae3cc0 ERROR                   v4l2<br>
gstv4l2object.c:1942:gst_v4l2_object_get_interlace_mode: Unknown enum<br>
v4l2_field 6<br>
0:00:00.645201000  7467  0x1ae3cc0 ERROR                   v4l2<br>
gstv4l2object.c:1942:gst_v4l2_object_get_interlace_mode: Unknown enum<br>
v4l2_field 6<br>
0:00:00.645341334  7467  0x1ae3cc0 ERROR                   v4l2<br>
gstv4l2object.c:1942:gst_v4l2_object_get_interlace_mode: Unknown enum<br>
v4l2_field 6<br>
0:00:00.645476667  7467  0x1ae3cc0 ERROR                   v4l2<br>
gstv4l2object.c:1942:gst_v4l2_object_get_interlace_mode: Unknown enum<br>
v4l2_field 6<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">V4l2 field 6 is V4L2_FIELD_SEQ_BT, which we never supported in GStreamer V4L2. Though we used to let it stream. The following trace was misleading, since the device does not really wants interleaved and you didn't request progressive. Can you attach a trace when ran with environment GST_DEBUG="v4l2*:7". That will give me more data to verify. I'll try and improve the error, though I might not have enough time to enable interlace-mode=field, as it's a bit complicated the way it's defined in GStreamer (requires two video meta !). There is pending patches for interlace-mode=alternate which is equally complex.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
ERROR: from element /GstPipeline:pipeline0/GstV4l2Src:v4l2src0: Device<br>
'/dev/video7' does not support progressive interlacing<br>
Additional debug info:<br>
gstv4l2object.c(3838): gst_v4l2_object_set_format_full ():<br>
/GstPipeline:pipeline0/GstV4l2Src:v4l2src0:<br>
Device wants interleaved interlacing<br>
Execution ended after 0:00:00.004613334<br>
Setting pipeline to PAUSED ...<br>
Setting pipeline to READY ...<br>
Setting pipeline to NULL ...<br>
Freeing pipeline ...<br>
<br>
enabling gst-debug creates a massive slew of debug. Can you tell<br>
what's happening from the above?<br>
<br>
Tim<br>
</blockquote></div></div></div>
</blockquote></div>