FFmpeg git repo
Go to file
Aman Gupta 5c041e2ccc lavc/ccaption_dec: implement real_time option
This new mode is useful for realtime decoding of closed captions so they
can be display along with mpeg2 frames.

Closed caption streams contain two major types of captions:

- POPON captions, which are buffered off-screen and displayed
  only after EOC (end of caption, aka display buffer)

- PAINTON/ROLLUP captions, which are written to the display as soon as
  they arrive.

In a typical real-time eia608 decoder, commands like EOC (end of
caption; display buffer), EDM (erase display memory) and EBM (erase
buffered memory) perform their expected functions as soon as the
commands are processed. This is implemented in the real_time branches
added in this commit.

Before this commit, and in the !real_time branches after this commit,
the decoder cleverly implements its own version of the decoder which is
specifically geared towards buffered decoding. It does so by actively
ignoring commands like EBM (erase buffered memory), and then re-using
the non-display buffer to hold the previous caption while the new one is
received. This is the opposite of the real-time decoder, which uses the
non-display buffer to hold the new caption while the display buffer is
still showing the current caption.

In addition to ignoring EBM, the buffered decoder also has custom
implementations for EDM and EOC. An EDM (erase display memory) command
flushes the existing contents before clearing the screen, and EOC
similarly always flushes the active buffer (the previous subtitle)
before flipping buffers.
2016-01-14 22:41:41 +01:00
compat os2threads: Add pthread_once() 2015-11-12 22:31:46 +01:00
doc avfilter: add spectrumsynth filter 2016-01-14 20:51:20 +01:00
libavcodec lavc/ccaption_dec: implement real_time option 2016-01-14 22:41:41 +01:00
libavdevice Correct two build/built typos 2016-01-11 20:53:11 -08:00
libavfilter avfilter/vf_fftfilt: this is video filter so use pixels instead of samples 2016-01-14 22:20:25 +01:00
libavformat avformat/hls: forbid all protocols except http(s) & file 2016-01-14 00:18:00 +01:00
libavresample Merge commit 'cc4c24208159200b7aff5b5c313903c7f23fa345' 2016-01-02 10:13:58 +01:00
libavutil lavu/libm: add isfinite fallback 2016-01-13 20:00:19 -05:00
libpostproc
libswresample swr/resample: use av_clip_int16 instead of av_clip 2015-12-24 11:29:52 -08:00
libswscale swscale/vscale: Check that 2 tap filters are bilinear before using bilinear code 2016-01-14 21:59:12 +01:00
presets
tests AAC encoder: fix I/S relative error evaluation 2016-01-13 05:28:34 -03:00
tools avcodec: Remove libstagefright 2016-01-06 16:43:06 +00:00
.gitattributes
.gitignore
.travis.yml Merge commit 'eda183287489b2c705843aa373a19c4e46fb2fec' 2015-11-22 17:12:24 +00:00
arch.mak mips: rename mipsdspr1 to mipsdsp 2015-12-04 02:35:42 +01:00
Changelog avfilter: add spectrumsynth filter 2016-01-14 20:51:20 +01:00
cmdutils_common_opts.h
cmdutils_opencl.c all: use FFDIFFSIGN to resolve possible undefined behavior in comparators 2015-11-03 16:28:30 -05:00
cmdutils.c cosmetics: Fix weird indentations 2015-12-07 10:43:43 -08:00
cmdutils.h
common.mak Merge commit '9f57f134c19773d54269b6cb9ee455ff87c2e9e1' 2015-12-05 12:21:33 +01:00
configure avfilter: add spectrumsynth filter 2016-01-14 20:51:20 +01:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
ffmpeg_dxva2.c ffmpeg_dxva2: support vp9 hwaccel 2015-12-07 09:47:51 +01:00
ffmpeg_filter.c ffmpeg_filter: remove redundant null ptr check 2015-11-11 01:51:52 +01:00
ffmpeg_opt.c ffmpeg: use lavf API for applying bitstream filters 2015-12-28 08:34:30 -06:00
ffmpeg_qsv.c
ffmpeg_vdpau.c
ffmpeg_videotoolbox.c
ffmpeg.c ffmpeg: check fclose return values 2016-01-07 16:57:37 -08:00
ffmpeg.h ffmpeg: use lavf API for applying bitstream filters 2015-12-28 08:34:30 -06:00
ffplay.c Revert "ffplay: Fix auto insertion point of rotation filter" 2015-12-28 03:44:31 +01:00
ffprobe.c ffprobe: avoid unnecessary pow and exp2 calls 2015-12-29 08:59:16 -08:00
ffserver_config.c
ffserver_config.h
ffserver.c ffserver: Cast time_t value when using it in a format string. 2015-12-29 16:00:34 +01:00
INSTALL.md
library.mak
LICENSE.md
MAINTAINERS avcodec: Remove libstagefright 2016-01-06 16:43:06 +00:00
Makefile mips: rename mipsdspr1 to mipsdsp 2015-12-04 02:35:42 +01:00
README.md
RELEASE
version.sh version.sh: add note that ffversion.h is auto-generated 2015-10-25 10:14:44 -04:00

FFmpeg README

FFmpeg 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.
  • libswresample implements audio mixing and resampling routines.
  • libswscale implements color conversion and scaling routines.

Tools

  • ffmpeg is a command line toolbox to manipulate, convert and stream multimedia content.
  • ffplay is a minimalistic multimedia player.
  • ffprobe is a simple analysis tool to inspect multimedia content.
  • ffserver is a multimedia streaming server for live broadcasts.
  • 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

Coding examples are available in the doc/examples directory.

License

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

Contributing

Patches should be submitted to the ffmpeg-devel mailing list using git format-patch or git send-email. Github pull requests should be avoided because they are not part of our review process. Few developers follow pull requests so they will likely be ignored.