/usr/share/doc/libgmerlin-avdec1/apiref/index.html is in libgmerlin-avdec-doc 1.2.0~dfsg-9build2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.13"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>gmerlin-avdecoder: Main Page</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
<tbody>
<tr style="height: 56px;">
<td id="projectalign" style="padding-left: 0.5em;">
<div id="projectname">gmerlin-avdecoder
</div>
</td>
</tr>
</tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.13 -->
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
$(function() {
initMenu('',false,false,'search.php','Search');
});
</script>
<div id="main-nav"></div>
</div><!-- top -->
<div class="header">
<div class="headertitle">
<div class="title">gmerlin-avdecoder Documentation</div> </div>
</div><!--header-->
<div class="contents">
<div class="textblock"><h1><a class="anchor" id="bgav_into"></a>
Introduction</h1>
<p>This is the API documentation for Gmerlin avdecoder, a general multimedia decoding library.</p>
<p>Click Modules (on top of the page) to get to the main API index. Here, you find just some general blabla :)</p>
<h1><a class="anchor" id="bgav_why"></a>
Why gmerlin-avdecoder?</h1>
<p>The reasons for programming gmerlin-avdecoder lie in the history of the gmerlin project. The old gmerlin (the 0.1.x series) used 3rd party libraries for decoding multimedia formats. These were libmpeg3 (later libgmerlin_mpeg), avifile, quicktime4linux (later libquicktime), libsndfile, libvorbisfile etc. This method worked surprisingly well (from the users standpoint), but had some serious drawbacks (from the programmers standpoint):</p>
<ul>
<li>Code duplication: The old gmerlin had 2 ffmpeg frontends (avifile and libquicktime), numerous PCM audio decoders (avifile, libsndfile and libquicktime) and so on.</li>
<li>The external libraries were not as flexible as they should be (libquicktime cannot play network streams, libmpeg3 didn't read ID3 tags).</li>
<li>Extremely long compilation times</li>
</ul>
<p>Or put it this way: Writing a decoding library, which supports just a handful of filetypes, is nonsense. Multimedia programming is so complicated that every small module should be programmed exactly once and then right.</p>
<p>Of course, other people had similar ideas and came up with solutions:</p>
<ul>
<li>MPlayer: Probably the best support even for exotic formats. But not usable with more than one decoding instance per process.</li>
<li>Xine: Almost as good as MPlayer, but too tightly bound to the rest of the xine architecture</li>
<li>GStreamer: Probably the cleanest solution, but way too complicated.</li>
<li>Videolan: Very clean and well supported but not usable as a standalone library.</li>
<li>libavformat/libavcodec: Not usabable in conjunction with binary codecs</li>
</ul>
<p>A lot of brainload was spent on the matter. A decoding library should not only work for playback applications, but also for transcoding. Therefore, we must not make any asumptions about the final destination of the data we decode. Metadata should be read from the files and made available to the rest of the application. The application range should be from 8bit/8KHz Mono streams to high definition production environments. No high quality codec should be too insane to be supported.</p>
<h1><a class="anchor" id="what"></a>
What is gmerlin-avdecoder?</h1>
<p>The solution, which was found, is the library, whose documentation you are reading right now. It lets you decode lots of fileformats with lots of codecs from lots of sources. It supports data sources with multiple tracks (e.g. VCD tracks, ALBW wrapped mp3s), each track can have an arbitrary number of audio/video streams. You can decode all streams at once, or switch unwanted streams off, so they are skipped. It is (with few limitations) thread save per instance and allows multiple decoding instances per process, which can be accessed from multiple threads. This is an important feature for editing applications.</p>
<p>Metadata (additional information about the material) are read whenever possible. The resulting strings are converted to UTF-8 for language independent display. MP3s with Arabic or Chinese ID3-Tags are therefore no problem at all.</p>
<p>Gmerlin-avdecoder is built upon gavl. Therefore, the codecs never do any implicit conversion of audio or video formats (like colorspace conversion, resampling, scaling etc.). Each codec sets the <a class="elRef" doxygen="/build/gmerlin-avdecoder-zmqdK8/gmerlin-avdecoder-1.2.0~dfsg/doc/gavl.tags:http://gmerlin.sourceforge.net/doc/gavl/" href="http://gmerlin.sourceforge.net/doc/gavl/structgavl__audio__format__t.html">gavl_audio_format_t</a> or <a class="elRef" doxygen="/build/gmerlin-avdecoder-zmqdK8/gmerlin-avdecoder-1.2.0~dfsg/doc/gavl.tags:http://gmerlin.sourceforge.net/doc/gavl/" href="http://gmerlin.sourceforge.net/doc/gavl/group__video__format.html#ga0ffc9c60fb71a5fb835e453531fd442c">gavl_video_format_t</a> to what it can natively deliver. Format conversions are entirely up to the application.</p>
<p>Datasources, gmerlin-avdecoder can access, include:</p>
<ul>
<li>Regular files</li>
<li>http and ftp servers (with authentication)</li>
<li>rtsp (Real flavour)</li>
<li>mms (Windows media)</li>
<li>Samba shares</li>
<li>VCDs</li>
<li>...</li>
</ul>
<p>Demultiplexers are present for the following formats:</p>
<ul>
<li>MPEG-1/2 audio/video/system/program streams</li>
<li>AVI</li>
<li>ASF/WMA/WMV</li>
<li>Quicktime/MP4</li>
<li>WAV, AIFF(-C) and lots of other uncompressed audio formats</li>
<li>Ogg (with Vorbis, Flac, Speex, Theora, OGM variants)</li>
<li>RealMedia</li>
<li>...</li>
</ul>
<p>(See <a href="http://gmerlin.sourceforge.net/avdec.html">http://gmerlin.sourceforge.net/avdec.html</a> for a complete list).</p>
<p>All these features make gmerlin-avdecoder ideal for playback and transcoding applications, where sequential decoding is needed.</p>
<h1><a class="anchor" id="bgav_whennot"></a>
When should I NOT use gmerlin-avdecoder?</h1>
<p>There are a small number of reasons, why gmerlin_avdecoder might not be the method of choice:</p>
<ul>
<li>Your application is extremely sensitive to speed issues and relies on direct rendering: Direct rendering is not supported. It could, in theory, be added but would involve a much more complicated decoding API. For now, every video frame is decoded into a user supplied buffer with a memcpy. </li>
</ul>
</div></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
Generated by  <a href="http://www.doxygen.org/index.html">
<img class="footer" src="doxygen.png" alt="doxygen"/>
</a> 1.8.13
</small></address>
</body>
</html>
|