![Tutorial Tutorial](/uploads/1/2/5/0/125002140/196330133.png)
Install & build gstreamer from git. GitHub Gist: instantly share code, notes, and snippets. Barcode scanner based on GStreamer, zbar, and gtk. Donate to the Python Software Foundation or Purchase a PyCharm License to Benefit the PSF!
gstreamer-build.sh
#!/rubbish bin/bash -debugger |
exportMAKEFLAGS='-j 1' |
established-elizabeth |
Part='1.10' |
ifgrep -queen BCM270 /proc/cpuinfo;after that |
mirror'RPI BUILD!' |
RPI='1' |
fi |
-n'$1'amp;amp;Department=$1 |
#Generate a record file of the construct as properly as showing the construct on the tty as it runs |
execgt;gt;(tee buildgstreamer.journal) |
professional2gt;amp;1 |
#Up-date and Update the Pi, normally the construct may fail expected to inconsistencies |
grep -queen BCM270 /proc/cpuinfoamp;amp;sudo apt-get upgradeamp;amp;sudo apt-get update -y -force-yes |
#Obtain the required libraries |
sudo apt-get install -con -force-yes build-essential autotools-dev automake autoconf |
libtool autopoint libxml2-dev zlib1g-dev libglib2.0-dev |
pkg-config bison bend python3 git gtk-doc-tools libasound2-dev |
libgudev-1.0-dev libxt-dev libvorbis-dev libcdparanoia-dev |
libpango1.0-dev libtheora-dev libvisual-0.4-dev iso-codes |
libgtk-3-dev libraw1394-dev libiec61883-dev libavc1394-dev |
libv4l-dev libcairo2-dev libcaca-dev libspeex-dev libpng-dev |
libshout3-dev libjpeg-dev libaa1-dev libflac-dev libdv4-dev |
libtag1-dev libwavpack-dev libpulse-dev libsoup2.4-dev libbz2-dev |
libcdaudio-dev libdc1394-22-dev ladspa-sdk libass-dev |
libcurl4-gnutls-dev libdca-dev libdirac-dev libdvdnav-dev |
libexempi-dev libexif-dev libfaad-dev libgme-dev libgsm1-dev |
libiptcdata0-dev libkate-dev libmimic-dev libmms-dev |
libmodplug-dev libmpcdec-dev libofa0-dev libopus-dev |
librsvg2-dev librtmp-dev libschroedinger-dev libslv2-dev |
libsndfile1-dev libsoundtouch-dev libspandsp-dev libx11-dev |
libxvidcore-dev libzbar-dev libzvbi-dev liba52-0.7.4-dev |
libcdio-dev libdvdread-dev libmad0-dev libmp3lame-dev |
libmpeg2-4-dev libopencore-amrnb-dev libopencore-amrwb-dev |
libsidplay1-dev libtwolame-dev libx264-dev libusb-1.0 |
python-gi-dev yasm python3-dev libgirepository1.0-dev |
#get the repos if they're not already right now there |
compact disc$House |
!-dsrcamp;amp;mkdir src |
compact discsrc |
!-dgstreameramp;amp;mkdir gstreamer |
compact discgstreamer |
#get repos if they are usually not presently there however |
!-dgstreameramp;amp;git duplicate git://anongit.freedesktop.org/git/gstreamer/gstreamer |
!-dgst-plugins-baseamp;amp;git duplicate git://anongit.freedesktop.org/git/gstreamer/gst-plugins-base |
!-dgst-plugins-goodamp;amp;git duplicate git://anongit.freedesktop.org/git/gstreamer/gst-plugins-good |
!-dgst-plugins-badamp;amp;git duplicate git://anongit.freedesktop.org/git/gstreamer/gst-plugins-bad |
!-dgst-plugins-uglyamp;amp;git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-ugly |
!-dgst-libavamp;amp;git clone git://anongit.freedesktop.org/git/gstreamer/gst-libav |
!-dgst-omxamp;amp;git clone git://anongit.freedesktop.org/git/gstreamer/gst-omx |
!-dgst-pythonamp;amp;git clone git://anongit.freedesktop.org/git/gstreamer/gst-python |
!-dgst-rtsp-serveramp;amp;git clone git://anongit.freedesktop.org/gstreamer/gst-rtsp-server |
if$RPI-eq1;after that |
!-dgst-rpicamsrcamp;amp;git duplicate https://github.com/thaytan/gst-rpicamsrc.git |
else |
!$RPIamp;amp;!-dgstreamer-vaapiamp;amp;git clone git://gitorious.org/vaapi/gstreamer-vaapi.git |
fi |
exportLDLIBRARYPATH=/usr/regional/lib/ |
#checkout part (default=grasp) and build amp; install |
cdgstreamer |
git checkout -t origin/$BRANCHtrue |
sudo make uninstallaccurate |
git pull |
./autogen.sh -disable-gtk-doc |
create |
sudo make install |
compact disc. |
cdgst-plugins-base |
git checkout -capital t origin/$BRANCHaccurate |
sudo make uninstallgenuine |
git draw |
./autogen.sh -disable-gtk-doc |
create |
sudo make install |
cd. |
compact discgst-plugins-good |
git checkout -t beginning/$BRANCHcorrect |
sudo create uninstalltrue |
git draw |
./autogen.sh -disable-gtk-doc |
make |
sudo create install |
cd. |
compact discgst-plugins-ugly |
git checkout -capital t origin/$Departmentgenuine |
sudo make uninstalltrue |
git pull |
./autogen.sh -disable-gtk-doc |
make |
sudo make install |
compact disc. |
cdgst-libav |
git checkout -t beginning/$Partcorrect |
sudo create uninstallcorrect |
git pull |
./autogen.sh -disable-gtk-doc |
create |
sudo make install |
cd. |
compact discgst-plugins-bad |
git checkout -t origin/$BRANCHaccurate |
sudo create uninstallaccurate |
git pull |
#some extra flags on rpi |
if$RPI-eq1;after that |
moveLDFLAGS='-L/opt/vc/lib' |
CFLAGS='-I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcshost/linux' |
CPPFLAGS='-I/opt/vc/consist of -I/opt/vc/consist of/interface/vcos/pthreads -I/opt/vc/include/interface/vmcshost/linux' |
./autogen.sh -disable-gtk-doc -disable-examples -disable-x11 -disable-glx -disable-glx -disable-opengl |
make CFLAGS+='-Wno-error -Wno-redundant-decls -I/opt/vc/include -I/opt/vc/include/interface/vcos/pthreads -I/choose/vc/include/interface/vmcshost/linux' |
CPPFLAGS+='-Wno-error -Wno-redundant-decls -I/opt/vc/include -I/opt/vc/consist of/interface/vcos/pthreads -I/opt/vc/include/interface/vmcshost/linux' |
CXXFLAGS+='-Wno-redundant-decls'LDFLAGS+='-L/opt/vc/lib' |
else |
./autogen.sh -disable-gtk-doc |
create CFLAGS+='-Wno-error -Wno-redundant-decls'CXXFLAGS+='-Wno-redundant-decls' |
fi |
sudo make install |
compact disc. |
#python bindings |
cdgst-python |
git checkout -t origins/$Partreal |
moveLDLIBRARYPATH=/usr/nearby/lib/ |
sudo make uninstallreal |
git draw |
PYTHON=/usr/rubbish bin/python3./autogen.sh |
make |
sudo make install |
cd. |
#omx assistance |
cdgst-omx |
git checkout -capital t origin/$Departmentcorrect |
sudo create uninstallreal |
git draw |
if$RPI-eq1;after that |
moveLDFLAGS='-L/opt/vc/lib' |
CFLAGS='-I/opt/vc/include -I/opt/vc/consist of/IL -I/opt/vc/consist of/interface/vcos/pthreads -I/choose/vc/include/interface/vmcshost/linux -I/opt/vc/include/IL' |
CPPFLAGS='-I/opt/vc/include -I/opt/vc/consist of/IL -I/opt/vc/include/interface/vcos/pthreads -I/opt/vc/include/interface/vmcshost/linux -I/opt/vc/include/IL' |
./autogen.sh -disable-gtk-doc -with-omx-target=rpi |
#repair for glcontext mistakes and openexr redundant declarations |
make CFLAGS+='-Wno-error -Wno-redundant-decls'LDFLAGS+='-L/opt/vc/lib -lGLESv2 -lEGL -lbcmhost' |
else |
./autogen.sh -disable-gtk-doc -with-omx-target=bellagio |
#fix for glcontext errors and openexr redundant declarations |
create CFLAGS+='-Wno-error -Wno-redundant-decls' |
fi |
sudo create install |
cd. |
#VAAPI, not really for RPI |
if$RPI-ne1;then |
compact discgstreamer-vaapi |
sudo create uninstallaccurate |
git draw |
./autogen.sh |
create |
sudo create install |
cd. |
fi |
#Gstreamer Raspberry Pi Surveillance camera Wrapper |
if$RPI-eq1;after that |
compact discgst-rpicamsrc |
sudo make uninstallgenuine |
git draw |
./autogen.sh -prefix=/usr -libdir=/usr/lib/arm-linux-gnueabihf/ |
make |
sudo create install |
compact disc. |
fi |
#Gstreamer RTSP Machine |
compact discgst-rtsp-server |
git checkout -capital t beginning/$Partcorrect |
sudo create uninstallgenuine |
git draw |
./autogen.sh -disable-gtk-doc |
make |
sudo make install |
cd. |
![Gstreamer Gtk Python Gstreamer Gtk Python](/uploads/1/2/5/0/125002140/265569409.png)
Indication up for freeto sign up for this conversation on GitHub. Already have got an accounts? Sign in to remark