[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 " ">
|
---|
[24f179da] | 9 | <!ENTITY gst10-libav-md5sum "1048e9be86b4e54996aee4c5146264e4">
|
---|
[c1257873] | 10 | <!ENTITY gst10-libav-size "204 KB">
|
---|
| 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 |
|
---|
[181e069f] | 35 | &lfs121_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 |
|
---|
[1fc1afb] | 94 | <para>
|
---|
| 95 | First, fix some usage of deprecated APIs that causes a build failure:
|
---|
| 96 | </para>
|
---|
| 97 |
|
---|
| 98 | <screen><userinput remap="pre">sed -e '1375,1430d' \
|
---|
| 99 | -e '2058d' \
|
---|
| 100 | -e '2105,2140d' \
|
---|
| 101 | -e '2217,2221d' \
|
---|
| 102 | -i ext/libav/gstavdemux.c &&
|
---|
[24f179da] | 103 |
|
---|
| 104 | sed -i '2122a if (!gst_element_register (plugin, type_name, rank, type)) {' ext/libav/gstavdemux.c &&
|
---|
| 105 |
|
---|
| 106 | sed -i '272 s/gst_ffmpegdata_write/(void*)&/' ext/libav/gstavprotocol.c
|
---|
| 107 | </userinput></screen>
|
---|
[1fc1afb] | 108 |
|
---|
[09396b5] | 109 | <para>
|
---|
| 110 | Install <application>GStreamer Libav</application> by running the following
|
---|
| 111 | commands:
|
---|
| 112 | </para>
|
---|
| 113 |
|
---|
[0c61cb89] | 114 | <screen><userinput>mkdir build &&
|
---|
| 115 | cd build &&
|
---|
| 116 |
|
---|
[5ce2b5a] | 117 | meson setup .. \
|
---|
| 118 | --prefix=/usr \
|
---|
| 119 | --buildtype=release &&
|
---|
[0c61cb89] | 120 | ninja</userinput></screen>
|
---|
| 121 |
|
---|
[09396b5] | 122 | <para>
|
---|
[b10c207e] | 123 | To run the tests, issue: <command>ninja test</command>.
|
---|
[09396b5] | 124 | </para>
|
---|
| 125 |
|
---|
| 126 | <para>
|
---|
| 127 | Now, as the <systemitem class="username">root</systemitem> user:
|
---|
| 128 | </para>
|
---|
| 129 |
|
---|
[0c61cb89] | 130 | <screen role="root"><userinput>ninja install</userinput></screen>
|
---|
[09396b5] | 131 | </sect2>
|
---|
| 132 |
|
---|
[897d0fa] | 133 | <sect2 role="commands">
|
---|
| 134 | <title>Command Explanations</title>
|
---|
| 135 |
|
---|
[3918112a] | 136 | <xi:include xmlns:xi="http://www.w3.org/2001/XInclude"
|
---|
| 137 | href="../../xincludes/meson-buildtype-release.xml"/>
|
---|
[897d0fa] | 138 | </sect2>
|
---|
| 139 |
|
---|
[09396b5] | 140 | <sect2 role="content">
|
---|
| 141 | <title>Contents</title>
|
---|
| 142 |
|
---|
| 143 | <segmentedlist>
|
---|
[c3c56b2] | 144 | <segtitle>Installed Programs</segtitle>
|
---|
[0783427] | 145 | <segtitle>Installed Library</segtitle>
|
---|
| 146 | <segtitle>Installed Directory</segtitle>
|
---|
[09396b5] | 147 |
|
---|
| 148 | <seglistitem>
|
---|
[c3c56b2] | 149 | <seg>
|
---|
| 150 | None
|
---|
| 151 | </seg>
|
---|
[09396b5] | 152 | <seg>
|
---|
[e608548] | 153 | libgstlibav.so in /usr/lib/gstreamer-1.0
|
---|
[09396b5] | 154 | </seg>
|
---|
[c3c56b2] | 155 | <seg>
|
---|
[0c61cb89] | 156 | None
|
---|
[c3c56b2] | 157 | </seg>
|
---|
[09396b5] | 158 | </seglistitem>
|
---|
| 159 | </segmentedlist>
|
---|
| 160 |
|
---|
| 161 | </sect2>
|
---|
| 162 |
|
---|
| 163 | </sect1>
|
---|