rtsp server from android to pc
Chuck Crisler
ccrisler at mutualink.net
Tue Oct 1 12:24:39 PDT 2013
OK, your pipeline is contained in the call to
gst_rtsp_media_factory_set_launch. First, check if you have a valid
pipeline. You need to set up a "server" and a "client". They can be on the
same computer. I know how to do it in Linux but am not sure in Windows.
This assumes the same computer.
Server: gst-launch -v videotestsrc is-live=1 ! x264enc ! rtph264pay
name=pay0 pt=96* | udpsink host=127.0.0.1 port=6000*
Client: gst-launch -v udpsink port=6000 ! rtph264depay byte-stream=true !
video/x-h264 ! ffdec_h264 \
! ffmpegcolorspace ! xvimagesink sync=false
These may not work exactly as I have entered them, you may have to make
small changes. Such as:
Client: gst-launch -v udpsink port=6000 !
'application/x-rtp,media=video,payload=96,clock-rate=90000,encoding-name=H264'
! rtph264depay ...
Also, xvimagesink may not be available on your system. Use gst-inspect
xvimagesink to see.
You should spend some time with the basic GStreamer to learn how to use it,
how to enable logging and what the log messages mean. That will take a
couple of days (well, I am still learning after more than a year). You have
jumped into the 'deep end of the swimming pool' without learning how to
swim. You need to learn the basics first. I don't have any idea about using
android. Hopefully someone else will fill in with that.
On Tue, Oct 1, 2013 at 3:04 PM, yoyosuper8 <yoyosuper8 at yahoo.com> wrote:
> This is my code in c
>
> GMainLoop *loop;
> GstRTSPServer *server;
> GstRTSPMediaMapping *mapping;
> GstRTSPMediaFactory *factory;
>
> loop = g_main_loop_new (NULL, FALSE);
> server = gst_rtsp_server_new ();
> mapping = gst_rtsp_server_get_media_mapping (server);
> factory = gst_rtsp_media_factory_new ();
> //gst_rtsp_media_factory_set_launch (factory,
> // "( videotestsrc is-live=1 ! ffenc_mpeg4 ! rtpmp4vpay
> send-config=true
> name=pay0 pt=96 )");
> gst_rtsp_media_factory_set_launch (factory,
> "( videotestsrc is-live=1 ! x264enc ! rtph264pay
> name=pay0 pt=96 )");
>
> gst_rtsp_media_factory_set_shared (factory, TRUE);
> gst_rtsp_media_mapping_add_factory (mapping, "/test", factory);
> g_object_unref (mapping);
> gst_rtsp_server_attach (server, NULL);
>
> I dont have the pipeline saved in a string variable, I'm providing it all
> to
> gst_rtsp_media_factory_set_launch.
>
>
>
>
> --
> View this message in context:
> http://gstreamer-devel.966125.n4.nabble.com/rtsp-server-from-android-to-pc-tp4662269p4662300.html
> Sent from the GStreamer-devel mailing list archive at Nabble.com.
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20131001/bf354e06/attachment-0001.html>
More information about the gstreamer-devel
mailing list