<div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div dir="ltr"><div>Thank you Nirbheek for the quick reply and for the good news regarding GStreamer 1.15.2 libraries built with MSVC.</div><div><br></div><div>I was very eager to try them out with MATLAB, here's the status.</div><div><br></div><div>At first, I had the following issue, but it seems to have been resolved "magically".</div><div><br></div><div>ISSUE: I was not able to start the video streams from my DLL.</div><div><br></div><div>Using a custom log function (ref. <span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">VisionAdaptor::printGstLog</span>), I had the following output in MATLAB command window:</div><div><div>gstreamer: [ERROR] ../gst/parse/grammar.y:816:priv_gst_parse_yyparse: no element "rtspsrc" </div><div>gstreamer: [ERROR] ../gst/parse/grammar.y:816:priv_gst_parse_yyparse: no element "rtph264depay" </div><div>gstreamer: [ERROR] ../gst/parse/grammar.y:901:priv_gst_parse_yyparse: link has no source [sink=@0000000000000000] </div><div>gstreamer: [ERROR] ../gst/parse/grammar.y:816:priv_gst_parse_yyparse: no element "avdec_h264" </div><div>gstreamer: [ERROR] ../gst/parse/grammar.y:901:priv_gst_parse_yyparse: link has no source [sink=@0000000000000000] </div><div>gstreamer: [ERROR] ../gst/parse/grammar.y:816:priv_gst_parse_yyparse: no element "videoconvert" </div><div>gstreamer: [ERROR] ../gst/parse/grammar.y:901:priv_gst_parse_yyparse: link has no source [sink=@0000000000000000] </div><div><br></div></div><div>The <span style="font-size:small;background-color:rgb(255,255,255);text-decoration-style:initial;text-decoration-color:initial;float:none;display:inline">VisionAdaptor::printGstLog</span>
function uses a printf-like function with this format:</div><div>"gstreamer: [%s] %s:%d:%s: %s", GST_LOG_LEVEL_NAME[level], file, line, function, gst_debug_message_get(message)<br></div><div><br></div><div>After confirming that I was able to stream my video feed with gst-launch (using the same pipeline), the issue was "fixed" when I tried again to stream from my DLL. The issue never came back.</div><div><br></div><div>Unfortunately, I still have the following issue:</div><div><br></div><div>ISSUE: A few seconds after MATLAB unloads my DLL, sometimes it crashes with the following backtrace:</div><div><div>Stack Trace (from fault):</div><div>[  0] 0x00000000d32924c0                                   <unknown-module>+00000000</div><div>[  1] 0x000007fec1104bf3    C:\gstreamer\1.0\x86_64\bin\gstreamer-1.0-0.dll+00347123 gst_value_init_and_copy+00333927</div><div>[  2] 0x000007fec110418d    C:\gstreamer\1.0\x86_64\bin\gstreamer-1.0-0.dll+00344461 gst_value_init_and_copy+00331265</div><div>[  3] 0x000007fec1637a88      C:\gstreamer\1.0\x86_64\bin\gstrtsp-1.0-0.dll+00031368 gst_rtsp_message_steal_body+00026102</div><div>[  4] 0x000007fec1eb3032 C:\gstreamer\1.0\x86_64\lib\gstreamer-1.0\gstrtsp.dll+00012338 gst_plugin_rtsp_register+00007882</div><div>[  5] 0x000007fec1ec4db8 C:\gstreamer\1.0\x86_64\lib\gstreamer-1.0\gstrtsp.dll+00085432 gst_plugin_rtsp_register+00080976</div><div>[  6] 0x000007fec1ebe50c C:\gstreamer\1.0\x86_64\lib\gstreamer-1.0\gstrtsp.dll+00058636 gst_plugin_rtsp_register+00054180</div><div>[  7] 0x000007fec1eb8c82 C:\gstreamer\1.0\x86_64\lib\gstreamer-1.0\gstrtsp.dll+00035970 gst_plugin_rtsp_register+00031514</div><div>[  8] 0x000007fec1ec0af1 C:\gstreamer\1.0\x86_64\lib\gstreamer-1.0\gstrtsp.dll+00068337 gst_plugin_rtsp_register+00063881</div><div>[  9] 0x000007fec1ecccaf C:\gstreamer\1.0\x86_64\lib\gstreamer-1.0\gstrtsp.dll+00117935 gst_plugin_rtsp_register+00113479</div><div>[ 10] 0x000007fec115320c    C:\gstreamer\1.0\x86_64\bin\gstreamer-1.0-0.dll+00668172 gst_value_init_and_copy+00654976</div><div>[ 11] 0x000007feb3d8b0f4         C:\gstreamer\1.0\x86_64\bin\glib-2.0-0.dll+00438516 g_date_get_monday_week_of_year+00425260</div><div>[ 12] 0x000007feb3d8a3f6         C:\gstreamer\1.0\x86_64\bin\glib-2.0-0.dll+00435190 g_date_get_monday_week_of_year+00421934</div><div>[ 13] 0x000007feb3db32f7         C:\gstreamer\1.0\x86_64\bin\glib-2.0-0.dll+00602871 g_date_get_monday_week_of_year+00589615</div><div>[ 14] 0x000007fec9b80369 C:\Program Files\MATLAB\R2018b\bin\win64\ucrtbase.DLL+00131945 o__strtoui64+00000089</div><div>[ 15] 0x00000000773f59cd                   C:\windows\system32\kernel32.dll+00088525 BaseThreadInitThunk+00000013</div><div>[ 16] 0x000000007755383d                      C:\windows\SYSTEM32\ntdll.dll+00342077 RtlUserThreadStart+00000029</div></div><div><br></div><div>The crash seems to occur only if previously I had a failed attempt to stream a video feed. For instance, I specify a wrong IP address for the rtspsrc. Then, when I make MATLAB unload my DLL, the crash occurs after a few seconds. Do you have any idea what could be the root cause? <br></div><div><br></div><div>Also, do you know if the release of stable version 1.16 is still planned for this month?</div><div><br></div><div>Thank you,</div><div>MarcG</div><div><br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">---------- Forwarded message ----------<br>From: Nirbheek Chauhan <<a href="mailto:nirbheek.chauhan@gmail.com" target="_blank">nirbheek.chauhan@gmail.com</a>><br>To: Discussion of the development of and with GStreamer <<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a>><br>Cc: <br>Bcc: <br>Date: Tue, 12 Mar 2019 17:28:13 +0530<br>Subject: Re: gstreamer-devel Digest, Vol 97, Issue 63<br>On Tue, Mar 12, 2019 at 5:11 PM Marc Gelinas <<a href="mailto:mgelinas@kinova.ca" target="_blank">mgelinas@kinova.ca</a>> wrote:<br>
> Would it be possible for me then to build GStreamer with MSVC?<br>
<br>
You can do this starting with the 1.15.2 development release:<br>
<br>
<a href="https://gitlab.freedesktop.org/gstreamer/cerbero/#enabling-visual-studio-support" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/gstreamer/cerbero/#enabling-visual-studio-support</a><br>
<br>
> Any caveats?<br>
<br>
Some plugins are disabled, and only x86_64 is currently available. For<br>
more details, see:<br>
<br>
<a href="https://gitlab.freedesktop.org/gstreamer/cerbero/issues/121" rel="noreferrer" target="_blank">https://gitlab.freedesktop.org/gstreamer/cerbero/issues/121</a><br>
<br>
> Any plans in the very near future for the GStreamer team to provide libraries built with MSVC?<br>
<br>
The 1.15.2 release shipped with x86_64 binaries built with MSVC:<br>
<br>
<a href="https://gstreamer.freedesktop.org/data/pkg/windows/1.15.2/" rel="noreferrer" target="_blank">https://gstreamer.freedesktop.org/data/pkg/windows/1.15.2/</a><br>
<br>
Cheers,<br>
Nirbheek<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="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div></div></div></div></div></div></div>