1
mirror of https://git.videolan.org/git/ffmpeg.git synced 2024-09-10 09:31:06 +02:00
Go to file
Anton Khirnov 9200514ad8 lavf: replace AVStream.codec with AVStream.codecpar
Currently, AVStream contains an embedded AVCodecContext instance, which
is used by demuxers to export stream parameters to the caller and by
muxers to receive stream parameters from the caller. It is also used
internally as the codec context that is passed to parsers.

In addition, it is also widely used by the callers as the decoding (when
demuxer) or encoding (when muxing) context, though this has been
officially discouraged since Libav 11.

There are multiple important problems with this approach:
    - the fields in AVCodecContext are in general one of
        * stream parameters
        * codec options
        * codec state
      However, it's not clear which ones are which. It is consequently
      unclear which fields are a demuxer allowed to set or a muxer allowed to
      read. This leads to erratic behaviour depending on whether decoding or
      encoding is being performed or not (and whether it uses the AVStream
      embedded codec context).
    - various synchronization issues arising from the fact that the same
      context is used by several different APIs (muxers/demuxers,
      parsers, bitstream filters and encoders/decoders) simultaneously, with
      there being no clear rules for who can modify what and the different
      processes being typically delayed with respect to each other.
    - avformat_find_stream_info() making it necessary to support opening
      and closing a single codec context multiple times, thus
      complicating the semantics of freeing various allocated objects in the
      codec context.

Those problems are resolved by replacing the AVStream embedded codec
context with a newly added AVCodecParameters instance, which stores only
the stream parameters exported by the demuxers or read by the muxers.
2016-02-23 17:01:58 +01:00
compat w32pthreads: Map MemoryBarrier to __sync_synchronize on mingw 2015-10-30 20:15:11 +02:00
doc lavc: add a variant of av_get_audio_frame_duration working with AVCodecParameters 2016-02-23 17:01:58 +01:00
libavcodec lavc: add a variant of av_get_audio_frame_duration working with AVCodecParameters 2016-02-23 17:01:58 +01:00
libavdevice lavf: replace AVStream.codec with AVStream.codecpar 2016-02-23 17:01:58 +01:00
libavfilter cosmetics: Drop empty comment lines 2016-02-18 15:35:30 +01:00
libavformat lavf: replace AVStream.codec with AVStream.codecpar 2016-02-23 17:01:58 +01:00
libavresample avresample: Mark avresample_buffer() as pointer to const 2015-12-14 15:16:33 +01:00
libavutil cosmetics: Drop empty comment lines 2016-02-18 15:35:30 +01:00
libswscale cosmetics: Drop empty comment lines 2016-02-18 15:35:30 +01:00
presets presets: spelling error in libvpx 1080p50_60 2011-10-22 00:28:56 +02:00
tests lavf: replace AVStream.codec with AVStream.codecpar 2016-02-23 17:01:58 +01:00
tools avpacket: Replace av_free_packet with av_packet_unref 2015-10-26 18:00:55 +01:00
.gitattributes Treat all '*.pnm' files as non-text file 2014-11-28 17:52:43 -05:00
.gitignore Checkasm: assembly testing and benchmarking tool 2015-07-12 16:39:07 +02:00
.travis.yml travis: Enable OSX integration 2015-11-17 16:51:00 +01:00
arch.mak ppc: vsx: Implement float_dsp 2015-05-31 12:07:11 +02:00
avconv_dxva2.c avconv_dxva2: add hevc support 2015-01-27 09:06:05 +01:00
avconv_filter.c avconv: use the new buffersrc parameters API 2016-02-14 22:22:41 +01:00
avconv_opt.c avconv: add support for Intel QSV-accelerated transcoding 2015-10-16 20:01:37 +02:00
avconv_qsv.c avconv: add support for Intel QSV-accelerated transcoding 2015-10-16 20:01:37 +02:00
avconv_vda.c avconv: vda: Unlock the pixel buffer once it is accessed 2015-07-09 00:10:13 +02:00
avconv_vdpau.c avconv_vdpau: use the hwcontext API to simplify code 2016-02-14 22:07:44 +01:00
avconv.c avconv: pass the hw context from filters to the encoder 2016-02-14 22:33:26 +01:00
avconv.h avconv: add support for Intel QSV-accelerated transcoding 2015-10-16 20:01:37 +02:00
avplay.c avplay: drop support for building without lavfi 2016-02-09 11:31:24 +01:00
avprobe.c avprobe: do not call avio_close() on a custom context 2016-02-22 11:28:26 +01:00
Changelog swfdec: support compressed swf 2016-01-11 15:32:56 -05:00
cmdutils_common_opts.h avplay: Accept cpuflags option 2013-10-22 10:49:31 +02:00
cmdutils.c cmdutils: Check for and report the correct codec capability 2015-10-25 22:47:13 +01:00
cmdutils.h avconv: use read_file() for reading the 2pass stats 2015-07-19 09:37:11 +02:00
common.mak build: add Solaris symbol versioning 2015-10-11 15:42:36 +02:00
configure lavf: reorganize URLProtocols 2016-02-22 11:30:58 +01:00
COPYING.GPLv2 Rename COPYING.GPL --> COPYING.GPLv2 and COPYING.LGPL --> COPYING.LGPLv2.1. 2009-06-05 09:51:31 +00:00
COPYING.GPLv3 Add configure option to upgrade (L)GPL to version 3. 2009-06-05 11:04:03 +00:00
COPYING.LGPLv2.1 cosmetics: Delete empty lines at end of file. 2012-02-09 12:26:45 +01:00
COPYING.LGPLv3 Add configure option to upgrade (L)GPL to version 3. 2009-06-05 11:04:03 +00:00
CREDITS partially rename FFmpeg to Libav 2011-03-16 21:54:39 +01:00
INSTALL doc: clarify configure features 2011-04-07 02:54:12 +02:00
library.mak build: Support executable only ldflags 2014-07-21 22:18:35 +02:00
LICENSE license: Mention that vf_interlace is GPL, not LGPL 2014-08-28 19:47:43 +02:00
Makefile configure: ObjC support 2015-11-26 10:39:15 +01:00
README doc: Add more information in the README 2014-08-16 00:49:22 +02:00
README.md doc: Add travis badge 2015-09-14 00:19:08 +02:00
RELEASE Make the RELEASE file match with the most recent tag 2014-12-01 07:51:14 -05:00
version.sh Drop git- prefix from version labels 2011-06-19 19:41:23 +01:00

Libav

Build Status

Libav is a collection of libraries and tools to process multimedia content such as audio, video, subtitles and related metadata.

Libraries

  • libavcodec provides implementation of a wider range of codecs.
  • libavformat implements streaming protocols, container formats and basic I/O access.
  • libavutil includes hashers, decompressors and miscellaneous utility functions.
  • libavfilter provides a mean to alter decoded Audio and Video through chain of filters.
  • libavdevice provides an abstraction to access capture and playback devices.
  • libavresample implements audio mixing and resampling routines.
  • libswscale implements color conversion and scaling routines.

Tools

  • avconv is a command line toolbox to manipulate, convert and stream multimedia content.
  • avplay is a minimalistic multimedia player.
  • avprobe is a simple analisys tool to inspect multimedia content.
  • Additional small tools such as aviocat, ismindex and qt-faststart.

Documentation

The offline documentation is available in the doc/ directory.

The online documentation is available in the main website and in the wiki.

Examples

Conding examples are available in the doc/example directory.

License

Libav codebase is mainly LGPL-licensed with optional components licensed under GPL. Please refer to the LICENSE file for detailed information.