[ab4fdfc] | 1 | <?xml version="1.0" encoding="UTF-8"?>
|
---|
[09396b5] | 2 | <!DOCTYPE sect1 PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN"
|
---|
| 3 | "http://www.oasis-open.org/docbook/xml/4.5/docbookx.dtd" [
|
---|
| 4 | <!ENTITY % general-entities SYSTEM "../../general.ent">
|
---|
| 5 | %general-entities;
|
---|
| 6 |
|
---|
| 7 | <!ENTITY gst10-libav-download-http "&gstreamer-dl;/gst-libav/gst-libav-&gst10-libav-version;.tar.xz">
|
---|
| 8 | <!ENTITY gst10-libav-download-ftp " ">
|
---|
[966dfd9b] | 9 | <!ENTITY gst10-libav-md5sum "b837f86e94071fa79126bb4ec0f936ea">
|
---|
| 10 | <!ENTITY gst10-libav-size "212 KB">
|
---|
[c1257873] | 11 | <!ENTITY gst10-libav-buildsize "14 MB">
|
---|
[3389fc3] | 12 | <!ENTITY gst10-libav-time "less than 0.1 SBU">
|
---|
[09396b5] | 13 | ]>
|
---|
| 14 |
|
---|
| 15 | <sect1 id="gst10-libav" xreflabel="gst-libav-&gst10-libav-version;">
|
---|
| 16 | <?dbhtml filename="gst10-libav.html"?>
|
---|
| 17 |
|
---|
| 18 |
|
---|
| 19 | <title>gst-libav-&gst10-libav-version;</title>
|
---|
| 20 |
|
---|
| 21 | <indexterm zone="gst10-libav">
|
---|
| 22 | <primary sortas="a-gst-libav">gst-libav</primary>
|
---|
| 23 | </indexterm>
|
---|
| 24 |
|
---|
| 25 | <sect2 role="package">
|
---|
| 26 | <title>Introduction to GStreamer Libav</title>
|
---|
| 27 |
|
---|
| 28 | <para>
|
---|
| 29 | The <application>GStreamer Libav</application> package contains
|
---|
| 30 | <application>GStreamer</application> plugins for
|
---|
| 31 | <application>Libav</application> (a fork of
|
---|
| 32 | <application>FFmpeg</application>).
|
---|
| 33 | </para>
|
---|
| 34 |
|
---|
[0be837af] | 35 | &lfs122_checked;
|
---|
[09396b5] | 36 |
|
---|
| 37 | <bridgehead renderas="sect3">Package Information</bridgehead>
|
---|
| 38 | <itemizedlist spacing="compact">
|
---|
| 39 | <listitem>
|
---|
| 40 | <para>
|
---|
| 41 | Download (HTTP): <ulink url="&gst10-libav-download-http;"/>
|
---|
| 42 | </para>
|
---|
| 43 | </listitem>
|
---|
| 44 | <listitem>
|
---|
| 45 | <para>
|
---|
| 46 | Download (FTP): <ulink url="&gst10-libav-download-ftp;"/>
|
---|
| 47 | </para>
|
---|
| 48 | </listitem>
|
---|
| 49 | <listitem>
|
---|
| 50 | <para>
|
---|
| 51 | Download MD5 sum: &gst10-libav-md5sum;
|
---|
| 52 | </para>
|
---|
| 53 | </listitem>
|
---|
| 54 | <listitem>
|
---|
| 55 | <para>
|
---|
| 56 | Download size: &gst10-libav-size;
|
---|
| 57 | </para>
|
---|
| 58 | </listitem>
|
---|
| 59 | <listitem>
|
---|
| 60 | <para>
|
---|
| 61 | Estimated disk space required: &gst10-libav-buildsize;
|
---|
| 62 | </para>
|
---|
| 63 | </listitem>
|
---|
| 64 | <listitem>
|
---|
| 65 | <para>
|
---|
| 66 | Estimated build time: &gst10-libav-time;
|
---|
| 67 | </para>
|
---|
| 68 | </listitem>
|
---|
| 69 | </itemizedlist>
|
---|
| 70 |
|
---|
| 71 | <bridgehead renderas="sect3">GStreamer Libav Dependencies</bridgehead>
|
---|
| 72 |
|
---|
| 73 | <bridgehead renderas="sect4">Required</bridgehead>
|
---|
| 74 | <para role="required">
|
---|
[4ef9eb3] | 75 | <xref linkend="ffmpeg"/> and
|
---|
[897d0fa] | 76 | <xref linkend="gst10-plugins-base"/>
|
---|
| 77 | </para>
|
---|
| 78 |
|
---|
| 79 | <bridgehead renderas="sect4">Recommended</bridgehead>
|
---|
| 80 | <para role="recommended">
|
---|
[09396b5] | 81 | <xref linkend="yasm"/>
|
---|
| 82 | </para>
|
---|
| 83 |
|
---|
| 84 | <bridgehead renderas="sect4">Optional</bridgehead>
|
---|
| 85 | <para role="optional">
|
---|
[d78e102e] | 86 | <ulink url="https://pypi.org/project/hotdoc/">hotdoc</ulink>
|
---|
[09396b5] | 87 | </para>
|
---|
| 88 |
|
---|
| 89 | </sect2>
|
---|
| 90 |
|
---|
| 91 | <sect2 role="installation">
|
---|
| 92 | <title>Installation of GStreamer Libav</title>
|
---|
[d78e102e] | 93 |
|
---|
[c189a02] | 94 | <!-- Appear to be fixed in version 1.24.6.
|
---|
[1fc1afb] | 95 | <para>
|
---|
| 96 | First, fix some usage of deprecated APIs that causes a build failure:
|
---|
| 97 | </para>
|
---|
| 98 |
|
---|
| 99 | <screen><userinput remap="pre">sed -e '1375,1430d' \
|
---|
| 100 | -e '2058d' \
|
---|
| 101 | -e '2105,2140d' \
|
---|
| 102 | -e '2217,2221d' \
|
---|
| 103 | -i ext/libav/gstavdemux.c &&
|
---|
[24f179da] | 104 |
|
---|
| 105 | sed -i '2122a if (!gst_element_register (plugin, type_name, rank, type)) {' ext/libav/gstavdemux.c &&
|
---|
| 106 |
|
---|
| 107 | sed -i '272 s/gst_ffmpegdata_write/(void*)&/' ext/libav/gstavprotocol.c
|
---|
| 108 | </userinput></screen>
|
---|
[c189a02] | 109 | -->
|
---|
[09396b5] | 110 | <para>
|
---|
| 111 | Install <application>GStreamer Libav</application> by running the following
|
---|
| 112 | commands:
|
---|
| 113 | </para>
|
---|
| 114 |
|
---|
[0c61cb89] | 115 | <screen><userinput>mkdir build &&
|
---|
| 116 | cd build &&
|
---|
| 117 |
|
---|
[5ce2b5a] | 118 | meson setup .. \
|
---|
| 119 | --prefix=/usr \
|
---|
| 120 | --buildtype=release &&
|
---|
[0c61cb89] | 121 | ninja</userinput></screen>
|
---|
| 122 |
|
---|
[09396b5] | 123 | <para>
|
---|
[b10c207e] | 124 | To run the tests, issue: <command>ninja test</command>.
|
---|
[09396b5] | 125 | </para>
|
---|
| 126 |
|
---|
| 127 | <para>
|
---|
| 128 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 129 | </para>
|
---|
| 130 |
|
---|
[0c61cb89] | 131 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[09396b5] | 132 | </sect2>
|
---|
| 133 |
|
---|
[897d0fa] | 134 | <sect2 role="commands">
|
---|
| 135 | <title>Command Explanations</title>
|
---|
| 136 |
|
---|
[3918112a] | 137 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 138 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
[897d0fa] | 139 | </sect2>
|
---|
| 140 |
|
---|
[09396b5] | 141 | <sect2 role="content">
|
---|
| 142 | <title>Contents</title>
|
---|
| 143 |
|
---|
| 144 | <segmentedlist>
|
---|
[c3c56b2] | 145 | <segtitle>Installed Programs</segtitle>
|
---|
[0783427] | 146 | <segtitle>Installed Library</segtitle>
|
---|
| 147 | <segtitle>Installed Directory</segtitle>
|
---|
[09396b5] | 148 |
|
---|
| 149 | <seglistitem>
|
---|
[c3c56b2] | 150 | <seg>
|
---|
| 151 | None
|
---|
| 152 | </seg>
|
---|
[09396b5] | 153 | <seg>
|
---|
[e608548] | 154 | libgstlibav.so in /usr/lib/gstreamer-1.0
|
---|
[09396b5] | 155 | </seg>
|
---|
[c3c56b2] | 156 | <seg>
|
---|
[0c61cb89] | 157 | None
|
---|
[c3c56b2] | 158 | </seg>
|
---|
[09396b5] | 159 | </seglistitem>
|
---|
| 160 | </segmentedlist>
|
---|
| 161 |
|
---|
| 162 | </sect2>
|
---|
| 163 |
|
---|
| 164 | </sect1>
|
---|