<div dir="ltr"><div dir="ltr">Keith, <br><br>I seem to have missed the parameters for playbin. One of the important ones in my situation is the latency setting. Making new my script as follows: .\gst-launch-1.0.exe playbin uri=rtsp://<a href="http://127.0.0.1:8554/test">127.0.0.1:8554/test</a> uridecodebin0::source::latency=250, which resolved the issue for me (so now I get a steady stream of alternating white/black). So, your insight that it's fully on the client appeared to be quite correct. <br><br>Apparently, I need to dig into the latency settings within VLC and figure out why it's behaving oddly (still) in that platform. However, I think you've given me enough to run with. Thanks a bunch. <br><br>I may ask another question sometime soon about the Intel plugins since you've had luck with those as well. <br><br>Cheers. <br><br><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 15, 2019 at 9:32 AM Ben Rush <<a href="mailto:ben@ben-rush.net">ben@ben-rush.net</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 dir="ltr"><div dir="ltr">Keith, <br><br>Thanks for your response. So, I just got into the office and have started working with some of your suggestions. To keep the conversation from getting confusing, I'll focus in on one problem at a time: the use of the first example and the appsrc plugin. <br><br>So, I was able to get it working using a GStreamer client, as you suggested. However, playback isn't smooth, which concerns me. I see in the code we seem to be responsible for setting the timestamp and I'm wondering if perhaps the example I'm working with just isn't meant to reflect a production-ready solution. The fact that the presentation time is erratic from the client side seems to be a good theory as to what's causing my issues (thanks for that). If that's the case, I'd like to find an example which does. I made a quick video to show you what I'm experiencing. First, let me share with you the client command I'm using to play the stream: <br><br>.\gst-launch-1.0.exe playbin uri=rtsp://<a href="http://172.17.5.156:8554/test" target="_blank">172.17.5.156:8554/test</a><br><br>And again, the code I'm using is exactly the same code as the example. <br><br>This is what playback looks like: <br><br><a href="https://www.youtube.com/watch?v=46T3TOOI0Lo&feature=youtu.be" target="_blank">https://www.youtube.com/watch?v=46T3TOOI0Lo&feature=youtu.be</a> <br><br>If this was a heart monitor for a patient, the patient would have a serious arrhythmia :) <br><br>And I guess the other concern I have is what you meant when you said the issue is on the client. Ultimately we'll likely be contained to mostly just Gstreamer code, but we will need to support VLC for debugging purposes too. Again, though, I think what I'm likely experiencing is the need to be more mindful of timestamps than I needed to be when using Live555. So, any example code you're aware of that shows how to smartly send timestamps? Or perhaps something in my GStreamer plugin pipeline I should add to better support a smoother playback (interspersing some queues or something?). I'll also spend some more time investigating other RTSP examples for possible solutions. <br><br>Thanks again, <br>Ben</div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Mon, Apr 15, 2019 at 7:37 AM Ben Rush <<a href="mailto:ben@ben-rush.net" target="_blank">ben@ben-rush.net</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 dir="auto">Thank you so much for your feedback. I'll try your suggestions and report back. </div><br><div class="gmail_quote"><div dir="ltr">On Mon, Apr 15, 2019, 01:14 Thornton, Keith <<a href="mailto:keith.thornton@zeiss.com" target="_blank">keith.thornton@zeiss.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 lang="DE">
<div class="gmail-m_6045716131348002082gmail-m_-410830027391791212m_6274535564731455542WordSection1">
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif">Hi, I have a streaming Server running on windows which is based on appsrc. It Works well. I also use the Intel Media SDK Encoder. I am
currently using the msdkh264enc Plugin which is part of the 1.15 and 1.16 release. The problems you are seeing are client side problems. If you use a gstreamer based client, the stuttering at the start doesn’t occur. The black screen may be due to the client
throwing the frames away because they are past the presentation time. Check this by turning the VLC messages to level 2 and by using wireshark to observe the arrival of the frames on the client side.
<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:10pt;font-family:Arial,sans-serif">Gruesse<u></u><u></u></span></p>
<p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p>
<p class="MsoNormal"><b>Von:</b> gstreamer-devel <<a href="mailto:gstreamer-devel-bounces@lists.freedesktop.org" rel="noreferrer" target="_blank">gstreamer-devel-bounces@lists.freedesktop.org</a>>
<b>Im Auftrag von </b>Ben Rush<br>
<b>Gesendet:</b> Montag, 15. April 2019 05:45<br>
<b>An:</b> Discussion of the development of and with GStreamer <<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a>><br>
<b>Betreff:</b> Difficulty getting a good example of the RTSP server running under Windows<u></u><u></u></p>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<div>
<p class="MsoNormal">I'm trying to find a good starting point upon which to develop an RTSP streaming server application using GStreamer and RTSP on Windows. I've installed GStreamer as per these instructions: <a href="https://gstreamer.freedesktop.org/documentation/installing/on-windows.html" rel="noreferrer" target="_blank">https://gstreamer.freedesktop.org/documentation/installing/on-windows.html</a>,
however, the samples specific to the RTSP server thus far haven't worked very well, and I'm wondering if others have any input/experience. <u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><br>
First, this example: <a href="https://github.com/GStreamer/gst-rtsp-server/blob/master/examples/test-appsrc.c" rel="noreferrer" target="_blank">
https://github.com/GStreamer/gst-rtsp-server/blob/master/examples/test-appsrc.c</a> builds and runs, but the output (at least when viewed over VLC) is just a black screen. The client connects, and the scrubber shows time moving forward, but the video is black.
Examining the code, it appears it ought to alternate between black and white, but it does not. <br>
<br>
If I adapt that example to use videotestsrc as the video source, setting the string parameter of gst_rtsp_media_factory_set_launch to "( videotestsrc is-live=true ! videoconvert ! x264enc tune=zerolatency speed-preset=veryfast ! rtph264pay name=pay0 pt=96 )",
I get the "color bars" and white noise video, but it stutters for a second or two, and then pauses for exactly ten seconds and then starts to play normally. I use the x264 encoder in the Live555 streaming server, and with similar parameters, I get no stutter
in playback. I have to believe this is an encoder setting and not a failure of the RTSP server, but adjusting different parameters doesn't seem to impact this stutter. Obviously, in our production environment, we cannot have this kind of stutter. <br>
<br>
Finally, I have been completely unable to get any of the Intel Media SDK to work, specifically their x264 encoder, and I'm curious if anyone has any experience there either. I know this isn't a group specific to these plugins, but perhaps someone has experience
with these plugins. I opened the following issue on their repo: <a href="https://github.com/intel/gstreamer-media-SDK/issues/169" rel="noreferrer" target="_blank">https://github.com/intel/gstreamer-media-SDK/issues/169</a>, but thus far haven't heard anything. <br>
<br>
I think what I'm looking for is just feedback to these issues so I can build confidence this will work on Windows. I haven't tried these particular examples on Linux, but on a couple of occasions, I've had a lot more luck getting GStreamer samples running as
advertised under Ubuntu than Windows. I need them to run on Windows. <br>
<br>
Any feedback would be appreciated. Thanks a bunch for your time. <u></u><u></u></p>
</div>
</div>
</div>
</div>
</div>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" rel="noreferrer" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer noreferrer" target="_blank">https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a></blockquote></div>
</blockquote></div>
</blockquote></div>