libswresample.html 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  2. <html>
  3. <!-- Created by GNU Texinfo 6.8, https://www.gnu.org/software/texinfo/ -->
  4. <head>
  5. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  6. <title>Libswresample Documentation</title>
  7. <meta name="description" content="Libswresample Documentation">
  8. <meta name="keywords" content="Libswresample Documentation">
  9. <meta name="resource-type" content="document">
  10. <meta name="distribution" content="global">
  11. <meta name="Generator" content="makeinfo">
  12. <meta name="viewport" content="width=device-width,initial-scale=1">
  13. <link href="#SEC_Contents" rel="contents" title="Table of Contents">
  14. <style type="text/css">
  15. <!--
  16. a.copiable-anchor {visibility: hidden; text-decoration: none; line-height: 0em}
  17. a.summary-letter {text-decoration: none}
  18. blockquote.indentedblock {margin-right: 0em}
  19. div.display {margin-left: 3.2em}
  20. div.example {margin-left: 3.2em}
  21. kbd {font-style: oblique}
  22. pre.display {font-family: inherit}
  23. pre.format {font-family: inherit}
  24. pre.menu-comment {font-family: serif}
  25. pre.menu-preformatted {font-family: serif}
  26. span.nolinebreak {white-space: nowrap}
  27. span.roman {font-family: initial; font-weight: normal}
  28. span.sansserif {font-family: sans-serif; font-weight: normal}
  29. span:hover a.copiable-anchor {visibility: visible}
  30. ul.no-bullet {list-style: none}
  31. -->
  32. </style>
  33. </head>
  34. <body lang="en">
  35. <h1 class="settitle" align="center">Libswresample Documentation</h1>
  36. <a name="SEC_Top"></a>
  37. <a name="Description"></a>
  38. <h2 class="chapter">1 Description<span class="pull-right"><a class="anchor hidden-xs" href="#Description" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Description" aria-hidden="true">TOC</a></span></h2>
  39. <p>The libswresample library performs highly optimized audio resampling,
  40. rematrixing and sample format conversion operations.
  41. </p>
  42. <p>Specifically, this library performs the following conversions:
  43. </p>
  44. <ul>
  45. <li> <em>Resampling</em>: is the process of changing the audio rate, for
  46. example from a high sample rate of 44100Hz to 8000Hz. Audio
  47. conversion from high to low sample rate is a lossy process. Several
  48. resampling options and algorithms are available.
  49. </li><li> <em>Format conversion</em>: is the process of converting the type of
  50. samples, for example from 16-bit signed samples to unsigned 8-bit or
  51. float samples. It also handles packing conversion, when passing from
  52. packed layout (all samples belonging to distinct channels interleaved
  53. in the same buffer), to planar layout (all samples belonging to the
  54. same channel stored in a dedicated buffer or &quot;plane&quot;).
  55. </li><li> <em>Rematrixing</em>: is the process of changing the channel layout, for
  56. example from stereo to mono. When the input channels cannot be mapped
  57. to the output streams, the process is lossy, since it involves
  58. different gain factors and mixing.
  59. </li></ul>
  60. <p>Various other audio conversions (e.g. stretching and padding) are
  61. enabled through dedicated options.
  62. </p>
  63. <a name="See-Also"></a>
  64. <h2 class="chapter">2 See Also<span class="pull-right"><a class="anchor hidden-xs" href="#See-Also" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-See-Also" aria-hidden="true">TOC</a></span></h2>
  65. <p><a href="ffmpeg.html">ffmpeg</a>, <a href="ffplay.html">ffplay</a>, <a href="ffprobe.html">ffprobe</a>,
  66. <a href="ffmpeg-resampler.html">ffmpeg-resampler</a>,
  67. <a href="libavutil.html">libavutil</a>
  68. </p>
  69. <a name="Authors"></a>
  70. <h2 class="chapter">3 Authors<span class="pull-right"><a class="anchor hidden-xs" href="#Authors" aria-hidden="true">#</a> <a class="anchor hidden-xs"href="#toc-Authors" aria-hidden="true">TOC</a></span></h2>
  71. <p>The FFmpeg developers.
  72. </p>
  73. <p>For details about the authorship, see the Git history of the project
  74. (https://git.ffmpeg.org/ffmpeg), e.g. by typing the command
  75. <code>git log</code> in the FFmpeg source directory, or browsing the
  76. online repository at <a href="https://git.ffmpeg.org/ffmpeg">https://git.ffmpeg.org/ffmpeg</a>.
  77. </p>
  78. <p>Maintainers for the specific components are listed in the file
  79. <samp>MAINTAINERS</samp> in the source code tree.
  80. </p>
  81. </body>
  82. </html>