Blame README

Packit 0652a1
GStreamer 1.16.x stable series
Packit 0652a1
Packit 0652a1
WHAT IT IS
Packit 0652a1
----------
Packit 0652a1
Packit 0652a1
This is GStreamer, a framework for streaming media.
Packit 0652a1
Packit 0652a1
WHERE TO START
Packit 0652a1
--------------
Packit 0652a1
Packit 0652a1
We have a website at
Packit 0652a1
http://gstreamer.freedesktop.org/
Packit 0652a1
Packit 0652a1
You should start by going through our FAQ at
Packit 0652a1
http://gstreamer.freedesktop.org/data/doc/gstreamer/head/faq/html/
Packit 0652a1
Packit 0652a1
There is more documentation; go to
Packit 0652a1
http://gstreamer.freedesktop.org/documentation
Packit 0652a1
Packit 0652a1
You can subscribe to our mailing lists; see the website for details.
Packit 0652a1
Packit 0652a1
We track bugs in GNOME's bugzilla; see the website for details.
Packit 0652a1
Packit 0652a1
You can join us on IRC - #gstreamer on irc.freenode.org
Packit 0652a1
Packit 0652a1
GStreamer 1.0 series
Packit 0652a1
--------------------
Packit 0652a1
Packit 0652a1
Starring
Packit 0652a1
Packit 0652a1
  GSTREAMER
Packit 0652a1
Packit 0652a1
The core around which all other modules revolve.  Base functionality and
Packit 0652a1
libraries, some essential elements, documentation, and testing.
Packit 0652a1
Packit 0652a1
  BASE
Packit 0652a1
Packit 0652a1
A well-groomed and well-maintained collection of GStreamer plug-ins and
Packit 0652a1
elements, spanning the range of possible types of elements one would want
Packit 0652a1
to write for GStreamer.  
Packit 0652a1
Packit 0652a1
And introducing, for the first time ever, on the development screen ...
Packit 0652a1
Packit 0652a1
  THE GOOD
Packit 0652a1
Packit 0652a1
 --- "Such ingratitude.  After all the times I've saved your life."
Packit 0652a1
Packit 0652a1
A collection of plug-ins you'd want to have right next to you on the
Packit 0652a1
battlefield.  Shooting sharp and making no mistakes, these plug-ins have it
Packit 0652a1
all: good looks, good code, and good licensing.  Documented and dressed up
Packit 0652a1
in tests.  If you're looking for a role model to base your own plug-in on,
Packit 0652a1
here it is.
Packit 0652a1
Packit 0652a1
If you find a plot hole or a badly lip-synced line of code in them,
Packit 0652a1
let us know - it is a matter of honour for us to ensure Blondie doesn't look
Packit 0652a1
like he's been walking 100 miles through the desert without water.
Packit 0652a1
Packit 0652a1
  THE UGLY
Packit 0652a1
Packit 0652a1
  --- "When you have to shoot, shoot.  Don't talk."
Packit 0652a1
Packit 0652a1
There are times when the world needs a color between black and white.
Packit 0652a1
Quality code to match the good's, but two-timing, backstabbing and ready to
Packit 0652a1
sell your freedom down the river.  These plug-ins might have a patent noose
Packit 0652a1
around their neck, or a lock-up license, or any other problem that makes you
Packit 0652a1
think twice about shipping them.
Packit 0652a1
Packit 0652a1
We don't call them ugly because we like them less.  Does a mother love her
Packit 0652a1
son less because he's not as pretty as the other ones ? No  - she commends
Packit 0652a1
him on his great personality.  These plug-ins are the life of the party.
Packit 0652a1
And we'll still step in and set them straight if you report any unacceptable
Packit 0652a1
behaviour - because there are two kinds of people in the world, my friend:
Packit 0652a1
those with a rope around their neck and the people who do the cutting.
Packit 0652a1
Packit 0652a1
  THE BAD
Packit 0652a1
Packit 0652a1
  --- "That an accusation?"
Packit 0652a1
Packit 0652a1
No perfectly groomed moustache or any amount of fine clothing is going to
Packit 0652a1
cover up the truth - these plug-ins are Bad with a capital B. 
Packit 0652a1
They look fine on the outside, and might even appear to get the job done, but
Packit 0652a1
at the end of the day they're a black sheep. Without a golden-haired angel
Packit 0652a1
to watch over them, they'll probably land in an unmarked grave at the final
Packit 0652a1
showdown.
Packit 0652a1
Packit 0652a1
Don't bug us about their quality - exercise your Free Software rights,
Packit 0652a1
patch up the offender and send us the patch on the fastest steed you can
Packit 0652a1
steal from the Confederates. Because you see, in this world, there's two
Packit 0652a1
kinds of people, my friend: those with loaded guns and those who dig.
Packit 0652a1
You dig.
Packit 0652a1
Packit 0652a1
The Lowdown
Packit 0652a1
-----------
Packit 0652a1
Packit 0652a1
  --- "I've never seen so many plug-ins wasted so badly."
Packit 0652a1
Packit 0652a1
GStreamer Plug-ins has grown so big that it's hard to separate the wheat from
Packit 0652a1
the chaff.  Also, distributors have brought up issues about the legal status
Packit 0652a1
of some of the plug-ins we ship.  To remedy this, we've divided the previous
Packit 0652a1
set of available plug-ins into four modules:
Packit 0652a1
Packit 0652a1
- gst-plugins-base: a small and fixed set of plug-ins, covering a wide range
Packit 0652a1
  of possible types of elements; these are continuously kept up-to-date
Packit 0652a1
  with any core changes during the development series.
Packit 0652a1
Packit 0652a1
  - We believe distributors can safely ship these plug-ins.
Packit 0652a1
  - People writing elements should base their code on these elements.
Packit 0652a1
  - These elements come with examples, documentation, and regression tests.
Packit 0652a1
Packit 0652a1
- gst-plugins-good: a set of plug-ins that we consider to have good quality
Packit 0652a1
  code, correct functionality, our preferred license (LGPL for the plug-in
Packit 0652a1
  code, LGPL or LGPL-compatible for the supporting library).
Packit 0652a1
Packit 0652a1
  - We believe distributors can safely ship these plug-ins.
Packit 0652a1
  - People writing elements should base their code on these elements.
Packit 0652a1
 
Packit 0652a1
- gst-plugins-ugly: a set of plug-ins that have good quality and correct
Packit 0652a1
  functionality, but distributing them might pose problems.  The license
Packit 0652a1
  on either the plug-ins or the supporting libraries might not be how we'd
Packit 0652a1
  like. The code might be widely known to present patent problems.
Packit 0652a1
Packit 0652a1
  - Distributors should check if they want/can ship these plug-ins.
Packit 0652a1
  - People writing elements should base their code on these elements.
Packit 0652a1
Packit 0652a1
- gst-plugins-bad: a set of plug-ins that aren't up to par compared to the
Packit 0652a1
  rest.  They might be close to being good quality, but they're missing
Packit 0652a1
  something - be it a good code review, some documentation, a set of tests,
Packit 0652a1
  a real live maintainer, or some actual wide use.
Packit 0652a1
  If the blanks are filled in they might be upgraded to become part of
Packit 0652a1
  either gst-plugins-good or gst-plugins-ugly, depending on the other factors.
Packit 0652a1
Packit 0652a1
  - If the plug-ins break, you can't complain - instead, you can fix the
Packit 0652a1
    problem and send us a patch, or bribe someone into fixing them for you.
Packit 0652a1
  - New contributors can start here for things to work on.
Packit 0652a1
Packit 0652a1
PLATFORMS
Packit 0652a1
---------
Packit 0652a1
Packit 0652a1
- Linux is of course fully supported
Packit 0652a1
- FreeBSD is reported to work; other BSDs should work too
Packit 0652a1
- Solaris is reported to work; a specific sunaudiosink plugin has been written
Packit 0652a1
- MacOSX works, binary 1.x packages can be built using the cerbero build tool
Packit 0652a1
- Windows works; binary 1.x packages can be built using the cerbero build tool
Packit 0652a1
  - MSys/MinGW builds
Packit 0652a1
  - Microsoft Visual Studio builds are not yet available or supported
Packit 0652a1
- Android works, binary 1.x packages can be built using the cerbero build tool
Packit 0652a1
- iOS works
Packit 0652a1
Packit 0652a1
INSTALLING FROM PACKAGES
Packit 0652a1
------------------------
Packit 0652a1
Packit 0652a1
You should always prefer installing from packages first.  GStreamer is
Packit 0652a1
well-maintained for a number of distributions, including Fedora, Debian,
Packit 0652a1
Ubuntu, Mandrake, Gentoo, ...
Packit 0652a1
Packit 0652a1
Only in cases where you:
Packit 0652a1
- want to hack on GStreamer
Packit 0652a1
- want to verify that a bug has been fixed
Packit 0652a1
- do not have a sane distribution
Packit 0652a1
should you choose to build from source tarballs or git.
Packit 0652a1
Packit 0652a1
Find more information about the various packages at
Packit 0652a1
http://gstreamer.freedesktop.org/download/
Packit 0652a1
Packit 0652a1
COMPILING FROM SOURCE TARBALLS
Packit 0652a1
------------------------------
Packit 0652a1
Packit 0652a1
- again, make sure that you really need to install from source !
Packit 0652a1
  If GStreamer is one of your first projects ever that you build from source,
Packit 0652a1
  consider taking on an easier project.
Packit 0652a1
Packit 0652a1
- check output of ./configure --help to see if any options apply to you
Packit 0652a1
- run
Packit 0652a1
  ./configure
Packit 0652a1
  make
Packit 0652a1
Packit 0652a1
  to build GStreamer.
Packit 0652a1
- if you want to install it (not required, but what you usually want to do), run
Packit 0652a1
  make install
Packit 0652a1
Packit 0652a1
- try out a simple test:
Packit 0652a1
  gst-launch -v fakesrc num_buffers=5 ! fakesink
Packit 0652a1
  (If you didn't install GStreamer, prefix gst-launch with tools/)
Packit 0652a1
Packit 0652a1
  If it outputs a bunch of messages from fakesrc and fakesink, everything is
Packit 0652a1
  ok.
Packit 0652a1
Packit 0652a1
  If it did not work, keep in mind that you might need to adjust the
Packit 0652a1
  PATH and/or LD_LIBRARY_PATH environment variables to make the system
Packit 0652a1
  find GStreamer in the prefix where you installed (by default that is /usr/local).
Packit 0652a1
Packit 0652a1
- After this, you're ready to install gst-plugins, which will provide the
Packit 0652a1
  functionality you're probably looking for by now, so go on and read
Packit 0652a1
  that README.
Packit 0652a1
Packit 0652a1
COMPILING FROM GIT
Packit 0652a1
------------------
Packit 0652a1
Packit 0652a1
When building from git sources, you will need to run autogen.sh to generate
Packit 0652a1
the build system files.
Packit 0652a1
Packit 0652a1
You will need a set of additional tools typical for building from git,
Packit 0652a1
including:
Packit 0652a1
- autoconf
Packit 0652a1
- automake
Packit 0652a1
- libtool
Packit 0652a1
Packit 0652a1
autogen.sh will check for recent enough versions and complain if you don't have
Packit 0652a1
them.  You can also specify specific versions of automake and autoconf with
Packit 0652a1
--with-automake and --with-autoconf
Packit 0652a1
Packit 0652a1
Check autogen.sh options by running autogen.sh --help
Packit 0652a1
Packit 0652a1
autogen.sh can pass on arguments to configure
Packit 0652a1
Packit 0652a1
When you have done this once, you can use autoregen.sh to re-autogen with
Packit 0652a1
the last passed options as a handy shortcut.  Use it.
Packit 0652a1
Packit 0652a1
After the autogen.sh stage, you can follow the directions listed in
Packit 0652a1
"COMPILING FROM SOURCE"
Packit 0652a1
Packit 0652a1
You can also run your whole git stack uninstalled in your home directory,
Packit 0652a1
so that you can quickly test changes without affecting your system setup or
Packit 0652a1
interfering with GStreamer installed from packages.  Many GStreamer developers
Packit 0652a1
use an uninstalled setup for their work.
Packit 0652a1
Packit 0652a1
There is a 'create-uninstalled-setup.sh' script in
Packit 0652a1
Packit 0652a1
  http://cgit.freedesktop.org/gstreamer/gstreamer/tree/scripts/
Packit 0652a1
Packit 0652a1
to easily create an uninstalled setup from scratch.
Packit 0652a1
Packit 0652a1
Packit 0652a1
PLUG-IN DEPENDENCIES AND LICENSES
Packit 0652a1
---------------------------------
Packit 0652a1
Packit 0652a1
GStreamer is developed under the terms of the LGPL (see LICENSE file for
Packit 0652a1
details). Some of our plug-ins however rely on libraries which are available
Packit 0652a1
under other licenses. This means that if you are distributing an application
Packit 0652a1
which has a non-GPL compatible license (for instance a closed-source
Packit 0652a1
application) with GStreamer, you have to make sure not to distribute GPL-linked
Packit 0652a1
plug-ins.
Packit 0652a1
Packit 0652a1
When using GPL-linked plug-ins, GStreamer is for all practical reasons
Packit 0652a1
under the GPL itself.
Packit 0652a1
Packit 0652a1
HISTORY
Packit 0652a1
-------
Packit 0652a1
Packit 0652a1
The fundamental design comes from the video pipeline at Oregon Graduate
Packit 0652a1
Institute, as well as some ideas from DirectMedia.  It's based on plug-ins that
Packit 0652a1
will provide the various codec and other functionality.  The interface
Packit 0652a1
hopefully is generic enough for various companies (ahem, Apple) to release
Packit 0652a1
binary codecs for Linux, until such time as they get a clue and release the
Packit 0652a1
source.