<div dir="ltr"><a href="https://stackoverflow.com/questions/7018228/how-do-i-redirect-output-to-a-file-with-createprocess">https://stackoverflow.com/questions/7018228/how-do-i-redirect-output-to-a-file-with-createprocess</a> might be helpful for you. Probably not a problem with openrtsp.</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Oct 19, 2020 at 6:43 AM Nicolas Julien <<a href="mailto:nicolas.julien@cdvi.com">nicolas.julien@cdvi.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">




<div>
<div style="direction:ltr;font-family:Tahoma;color:rgb(0,0,0);font-size:10pt">
<div>Hi Ross,</div>
<div><br>
</div>
<div>When I run manually openRTSP from a windows console, all is fine.</div>
<div>Now, I'm trying to launch it from a C++ Windows program, but it does not work.</div>
<div>No error, but video file is not generated.</div>
<div><br>
</div>
<div>The command line is :</div>
<div>openrtsp.exe -b 400000 -u admin admin1234 -v -d 40 -U 20201015T162020Z "rtsp://<a href="http://192.168.1.174:554/Streaming/Tracks/101" target="_blank">192.168.1.174:554/Streaming/Tracks/101</a>" > e:\tmp\video.tmp</div>
<div><br>
</div>
<div>The C code is :</div>
<div><br>
</div>
<div>STARTUPINFOA si;<br>
PROCESS_INFORMATION pi;<br>
ZeroMemory(&si, sizeof(si));<br>
si.cb = sizeof si;<br>
ZeroMemory(&pi, sizeof(pi));<br>
</div>
<div><br>
</div>
<div>GetStartupInfoA(&si);</div>
<div><br>
</div>
<div>strcpy(szCdeLine, "-b 400000 ");</div>
<div>strcat(szCdeLine, "-u admin admin1234 ");</div>
<div>strcat(szCdeLine, "-v ");</div>
<div>strcat(szCdeLine, "-d 40 ");</div>
<div>strcat(szCdeLine, "-U 20201015T162020Z ");</div>
<div>strcat(szCdeLine, "\"rtsp://<a href="http://192.168.1.174:554/Streaming/Tracks/101%5C" target="_blank">192.168.1.174:554/Streaming/Tracks/101\</a>" ");</div>
<div>strcat(szCdeLine, "> e:\\tmp\\video.tmp");</div>
<div><br>
</div>
<div>if (!CreateProcessA("openRTSP.exe", szCdeLine, NULL, NULL, TRUE, 0, NULL, NULL, &si, &pi))</div>
<div>{</div>
<div>err = GetLastError();</div>
<div>throw Exception("openrtsp error";</div>
<div>}</div>
<div><br>
</div>
<div>WaitForSingleObject(pi.hProcess, 40000);</div>
<div>CloseHandle(pi.hProcess);</div>
<div>CloseHandle(pi.hThread);</div>
<div><br>
</div>
<div><br>
</div>
<div>The C program and openrtsp.exe are in the same directory.</div>
<div><br>
</div>
<div>Do you have any idea why it does not work ?</div>
<div><br>
</div>
<div>Thanks in advance,</div>
Nicolas</div>
</div>

_______________________________________________<br>
live-devel mailing list<br>
<a href="mailto:live-devel@lists.live555.com" target="_blank">live-devel@lists.live555.com</a><br>
<a href="http://lists.live555.com/mailman/listinfo/live-devel" rel="noreferrer" target="_blank">http://lists.live555.com/mailman/listinfo/live-devel</a><br>
</blockquote></div><br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div><div align="left"><span><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:700;vertical-align:baseline;white-space:pre-wrap">If you have any additional problems or questions, or if this case needs to be handled more urgently, please see below for contact information.</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Thank you.</span></p><br><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Kyle Sebion, Digital Forces Corp.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"> </span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:700;vertical-align:baseline;white-space:pre-wrap">Urgent</span><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"> support: 630-978-2000 X 1.</span></p><p dir="ltr" style="line-height:1.38;margin-top:0pt;margin-bottom:0pt"><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:700;vertical-align:baseline;white-space:pre-wrap">Normal</span><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"> support: <a href="mailto:help@digitalforces.com" target="_blank">help@digitalforces.com</a> (</span><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:700;vertical-align:baseline;white-space:pre-wrap">faster and better</span><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap"> than my personal email; reaches multiple people)</span></p><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">Voice: 630-299-4971 (same as x804). Text: (</span><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;font-weight:700;vertical-align:baseline;white-space:pre-wrap">avoid</span><span style="font-size:11pt;font-family:Arial;color:rgb(0,0,0);background-color:transparent;vertical-align:baseline;white-space:pre-wrap">) 630-447-0804.</span></span></div></div></div></div></div></div>