<div dir="ltr">So Nikolas, the examples tells nothing how to connect the stream to the input port or how to redirect to another address.<div><br></div><div>I ran it and got this:</div><div>>>./test-launch "( videotestsrc ! x264enc ! rtph264pay name=pay0 pt=96 )"<br>stream ready at rtsp://<a href="http://127.0.0.1:8554/test">127.0.0.1:8554/test</a><br><a href="http://127.0.0.1:8554/test" target="_blank"></a></div><div><br><br></div><div>How can I feed it with a h264 stream and open it with another player? For now I would be satisfied with this working on the localhost. I have some mp4 and mkv files on this machine for testing if it is required to use gst-lauch-1.0.<br></div><div><br><div><br></div><div>The ffmpeg comand captures the desktop, encode it with h264 and sends it to the <Server IP>. This could be changed.</div><div><br></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2017-09-05 15:55 GMT-03:00 Nicolas Dufresne <span dir="ltr"><<a href="mailto:nicolas@ndufresne.ca" target="_blank">nicolas@ndufresne.ca</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Le mardi 05 septembre 2017 à 13:29 -0300, Thadeu Antonio Ferreira de<br>
Melo a écrit :<br>
<span class="">> Sebastian had suggested me to use 1.8 since I couldn´t even compile<br>
> the main branch.<br>
><br>
> The exemples don´t have much explanation for what they are suppose to<br>
> do. There is no in/out parameters type or what is the expected<br>
> behavior.<br>
> There is no tutorial. No step by step.<br>
<br>
</span>This one is 88 lines, including comments and white lines, did you tried<br>
to read it at all ?<br>
<br>
<a href="https://cgit.freedesktop.org/gstreamer/gst-rtsp-server/tree/examples/te
st-launch.c" rel="noreferrer" target="_blank">https://cgit.freedesktop.org/<wbr>gstreamer/gst-rtsp-server/<wbr>tree/examples/te<br>
st-launch.c</a><br>
<br>
For the in/out parameters as you say, the API is fully documented<br>
online. For each C function, lookup this side to find the details:<br>
<br>
<a href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-rtsp-serv
er/html/" rel="noreferrer" target="_blank">https://gstreamer.freedesktop.<wbr>org/data/doc/gstreamer/head/<wbr>gst-rtsp-serv<br>
er/html/</a><br>
<br>
When you build it, it works a bit like gst-launch-1.0, after all,<br>
before starting a server you probably want to use gst-launch-1.0 to<br>
figure-out the right pipeline. It's nice for quick experiment.<br>
<span class=""><br>
><br>
> We have a source that sends a h264 stream from a Windows desktop<br>
> using ffmpeg with this command<br>
><br>
</span>> ffmpeg -f gdigrab -i desktop -pix_fmt yuv420p -framerate 30 -draw_mouse 0 -vcodec libx264 -tune zerolatency -bf 0 -preset slow -crf 25 -g 30 -an -refs 4 -x264-params vbv-maxrate=2000:vbv-bufsize=<wbr>256:keyint nhttp://<Server IP>/feed1.ffm<br>
<br>
This the part I can't read, but I won't say it's totally undocumented<br>
and missing tutorials, just that I have no idea what it means really.<br>
What type of stream will this command provide ? Do you really want to<br>
interface this ?<br>
<div class="HOEnZb"><div class="h5">><br>
> The ffserver redirects this the client application, that could be<br>
> Android, Windows or Web.<br>
><br>
> We need a better server, more stable and with more community support<br>
> (ffserver has been abandoned for 4 years). We will probably change<br>
> how we capture and send de data from the Windows app, but it will be<br>
> always a h264 stream that has to be redirect to the client device.<br>
><br>
> 2017-09-05 13:11 GMT-03:00 Nicolas Dufresne <<a href="mailto:nicolas@ndufresne.ca">nicolas@ndufresne.ca</a>>:<br>
> > Le mardi 05 septembre 2017 à 12:46 -0300, Thadeu Antonio Ferreira<br>
> > de<br>
> > Melo a écrit :<br>
> > > Not a single good samaritan?<br>
> > ><br>
> > > I couldn´t find a single simple example how to run the server and<br>
> > > redirect the video stream.<br>
> > > I wouldn´t be asking if I hadn´t exhausted my options.<br>
> ><br>
> > That's the because the question isn't clear and slightly<br>
> > overloaded. I<br>
> > can comment here, but a stackoverflow reply is unlikely to be<br>
> > useful.<br>
> ><br>
> ><br>
> > I have download and compile the gstreamer server 1.8, but the<br>
> > examples are not very clear.<br>
> ><br>
> > Why 1.8 and not latest stable 1.12 ? Which example ? What wasn't<br>
> > clear<br>
> > for you ?<br>
> ><br>
> ><br>
> > For the sake o simplicity I would like to have a local server<br>
> > that<br>
> > could receive h264 data stream from ffmpeg in one port of the<br>
> > local<br>
> > host and redirect it to another port.<br>
> ><br>
> > With or without transcoding ? Is the H264 byte-stream or AVC ?<br>
> > Another<br>
> > reason it's overloaded, I have never tested myself an Gst RTSP<br>
> > server<br>
> > that simply forward. A jitter buffer might not be needed as an<br>
> > example,<br>
> > allowing extremely low latency, but this need testing as it has not<br>
> > been done publicly before. Some server library work might be<br>
> > needed.<br>
> ><br>
> > What is the minimal, simplest way to make that binding?<br>
> ><br>
> > This depends on all the above. The examples in the "example" folder<br>
> > of<br>
> > the library code are extremely simple, it's hard to answer your<br>
> > question if we don't understand why these example are "not clear"<br>
> > to<br>
> > you.<br>
> ><br>
> > regards,<br>
> > Nicolas<br>
> ><br>
> > ><br>
> > > 2017-09-04 12:00 GMT-03:00 Thadeu Antonio Ferreira de Melo<br>
> > <<a href="http://thadeu.af" rel="noreferrer" target="_blank">thadeu.af</a><br>
> > > <a href="mailto:m@gmail.com">m@gmail.com</a>>:<br>
> > > > Hello.<br>
> > > ><br>
> > > > I posted this question on SO.<br>
> > > ><br>
> > > > <a href="https://stackoverflow.com/questions/46006419/using-gstreamer-se" rel="noreferrer" target="_blank">https://stackoverflow.com/<wbr>questions/46006419/using-<wbr>gstreamer-se</a><br>
> > rver<br>
> > > > -to-redirect-a-h264-source-to-<wbr>diferent-clients<br>
> > > ><br>
> > > > We are trying to achieve low latency for real time interaction.<br>
> > > ><br>
> > > > Can anyone help with some guide to build a simple solution?<br>
> > ><br>
> > > ______________________________<wbr>_________________<br>
> > > gstreamer-devel mailing list<br>
> > > <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
> > > <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
> > ______________________________<wbr>_________________<br>
> > gstreamer-devel mailing list<br>
> > <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
> > <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
> ><br>
><br>
> ______________________________<wbr>_________________<br>
> gstreamer-devel mailing list<br>
> <a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
> <a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a></div></div><br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div>