<div dir="ltr">Hi,<div><br></div><div style>With GST_DEBUG=3 I found that following log is getting generated:</div><div style><br></div><div style><div>0:00:00.487000907  1390  0x8c2e050 INFO        GST_ELEMENT_PADS gstutils.c:1698:gst_element_link_pads_full: trying to link element enc:(any) to element vaimagesink0:(any)</div>
<div>0:00:00.487361292  1390  0x8c2e050 INFO        GST_ELEMENT_PADS gstelement.c:972:gst_element_get_static_pad: no such pad 'src_04' in element "enc"</div><div>0:00:00.487584089  1390  0x8c2e050 INFO        GST_ELEMENT_PADS gstutils.c:1216:gst_element_get_compatible_pad:<enc> Could not find a compatible pad to link to vaimagesink0:sink</div>
<div>0:00:00.487635074  1390  0x8c2e050 INFO                 default gstutils.c:2037:gst_element_link_pads_filtered: Could not link pads: enc:(null) - vaimagesink0:(null)</div><div>Setting pipeline to PAUSED ...</div><div>
0:00:00.508238789  1390  0x8c2e050 INFO              GST_STATES gstelement.c:2460:gst_element_continue_state:<vaimagesink0> completed state change to READY</div><div>0:00:00.508375401  1390  0x8c2e050 INFO              GST_STATES gstelement.c:2365:_priv_gst_element_state_changed:<vaimagesink0> notifying about state-changed NULL to READY (VOID_PENDING pending)</div>
<div><br></div><div style>Am I missing something in the gst-launch command?</div><div style><br></div><div style>Thanks,</div><div style>Yogesh</div></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Thu, Jun 6, 2013 at 5:54 PM, Yogesh Tyagi <span dir="ltr"><<a href="mailto:yogesh.bit2006@gmail.com" target="_blank">yogesh.bit2006@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>Hi,</div><div><br></div><div>I am getting "X Error of failed request:  BadMatch (invalid parameter attributes)" error on executing following command:</div>
<div><br></div>
<div><br></div><div><br></div><div># gst-launch -v filesrc location=/root/videoEncode/352x 288_GIJOE.raw use-mmap=TRUE blocksize=152064 ! video/x-raw-yuv,width=352,height=288,framerate=15/1,format=\(fourcc\)I420 ! MixVideoEncoderH264 bit-rate=128000 rate-control=NONE need-display=1 name=enc ! queue ! filesink location=H264_1.h264 enc. ! vaimagesink</div>

<div><br></div><div><br></div><div>libva: libva version 0.32.0</div><div>libva: va_getDriverName() returns 0</div><div>libva: Trying to open /usr/lib/dri/emgd_drv_video.so</div><div>Intel(R) Embedded Media and Graphics Driver 1.18 Build 3398</div>

<div>Using XCB based dispatch table.</div><div>libva: va_openDriver() returns 0</div><div>Setting pipeline to PAUSED ...</div><div>Pipeline is PREROLLING ...</div><div>/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-raw-yuv, width=(int)352, height=(int)288, framerate=(fraction)15/1, format=(fourcc)I420</div>

<div>/GstPipeline:pipeline0/MixVideoEncoderH264:enc.GstPad:src_01: caps = video/x-h264, width=(int)352, height=(int)288, framerate=(fraction)15/1, stream-format=(string)avc, alignment=(string)au</div><div>/GstPipeline:pipeline0/MixVideoEncoderH264:enc.GstPad:src_04: caps = video/x-va, width=(int)352, height=(int)288, framerate=(fraction)15/1, va_sync_surface=(boolean)false</div>

<div>/GstPipeline:pipeline0/MixVideoEncoderH264:enc.GstPad:sink: caps = video/x-raw-yuv, width=(int)352, height=(int)288, framerate=(fraction)15/1, format=(fourcc)I420</div><div>/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-h264, width=(int)352, height=(int)288, framerate=(fraction)15/1, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)0142c01effe1001f6742c01eab40b04a420000030002000003003dc0000fa0000bb8000003001001000428ce0bc8</div>

<div>/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-h264, width=(int)352, height=(int)288, framerate=(fraction)15/1, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)0142c01effe1001f6742c01eab40b04a420000030002000003003dc0000fa0000bb8000003001001000428ce0bc8</div>

<div>/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/x-h264, width=(int)352, height=(int)288, framerate=(fraction)15/1, stream-format=(string)avc, alignment=(string)au, codec_data=(buffer)0142c01effe1001f6742c01eab40b04a420000030002000003003dc0000fa0000bb8000003001001000428ce0bc8</div>

<div>/GstPipeline:pipeline0/GstVaImageSink:vaimagesink0.GstPad:sink: caps = video/x-va, width=(int)352, height=(int)288, framerate=(fraction)15/1, va_sync_surface=(boolean)false</div><div>Pipeline is PREROLLED ...</div><div>

Setting pipeline to PLAYING ...</div><div>New clock: GstSystemClock</div><div>Got EOS from element "pipeline0".</div><div>Execution ended after 5160942589 ns.</div><div>Setting pipeline to PAUSED ...</div><div>
Setting pipeline to READY ...</div>
<div>/GstPipeline:pipeline0/GstVaImageSink:vaimagesink0.GstPad:sink: caps = NULL</div><div>/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = NULL</div><div>/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = NULL</div>

<div>/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = NULL</div><div>/GstPipeline:pipeline0/MixVideoEncoderH264:enc.GstPad:src_04: caps = NULL</div><div>/GstPipeline:pipeline0/MixVideoEncoderH264:enc.GstPad:src_01: caps = NULL</div>

<div>/GstPipeline:pipeline0/MixVideoEncoderH264:enc.GstPad:sink: caps = NULL</div><div>/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = NULL</div><div>Setting pipeline to NULL ...</div><div>Freeing pipeline ...</div>

<div>X Error of failed request:  BadMatch (invalid parameter attributes)</div><div>  Major opcode of failed request:  133 (XVideo)</div><div>  Minor opcode of failed request:  13 ()</div><div>  Serial number of failed request:  52</div>

<div>  Current serial number in output stream:  54</div><div> </div><div>Transcoding runs fine for few seconds and then above error is generated. Can somebody provide me a hint as why this error is getting generated?</div>

<div><br></div><div>Thanks,</div><div>Yogesh</div><div><br></div></div>
</blockquote></div><br></div>