Skip to content

Instantly share code, notes, and snippets.

@tuanml
Forked from jackersson/build-gstreamer.sh
Created December 22, 2018 16:14
Show Gist options
  • Select an option

  • Save tuanml/7bb980f850c92f973f02d64d99c8c5bd to your computer and use it in GitHub Desktop.

Select an option

Save tuanml/7bb980f850c92f973f02d64d99c8c5bd to your computer and use it in GitHub Desktop.

Revisions

  1. @jackersson jackersson revised this gist Oct 1, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions build-gstreamer.sh
    Original file line number Diff line number Diff line change
    @@ -65,6 +65,8 @@ make
    sudo make install
    cd ..

    # export PYTHON=/usr/bin/python3 (Specify required python version)

    cd gst-python
    git checkout $BRANCH
    ./autogen.sh --disable-gtk-doc --noconfigure
  2. @jackersson jackersson revised this gist Aug 31, 2018. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions build-gstreamer.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    #!/bin/bash

    # Set your target branch
    BRANCH="1.14.2"

  3. @jackersson jackersson revised this gist Aug 16, 2018. 1 changed file with 21 additions and 5 deletions.
    26 changes: 21 additions & 5 deletions build-gstreamer.sh
    Original file line number Diff line number Diff line change
    @@ -1,18 +1,26 @@
    # Set your target branch
    BRANCH="1.12.5"
    BRANCH="1.14.2"

    exec > >(tee build-gstreamer.log)
    exec 2>&1

    [ ! -d orc ] && git clone git://anongit.freedesktop.org/git/gstreamer/orc
    [ ! -d gstreamer ] && git clone git://anongit.freedesktop.org/git/gstreamer/gstreamer
    [ ! -d gst-plugins-base ] && git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-base
    [ ! -d gst-plugins-good ] && git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-good
    [ ! -d gst-plugins-bad ] && git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-bad
    [ ! -d gst-libav ] && git clone git://anongit.freedesktop.org/git/gstreamer/gst-libav
    [ ! -d gst-plugins-ugly ] && git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-ugly
    [ ! -d gst-python ] && git clone git://anongit.freedesktop.org/git/gstreamer/gst-python

    export LD_LIBRARY_PATH=/usr/local/lib/

    cd orc
    ./autogen.sh --disable-gtk-doc
    make
    sudo make install
    cd ..

    cd gstreamer
    git checkout $BRANCH
    ./autogen.sh --disable-gtk-doc
    @@ -27,6 +35,13 @@ make
    sudo make install
    cd ..

    cd gst-libav
    git checkout $BRANCH
    ./autogen.sh --disable-gtk-doc --enable-orc
    make
    sudo make install
    cd ..

    cd gst-plugins-good
    git checkout $BRANCH
    ./autogen.sh --disable-gtk-doc
    @@ -41,20 +56,21 @@ make
    sudo make install
    cd ..


    cd gst-plugins-ugly
    git checkout $BRANCH
    ./autogen.sh --disable-gtk-doc --enable-orc
    make
    sudo make install
    cd ..


    cd gst-libav
    cd gst-python
    git checkout $BRANCH
    ./autogen.sh --disable-gtk-doc --enable-orc
    ./autogen.sh --disable-gtk-doc --noconfigure
    # with-libpython-dir -> location of libpython*.so
    ./configure --with-libpython-dir="/usr/lib/x86_64-linux-gnu"
    make
    sudo make install
    cd ..


    sudo ldconfig
  4. @jackersson jackersson revised this gist Apr 4, 2018. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions build-gstreamer.sh
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,4 @@
    # Set your target branch
    BRANCH="1.12.5"

    exec > >(tee build-gstreamer.log)
  5. @jackersson jackersson revised this gist Apr 4, 2018. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions build-gstreamer.sh
    Original file line number Diff line number Diff line change
    @@ -1,8 +1,6 @@
    BRANCH="1.12.5"

    # [ -n "$1" ] && BRANCH=$1

    exec > >(tee build_gstreamer.log)
    exec > >(tee build-gstreamer.log)
    exec 2>&1

    [ ! -d gstreamer ] && git clone git://anongit.freedesktop.org/git/gstreamer/gstreamer
  6. @jackersson jackersson created this gist Apr 4, 2018.
    61 changes: 61 additions & 0 deletions build-gstreamer.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,61 @@
    BRANCH="1.12.5"

    # [ -n "$1" ] && BRANCH=$1

    exec > >(tee build_gstreamer.log)
    exec 2>&1

    [ ! -d gstreamer ] && git clone git://anongit.freedesktop.org/git/gstreamer/gstreamer
    [ ! -d gst-plugins-base ] && git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-base
    [ ! -d gst-plugins-good ] && git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-good
    [ ! -d gst-plugins-bad ] && git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-bad
    [ ! -d gst-libav ] && git clone git://anongit.freedesktop.org/git/gstreamer/gst-libav
    [ ! -d gst-plugins-ugly ] && git clone git://anongit.freedesktop.org/git/gstreamer/gst-plugins-ugly

    export LD_LIBRARY_PATH=/usr/local/lib/

    cd gstreamer
    git checkout $BRANCH
    ./autogen.sh --disable-gtk-doc
    make
    sudo make install
    cd ..

    cd gst-plugins-base
    git checkout $BRANCH
    ./autogen.sh --disable-gtk-doc
    make
    sudo make install
    cd ..

    cd gst-plugins-good
    git checkout $BRANCH
    ./autogen.sh --disable-gtk-doc
    make
    sudo make install
    cd ..

    cd gst-plugins-bad
    git checkout $BRANCH
    ./autogen.sh --disable-gtk-doc --enable-orc
    make
    sudo make install
    cd ..


    cd gst-plugins-ugly
    git checkout $BRANCH
    ./autogen.sh --disable-gtk-doc --enable-orc
    make
    sudo make install
    cd ..


    cd gst-libav
    git checkout $BRANCH
    ./autogen.sh --disable-gtk-doc --enable-orc
    make
    sudo make install
    cd ..

    sudo ldconfig