<html>
  <head>

    <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hi all</p>
    <p>Gstreamer version: 1.14.2<br>
    </p>
    <p>My problem:</p>
    <p>test-launch program from gst-rtsp-server-1.14.2<br>
    </p>
    <p>$ GST_DEBUG=2 ./test-launch "( v4l2src !
      video/x-raw,format=YUY2,width=640,height=480 ! videoconvert !
      x264enc ! rtph264pay name=pay0 pt=96 )"</p>
    <p>stream ready at <a class="moz-txt-link-freetext" href="rtsp://127.0.0.1:8554/test">rtsp://127.0.0.1:8554/test</a><br>
      x264 [error]: baseline profile doesn't support 4:2:2<br>
      0:00:04.580719380 782721 0x7f2e3801a0f0 WARN                
      x264enc
      gstx264enc.c:1807:gst_x264_enc_init_encoder:<x264enc0> Bad
      downstream profile name: baseline<br>
      0:00:05.359546191 782721 0x7f2e3801a0f0 WARN                
      v4l2src gstv4l2src.c:976:gst_v4l2src_create:<v4l2src0> lost
      frames detected: count = 1 - ts: 0:00:00.776213683<br>
      0:00:07.479041838 782721       0x6d0590 WARN              
      rtspmedia rtsp-media.c:3861:gst_rtsp_media_suspend: media
      0x7f2e4003c2d0 was not prepared<br>
      0:00:20.580574293 782721       0x6d0590 WARN              
      rtspmedia rtsp-media.c:4143:gst_rtsp_media_set_state: media
      0x7f2e4003c2d0 was not prepared</p>
    <p>My device:</p>
    <p>$ v4l2-ctl --list-formats</p>
    <p>ioctl: VIDIOC_ENUM_FMT<br>
          Index       : 0<br>
          Type        : Video Capture<br>
          Pixel Format: 'YUYV'<br>
          Name        : YUYV 4:2:2<br>
      <br>
          Index       : 1<br>
          Type        : Video Capture<br>
          Pixel Format: 'MJPG' (compressed)<br>
          Name        : Motion-JPEG<br>
    </p>
    <p>-----------------------------------------------------------------------</p>
    <p>I searched in gst-plugins-ugly-1.14.2:  ext/x264/gstx264enc.c:</p>
    <p><a class="moz-txt-link-freetext" href="https://cgit.freedesktop.org/gstreamer/gst-plugins-ugly/tree/ext/x264/gstx264enc.c?h=1.14#n2282">https://cgit.freedesktop.org/gstreamer/gst-plugins-ugly/tree/ext/x264/gstx264enc.c?h=1.14#n2282</a></p>
    <p>The encoder's peer_profile was set as 'baseline' according to <code>[
        GstVideoCodecState * state ] from the previous element.</code></p>
    <p><code>and in x264 source code:</code></p>
    <p><code><a class="moz-txt-link-freetext" href="https://github.com/mirror/x264/blob/master/common/base.c#L721">https://github.com/mirror/x264/blob/master/common/base.c#L721</a></code></p>
    <p><code>The x264 compare the profile and i_csp, found missing pair,
        so give the "x264 [error]: baseline profile doesn't support
        4:2:2"<br>
      </code></p>
    <p><code>I was strange if the device give the missing pair from
        v4l2src element?<br>
      </code></p>
  </body>
</html>