<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=us-ascii"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
span.StileMessaggioDiPostaElettronica17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 2.0cm 2.0cm 2.0cm;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=IT link="#0563C1" vlink="#954F72" style='word-wrap:break-word'><div class=WordSection1><p class=MsoNormal>Hi all,<o:p></o:p></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>can someone help me on this?<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>I want to capture a windows directshow device into an h264 matroska file.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>But this pipeline produce an empty file: (stall)<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>gst-launch-1.0.exe -v dshowvideosrc device-name="Full HD 1080P PC Camera" ! queue ! videoconvert ! nvh264enc preset=3 bitrate=1024 ! h264parse ! matroskamux ! filesink location="e:\test.mkv<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>if I replace dshowvideosrc with videotestsrc everything is ok.<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>At this point we can think dshowvideosrc is broken….but if I put an autovideosink I see my webcam without any problem<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>gst-launch-1.0.exe -v dshowvideosrc device-name="Full HD 1080P PC Camera" ! queue ! videoconvert ! autovideosink<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB> <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>so, dshowvideosrc works with an autovideosink but it do not work when encoding nvh264 or x264enc … <o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>this is the log …. It simply stalls<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB><o:p> </o:p></span></p><p class=MsoNormal><span lang=EN-GB>Use Windows high-resolution clock, precision: 1 ms<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Setting pipeline to PAUSED ...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Pipeline is live and does not need PREROLL ...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Got context from element 'nvh264enc0': gst.cuda.context=context, gst.cuda.context=(GstCudaContext)"\(GstCudaContext\)\ cudacontext1", cuda-device-id=(uint)0;<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Got context from element 'nvh264enc0': gst.gl.GLDisplay=context, gst.gl.GLDisplay=(GstGLDisplay)"\(GstGLDisplay\)\ gldisplay0";<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Pipeline is PREROLLED ...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Setting pipeline to PLAYING ...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>/GstPipeline:pipeline0/GstDshowVideoSrc:dshowvideosrc0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framerate=(fraction)5/1, interlace-mode=(string)progressive<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framerate=(fraction)5/1, interlace-mode=(string)progressive<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framerate=(fraction)5/1, interlace-mode=(string)progressive<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:src: caps = video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)5/1, format=(string)NV12, interlace-mode=(string)progressive<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>New clock: GstSystemClock<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>/GstPipeline:pipeline0/GstNvH264Enc:nvh264enc0.GstPad:sink: caps = video/x-raw, width=(int)1920, height=(int)1080, framerate=(fraction)5/1, format=(string)NV12, interlace-mode=(string)progressive<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>/GstPipeline:pipeline0/GstVideoConvert:videoconvert0.GstPad:sink: caps = video/x-raw, format=(string)YUY2, width=(int)1920, height=(int)1080, framerate=(fraction)5/1, interlace-mode=(string)progressive<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>/GstPipeline:pipeline0/GstNvH264Enc:nvh264enc0.GstPad:src: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, level=(string)4, profile=(string)main, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)5/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:sink: caps = video/x-h264, stream-format=(string)byte-stream, alignment=(string)au, level=(string)4, profile=(string)main, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)5/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Redistribute latency...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>/GstPipeline:pipeline0/GstH264Parse:h264parse0.GstPad:src: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)4, profile=(string)main, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)5/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2, coded-picture-structure=(string)frame, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, codec_data=(buffer)014d4028ffe10019674d402895a01e0089f97016a020202800001f40000138842001000468ee3c80<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>/GstPipeline:pipeline0/GstMatroskaMux:matroskamux0.GstMatroskamuxPad:video_0: caps = video/x-h264, stream-format=(string)avc, alignment=(string)au, level=(string)4, profile=(string)main, width=(int)1920, height=(int)1080, pixel-aspect-ratio=(fraction)1/1, framerate=(fraction)5/1, interlace-mode=(string)progressive, colorimetry=(string)bt709, chroma-site=(string)mpeg2, coded-picture-structure=(string)frame, chroma-format=(string)4:2:0, bit-depth-luma=(uint)8, bit-depth-chroma=(uint)8, parsed=(boolean)true, codec_data=(buffer)014d4028ffe10019674d402895a01e0089f97016a020202800001f40000138842001000468ee3c80<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>/GstPipeline:pipeline0/GstMatroskaMux:matroskamux0.GstPad:src: caps = video/x-matroska<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/x-matroska<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>Redistribute latency...<o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>/GstPipeline:pipeline0/GstMatroskaMux:matroskamux0.GstPad:src: caps = video/x-matroska, streamheader=(buffer)< 1a45dfa301000000000000144282896d6174726f736b610042878102428581021853806701ffffffffffffff114d9b74010000000000008c4dbb010000000000001253ab841549a96653ac88ffffffffffffffff4dbb010000000000001253ab841654ae6b53ac88ffffffffffffffff4dbb010000000000001253ab841043a77053ac88ffffffffffffffff4dbb010000000000001253ab841c53bb6b53ac88ffffffffffffffff4dbb010000000000001253ab841254c36753ac88ffffffffffffffff1549a966010000000000007473a490cadaa687ecb334a5dda2b9994e5d6d202ad7b1830f424044898800000000000000004d80a54753747265616d6572206d6174726f736b616d75782076657273696f6e20312e32312e32005741994753747265616d6572204d6174726f736b61206d7578657200446188099ea91599e8faa81654ae6b0100000000000096ae010000000000008dd7810183810173c5883bd5e112dde119e723e383840bebc200536e86566964656f00e00100000000000025b0820780ba8204389a810255b0010000000000001055b9810155b1810155ba810155bb81018690565f4d504547342f49534f2f4156430063a2a8014d4028ffe10019674d402895a01e0089f97016a020202800001f40000138842001000468ee3c80 ><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/x-matroska, streamheader=(buffer)< 1a45dfa301000000000000144282896d6174726f736b610042878102428581021853806701ffffffffffffff114d9b74010000000000008c4dbb010000000000001253ab841549a96653ac88ffffffffffffffff4dbb010000000000001253ab841654ae6b53ac88ffffffffffffffff4dbb010000000000001253ab841043a77053ac88ffffffffffffffff4dbb010000000000001253ab841c53bb6b53ac88ffffffffffffffff4dbb010000000000001253ab841254c36753ac88ffffffffffffffff1549a966010000000000007473a490cadaa687ecb334a5dda2b9994e5d6d202ad7b1830f424044898800000000000000004d80a54753747265616d6572206d6174726f736b616d75782076657273696f6e20312e32312e32005741994753747265616d6572204d6174726f736b61206d7578657200446188099ea91599e8faa81654ae6b0100000000000096ae010000000000008dd7810183810173c5883bd5e112dde119e723e383840bebc200536e86566964656f00e00100000000000025b0820780ba8204389a810255b0010000000000001055b9810155b1810155ba810155bb81018690565f4d504547342f49534f2f4156430063a2a8014d4028ffe10019674d402895a01e0089f97016a020202800001f40000138842001000468ee3c80 ><o:p></o:p></span></p><p class=MsoNormal><span lang=EN-GB>1000:00:0 / 99:99:99.<o:p></o:p></span></p></div></body></html>