Browse Source

Merge remote-tracking branch 'cigaes/master'

* cigaes/master:
  doc/faq: explain DAR/SAR preserving.
  doc: set documentencoding on toplevel texi files.

Merged-by: Michael Niedermayer <michaelni@gmx.at>
tags/n2.6
Michael Niedermayer 10 years ago
parent
commit
65da611d34
27 changed files with 61 additions and 0 deletions
  1. +1
    -0
      doc/developer.texi
  2. +35
    -0
      doc/faq.texi
  3. +1
    -0
      doc/fate.texi
  4. +1
    -0
      doc/ffmpeg-bitstream-filters.texi
  5. +1
    -0
      doc/ffmpeg-codecs.texi
  6. +1
    -0
      doc/ffmpeg-devices.texi
  7. +1
    -0
      doc/ffmpeg-filters.texi
  8. +1
    -0
      doc/ffmpeg-formats.texi
  9. +1
    -0
      doc/ffmpeg-protocols.texi
  10. +1
    -0
      doc/ffmpeg-resampler.texi
  11. +1
    -0
      doc/ffmpeg-scaler.texi
  12. +1
    -0
      doc/ffmpeg-utils.texi
  13. +1
    -0
      doc/ffmpeg.texi
  14. +1
    -0
      doc/ffplay.texi
  15. +1
    -0
      doc/ffprobe.texi
  16. +1
    -0
      doc/ffserver.texi
  17. +1
    -0
      doc/general.texi
  18. +1
    -0
      doc/git-howto.texi
  19. +1
    -0
      doc/libavcodec.texi
  20. +1
    -0
      doc/libavdevice.texi
  21. +1
    -0
      doc/libavfilter.texi
  22. +1
    -0
      doc/libavformat.texi
  23. +1
    -0
      doc/libavutil.texi
  24. +1
    -0
      doc/libswresample.texi
  25. +1
    -0
      doc/libswscale.texi
  26. +1
    -0
      doc/nut.texi
  27. +1
    -0
      doc/platform.texi

+ 1
- 0
doc/developer.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle Developer Documentation
@titlepage


+ 35
- 0
doc/faq.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle FFmpeg FAQ
@titlepage
@@ -466,6 +467,40 @@ point acceptable for your tastes. The most common options to do that are
@option{-qscale} and @option{-qmax}, but you should peruse the documentation
of the encoder you chose.

@section I have a stretched video, why does scaling does not fix it?

A lot of video codecs and formats can store the @emph{aspect ratio} of the
video: this is the ratio between the width and the height of either the full
image (DAR, display aspect ratio) or individual pixels (SAR, sample aspect
ratio). For example, EGA screens at resolution 640×350 had 4:3 DAR and 35:48
SAR.

Most still image processing work with square pixels, i.e. 1:1 SAR, but a lot
of video standards, especially from the analogic-numeric transition era, use
non-square pixels.

Most processing filters in FFmpeg handle the aspect ratio to avoid
stretching the image: cropping adjusts the DAR to keep the SAR constant,
scaling adjusts the SAR to keep the DAR constant.

If you want to stretch, or “unstretch”, the image, you need to override the
information with the
@url{http://ffmpeg.org/ffmpeg-filters.html#setdar_002c-setsar, @code{setdar or setsar filters}}.

Do not forget to examine carefully the original video to check whether the
stretching comes from the image or from the aspect ratio information.

For example, to fix a badly encoded EGA capture, use the following commands,
either the first one to upscale to square pixels or the second one to set
the correct aspect ratio or the third one to avoid transcoding (may not work
depending on the format / codec / player / phase of the moon):

@example
ffmpeg -i ega_screen.nut -vf scale=640:480,setsar=1 ega_screen_scaled.nut
ffmpeg -i ega_screen.nut -vf setdar=4/3 ega_screen_anamorphic.nut
ffmpeg -i ega_screen.nut -aspect 4/3 -c copy ega_screen_overridden.nut
@end example

@chapter Development

@section Are there examples illustrating how to use the FFmpeg libraries, particularly libavcodec and libavformat?


+ 1
- 0
doc/fate.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle FFmpeg Automated Testing Environment
@titlepage


+ 1
- 0
doc/ffmpeg-bitstream-filters.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle FFmpeg Bitstream Filters Documentation
@titlepage


+ 1
- 0
doc/ffmpeg-codecs.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle FFmpeg Codecs Documentation
@titlepage


+ 1
- 0
doc/ffmpeg-devices.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle FFmpeg Devices Documentation
@titlepage


+ 1
- 0
doc/ffmpeg-filters.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle FFmpeg Filters Documentation
@titlepage


+ 1
- 0
doc/ffmpeg-formats.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle FFmpeg Formats Documentation
@titlepage


+ 1
- 0
doc/ffmpeg-protocols.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle FFmpeg Protocols Documentation
@titlepage


+ 1
- 0
doc/ffmpeg-resampler.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle FFmpeg Resampler Documentation
@titlepage


+ 1
- 0
doc/ffmpeg-scaler.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle FFmpeg Scaler Documentation
@titlepage


+ 1
- 0
doc/ffmpeg-utils.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle FFmpeg Utilities Documentation
@titlepage


+ 1
- 0
doc/ffmpeg.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle ffmpeg Documentation
@titlepage


+ 1
- 0
doc/ffplay.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle ffplay Documentation
@titlepage


+ 1
- 0
doc/ffprobe.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle ffprobe Documentation
@titlepage


+ 1
- 0
doc/ffserver.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle ffserver Documentation
@titlepage


+ 1
- 0
doc/general.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle General Documentation
@titlepage


+ 1
- 0
doc/git-howto.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle Using git to develop FFmpeg



+ 1
- 0
doc/libavcodec.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle Libavcodec Documentation
@titlepage


+ 1
- 0
doc/libavdevice.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle Libavdevice Documentation
@titlepage


+ 1
- 0
doc/libavfilter.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle Libavfilter Documentation
@titlepage


+ 1
- 0
doc/libavformat.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle Libavformat Documentation
@titlepage


+ 1
- 0
doc/libavutil.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle Libavutil Documentation
@titlepage


+ 1
- 0
doc/libswresample.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle Libswresample Documentation
@titlepage


+ 1
- 0
doc/libswscale.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle Libswscale Documentation
@titlepage


+ 1
- 0
doc/nut.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle NUT



+ 1
- 0
doc/platform.texi View File

@@ -1,4 +1,5 @@
\input texinfo @c -*- texinfo -*-
@documentencoding UTF-8

@settitle Platform Specific Information
@titlepage


Loading…
Cancel
Save