Using gstreamer RTSP server over the internet

Nicolas Dufresne nicolas at ndufresne.ca
Tue Sep 5 18:55:39 UTC 2017


Le mardi 05 septembre 2017 à 13:29 -0300, Thadeu Antonio Ferreira de
Melo a écrit :
> Sebastian had suggested me to use 1.8 since I couldn´t even compile
> the main branch.
> 
> The exemples don´t have much explanation for what they are suppose to
> do. There is no in/out parameters type or what is the expected
> behavior. 
> There is no tutorial. No step by step.

This one is 88 lines, including comments and white lines, did you tried
to read it at all ?

https://cgit.freedesktop.org/gstreamer/gst-rtsp-server/tree/examples/te
st-launch.c

For the in/out parameters as you say, the API is fully documented
online. For each C function, lookup this side to find the details:

https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-rtsp-serv
er/html/

When you build it, it works a bit like gst-launch-1.0, after all,
before starting a server you probably want to use gst-launch-1.0 to
figure-out the right pipeline. It's nice for quick experiment.

> 
> We have a source that sends a h264 stream from a Windows desktop
> using ffmpeg with this command
> 
> 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=256:keyint nhttp://<Server IP>/feed1.ffm

This the part I can't read, but I won't say it's totally undocumented
and missing tutorials, just that I have no idea what it means really.
What type of stream will this command provide ? Do you really want to
interface this ?
> 
> The ffserver redirects this the client application, that could be
> Android, Windows or Web.
> 
> We need a better server, more stable and with more community support
> (ffserver has been abandoned for 4 years). We will probably change
> how we capture and send de data from the Windows app, but it will be
> always a h264 stream that has to be redirect to the client device.  
> 
> 2017-09-05 13:11 GMT-03:00 Nicolas Dufresne <nicolas at ndufresne.ca>:
> > Le mardi 05 septembre 2017 à 12:46 -0300, Thadeu Antonio Ferreira
> > de
> > Melo a écrit :
> > > Not a single good samaritan?
> > >
> > > I couldn´t find a single simple example how to run the server and
> > > redirect the video stream.
> > > I wouldn´t be asking if I hadn´t exhausted my options.
> > 
> > That's the because the question isn't clear and slightly
> > overloaded. I
> > can comment here, but a stackoverflow reply is unlikely to be
> > useful.
> > 
> > 
> >     I have download and compile the gstreamer server 1.8, but the
> >     examples are not very clear.
> > 
> > Why 1.8 and not latest stable 1.12 ? Which example ? What wasn't
> > clear
> > for you ?
> > 
> > 
> >     For the sake o simplicity I would like to have a local server
> > that
> >     could receive h264 data stream from ffmpeg in one port of the
> > local
> >     host and redirect it to another port.
> > 
> > With or without transcoding ? Is the H264 byte-stream or AVC ?
> > Another
> > reason it's overloaded, I have never tested myself an Gst RTSP
> > server
> > that simply forward. A jitter buffer might not be needed as an
> > example,
> > allowing extremely low latency, but this need testing as it has not
> > been done publicly before. Some server library work might be
> > needed.
> > 
> >     What is the minimal, simplest way to make that binding?
> > 
> > This depends on all the above. The examples in the "example" folder
> > of
> > the library code are extremely simple, it's hard to answer your
> > question if we don't understand why these example are "not clear"
> > to
> > you.
> > 
> > regards,
> > Nicolas
> > 
> > >
> > > 2017-09-04 12:00 GMT-03:00 Thadeu Antonio Ferreira de Melo
> > <thadeu.af
> > > m at gmail.com>:
> > > > Hello.
> > > >
> > > > I posted this question on SO.
> > > >
> > > > https://stackoverflow.com/questions/46006419/using-gstreamer-se
> > rver
> > > > -to-redirect-a-h264-source-to-diferent-clients
> > > >
> > > > We are trying to achieve low latency for real time interaction.
> > > >
> > > > Can anyone help with some guide to build a simple solution?
> > >
> > > _______________________________________________
> > > gstreamer-devel mailing list
> > > gstreamer-devel at lists.freedesktop.org
> > > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> > _______________________________________________
> > gstreamer-devel mailing list
> > gstreamer-devel at lists.freedesktop.org
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> > 
> 
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 195 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170905/e3b23232/attachment.sig>


More information about the gstreamer-devel mailing list