Gst-rtsp-server Compile Test

Source: Internet
Author: User
Tags gtk xsl gstreamer autopoint

http://blog.csdn.net/zhoudekuai/article/details/8539432
Gst-rtsp-server Compile Test

Category: Streaming media Linux C + + 2013-01-24 19:28 2550 people read reviews (1) Favorite Report
GST-RTSP GStreamer V4L2


Recently in the full-A80 platform of the 4K camera (RK3688 eight-core processor can only support 2K cameras), adjusted to let the full Chi A80 as a 4K rtsp streaming media server.


Operating System selection (installed in virtual machine VMware11):
http://old-releases.ubuntu.com/releases/14.04.0/
Ubuntu-14.04-desktop-amd64.iso

The sudo apt-get install has already installed the Freescale I. Mx6q's android4.2.2/android4.4.2 software.


1. Download the source package
GST-RTSP-0.10.8.TAR.BZ2 (Source address: http://people.freedesktop.org/~wtay/)
http://people.freedesktop.org/~wtay/gst-rtsp-0.10.8.tar.bz2

Libtool-2.4.tar.gz
Http://ftpmirror.gnu.org/libtool/libtool-2.4.tar.gz
Http://ftpmirror.gnu.org/libtool/libtool-2.4.6.tar.gz

gtk-doc-1.18.tar.bz2
Http://ftp.gnome.org/pub/gnome/sources/gtk-doc/1.18/gtk-doc-1.18.tar.xz
Download (HTTP): Http://ftp.gnome.org/pub/gnome/sources/gtk-doc/1.24/gtk-doc-1.24.tar.xz


2. Installation of Libtool and Gtk-doc two packages
Libtool successfully passed.
[Email protected]:~/wyb/gst-rtsp-server/libtool-2.4$./configure
[Email protected]:~/wyb/gst-rtsp-server/libtool-2.4$ make
[Email protected]:~/wyb/gst-rtsp-server/libtool-2.4$ sudo make install
[Email protected]:~/wyb/gst-rtsp-server/libtool-2.4$ libtool--help
[Email protected]:~/wyb/gst-rtsp-server/libtool-2.4$ libtool--version

Error Gtk-doc Configuration:
Checking for DocBook XML DTD V4.3 in XML catalog ... found
Checking for DocBook XSL stylesheets in XML catalog ... not found
View the Gtk-doc of the Reame has said the software's dependency package, but the URL provided I can not access. The Dead Horse is a live horse doctor's test under the direct installation of XSL actually succeeded.
sudo apt-get install docbook-xsl
Then the config is compiled through.

[Email protected]:~/wyb/gst-rtsp-server/gtk-doc-1.18$./configure
......
config.status:executing Libtool Commands
Configure
Gtk-doc is configured with the following options:
==================================================
Configure: * * Python based tools enabled, Using/usr/bin/python
Configure: * * SGML support enabled, Using/usr/bin/openjade
Configure: * * XML PDF support enabled, Using/usr/bin/dblatex
Configure:gnome-doc-utils Support Disabled
Configure:scrollkeeper Support Disabled
Configure:syntax highlighting of examples disabled
Configure: * * Building regression Tests
Configure:debug tracing Disabled
[Email protected]:~/wyb/gst-rtsp-server/gtk-doc-1.18$ sudo apt-get install gnome-doc-utils
[Email protected]:~/wyb/gst-rtsp-server/gtk-doc-1.18$ sudo apt-get install Scrollkeeper
......
config.status:executing Libtool Commands
Configure
Gtk-doc is configured with the following options:
==================================================
Configure: * * Python based tools enabled, Using/usr/bin/python
Configure: * * SGML support enabled, Using/usr/bin/openjade
Configure: * * XML PDF support enabled, Using/usr/bin/dblatex
Configure: * * gnome-doc-utils Support Enabled
Configure: * * Scrollkeeper Support Enabled
Configure:syntax highlighting of examples disabled
Configure: * * Building regression Tests
Configure:debug tracing Disabled
[Email protected]:~/wyb/gst-rtsp-server/gtk-doc-1.18$
[Email protected]:~/wyb/gst-rtsp-server/gtk-doc-1.18$ make
[Email protected]:~/wyb/gst-rtsp-server/gtk-doc-1.18$ sudo make install
[Email protected]:~/wyb/gst-rtsp-server/gtk-doc-1.18$


3, Installation gst-rtsp-0.10.8
Run autogen.sh after decompression.

[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8$
[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8$./autogen.sh
Fatal:not a git repository (or any parent up to Mount Point/home)
Stopping at filesystem boundary (Git_discovery_across_filesystem not set).
ln:failed to create symbolic link '. Git/hooks/pre-commit ': No such file or directory
+ Check for build tools
Checking for autoconf >= 2.60 ... found 2.69, OK.
Checking for Automake >= 1.10 ... found 1.14.1, OK.
Checking for Autopoint >= 0.17 ... autopoint not found!
You must has Autopoint installed to compile gst-rtsp.
Download the appropriate package for your distribution,
Or get the source tarball at ftp://ftp.gnu.org/pub/gnu/gettext/
Checking for libtoolize >= 1.5.0 ... found 2.4, OK.
Checking for Pkg-config >= 0.8.0 ... found 0.26, OK.

-Get the right tools before proceeding.
-Alternatively, if you ' re sure we ' re wrong, run with--nocheck.
[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8$
[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8$ sudo apt-get install Autopoint
[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8$
[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8$./autogen.sh
......
Checking for GST ... no
Configure:no package ' gstreamer-0.10 ' found
Configure:error:no gstreamer-0.10 >= 0.10.29 (GStreamer) found
Configure failed
[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8$
[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8$ sudo apt-get install Libgstreamer0.10-dev
[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8$ sudo apt-get install Libgstreamer-plugins-base0.10-dev
[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8$
[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8$./autogen.sh
[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8$ make
[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8$ sudo make install


[Email protected]:~/wyb/gst-rtsp-server/gtk-doc-1.18$ sudo apt-get install Xsltproc

Http://zhidao.baidu.com/link?url=UAWMi6em_Vfn0fBsVb-qOwBYQfmO71OEOpPVTXuq3hZDZmrRCOnfyHR4WirN8ReBIkMLkg0tuuPdwpHsyGg4Bq
sudo apt-get install Libgstreamer0.10-dev (you will not find a libgstreamer0.10 error before)
sudo apt-get install Libgstreamer-plugins-base0.10-dev


Install the necessary libraries:
http://blog.csdn.net/liukang325/article/details/45025853
Ubuntu under GStreamer configuration and playback audio and video examples
sudo apt-get install Libgstreamer0.10-dev gstreamer-tools gstreamer0.10-tools Gstreamer0.10-doc
sudo apt-get install gstreamer0.10-plugins-base gstreamer0.10-plugins-good gstreamer0.10-plugins-ugly Gstreamer0.10-plugins-bad Gstreamer0.10-plugins-bad-multiverse

Do not install will be error:
[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8/examples$./test-readme

(lt-test-readme:2894): glib-gobject-critical * *: G_object_ref:assertion ' g_is_object (object) ' failed

* * (lt-test-readme:2894): CRITICAL * *: Gst_rtsp_media_factory_get_auth:assertion ' gst_is_rtsp_media_factory (factory ) ' failed
GLib (GTHREAD-POSIX.C): unexpected error from C library during ' Pthread_mutex_lock ': Invalid argument. Aborting.
Aborted (core dumped)
[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8/examples$


Http://www.linuxidc.com/Linux/2014-12/111000.htm
Installing VLC player on Ubuntu 14.10
sudo apt-get install VLC


4. Test GST-RTSP
The first thing to look at is the Readme in the Doc directory in the GST-RTSP installation package. This document describes the use of GST-RTSP. There are sample programs in the examples directory that have all been compiled.
First, run a simple:
./test-readme

Open another terminal run: VLC rtsp://localhost:8554/test to see the image. 90 's TV station when the screen, good feel.
The compilation to this gst-rtsp-server is complete.

If it is a local area network computer, such as a Windows computer, please use Ubuntu IP address such as: 192.168.11.236. For details, please inquire through ifconfig. LocalHost can only be executed in this machine.
Rtsp://192.168.11.236:8554/test


The sample program has a very handy tool like Gst-lanuch.
$./test_launch "(VIDEOTESTSRC is-live=1!) X264enc! Rtph264pay name=pay0 pt=96) "
This command effect is the same as the. Test-readme.

[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8/examples$./test-launch
Usage:/home/rootroot/wyb/gst-rtsp-server/gst-rtsp-0.10.8/examples/.libs/lt-test-launch <launch line>
Example:/home/rootroot/wyb/gst-rtsp-server/gst-rtsp-0.10.8/examples/.libs/lt-test-launch "(VIDEOTESTSRC!) X264enc! Rtph264pay name=pay0 pt=96) "
[Email protected]:~/wyb/gst-rtsp-server/gst-rtsp-0.10.8/examples$/test-launch] (videotestsrc!) X264enc! Rtph264pay name=pay0 pt=96) "

./test-launch "(Videotestsrc is-live=1! X264enc! Rtph264pay name=pay0 pt=96) "


I directly read the camera (laptop usually comes with a camera, the desktop plug into the USB camera) Video command is it:
$./test-launch "(V4L2SRC!) video/x-raw-yuv,format= ' FourCC ' yuy2,width=640,height=480! Ffmpegcolorspace! X264enc! Rtph264pay name=pay0 pt=96) "
Open VLC rtsp://localhost:8554/test with VLC to successfully see the image.
Rtsp://192.168.11.236:8554/test


Also, GST-RTSP is supported for multiple playback. However, the sample programs Test-readme and Test_launch are tested to support unicast only!



http://download.csdn.net/detail/wb4916/9242663
Gst-rtsp-server Compiling test 20151105 0949

Gst-rtsp-server Compile Test

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.