Giter Club home page Giter Club logo

build-gstreamer-raspberry-pi-3's Introduction

The default Gstreamer version on Raspberry Pi 3 is 1.4.4.

This is guide to build gstreamer from scratch. Building takes more 1h.

Btw, I already built some version, so you can extract it to use.

Note

From gst-plugin-bad v1.3.1, glimagesink replaces eglglessink, and glimagesink does not automatically scale video to fit screen

Build from scratch

1. Uninstall default gstreamer 1.0

sudo apt-get remove gstreamer1.0
sudo apt-get remove gstreamer-1.0

2. Build

chmod +x gstreamer-build.sh
./gstreamer-build.sh

After building success:

Header is in /usr/local/inlude/gstreamer-1.0

Lib is in /usr/local/lib

3. Config

Copy header

sudo cp -r /usr/local/include/gstreamer-1.0 /usr/include/

Note:

In some version gstconfig.h is not in /usr/local/include/gstreamer-1.0/gst/ but in /usr/local/lib/gstreamer-1.0/include/gst.

Must copy it to /usr/include/gstreamer-1.0/gst/

To link lib

sudo nano /etc/ld.so.conf

Add

include /usr/local/lib

Link

sudo ldconfig

Using prebuilt

1. Delete old build

sudo rm -rf /usr/local/include/gstreamer-1.0
sudo rm -rf  /usr/include/gstreamer-1.0

# Remove only gstreamer, in my case it has only gstreamer lib
sudo rm -rf /usr/local/lib/*

2. Extract version you want & copy into file system

sudo cp -r bin/* /usr/local/bin
sudo cp -r gstreamer-1.0 /usr/local/include
sudo cp -r lib/* /usr/local/lib

3. Build config (Same build above, if not)

4. Check

gst-launch-1.0 --version

Using eglglesink in later version

1. Copy

After install later version

cd gstreamer-1.2.4
sudo cp -r gstreamer-1.0/gst/egl/ /usr/include/gstreamer-1.0
sudo cp -r lib/*gl* /usr/local/lib/
sudo cp lib/gstreamer-1.0/libgsteglglessink.* /usr/local/lib/gstreamer-1.0/

build-gstreamer-raspberry-pi-3's People

Contributors

cxphong avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

build-gstreamer-raspberry-pi-3's Issues

How about the support for libsoup?

For example the following command fails due to lack of souphttpsrc support

./gst-launch-1.0 souphttpsrc location=http://yt-dash-mse-test.commondatastorage.googleapis.com/media/car-20120827-manifest.mpd ! dashdemux name=d d.video_00 ! queue ! qtde
mux ! h264parse ! avdec_h264 ! videoconvert ! videoscale ! ximagesink d.audio_00 ! queue ! qtdemux ! aacparse ! avdec_aac ! audioconvert ! audioresample ! autoaudiosink
ERROR: pipeline could not be constructed: no element "souphttpsrc".

schematic of the pi 3

do you have the wifi module schematic of the raspberry pi 3 ? or the full version schematic ?

1.14.x?

GStreamer 1.14 has built in support for WebRTC. I'd sure like to experiment with this on Rpi 3.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.