No description
Find a file
Clément Bœsch 77eeaa2c3d lavf/srtdec: rewrite parsing logic
Fixes Ticket #5032

The samples in Ticket #5032 is using \r\r\n as line breaks.  Since we
already are handling \r, or \n, or \r\n as line breaks, \r\n\n will be
considered as a double line breaks. This is an issue because
ff_subtitles_read_text_chunk() will as a result stop extracting a chunk
after just one line.

So instead of parsing the SRT by "chunks" (which means splitting every
double LB), this new parser is detecting timing lines, and split the
events on this basis. While this sounds safe and simple, it needs to
take into account the event number preceding the timing line while
handling situations such as:

 - event number starting at 0 or actually any number instead of 1
 - event numbers not being ordered at all
 - event number being followed by text garbage (this really happened,
   see Ticket #4898)
 - event payload containing one or multiple number (a protagonist saying
   a count-down, a date or whatever) which could be confused with a
   chapter number
 - event number being empty (see Ticket #2167)
 - all kind of weird line breaks can appear randomly like wild pokémons
 - untrustable line breaks (Ticket #5032)

The sample madness.srt tries to sum up most of this into one sample,
ticket5032-rrn.srt is the file containing \r\r\n line breaks. and
empty-events-2167.srt contains empty events.
2016-01-01 18:31:49 +01:00
compat
doc Merge commit '2c6811397bdf13d43ca206e48d6d6da9c2cd47c6' 2016-01-01 16:20:39 +01:00
libavcodec Merge commit 'de9e199a039473ebe4b1b87382e3064d0ea2cf02' 2016-01-01 17:05:37 +01:00
libavdevice lavd/pulse_audio_enc: replace lround by lrint 2015-12-21 08:25:30 -08:00
libavfilter avfilter/avf_showspectrum: add window overlap support 2015-12-31 12:29:58 +01:00
libavformat lavf/srtdec: rewrite parsing logic 2016-01-01 18:31:49 +01:00
libavresample
libavutil lavu/eval: replace pow(10,x) by ff_exp10(x) 2015-12-25 10:48:13 -08:00
libpostproc
libswresample swr/resample: use av_clip_int16 instead of av_clip 2015-12-24 11:29:52 -08:00
libswscale swscale/utils: Fix intermediate format for cascaded alpha downscaling 2015-12-24 21:46:15 +01:00
presets
tests lavf/srtdec: rewrite parsing logic 2016-01-01 18:31:49 +01:00
tools tools/bookmarklets: HTML code fixes 2015-12-25 17:54:58 +01: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 avformat/mov: support cenc (common encryption) 2015-12-31 16:46:36 +01:00
cmdutils.c cosmetics: Fix weird indentations 2015-12-07 10:43:43 -08:00
cmdutils.h
cmdutils_common_opts.h
cmdutils_opencl.c
common.mak Merge commit '9f57f134c19773d54269b6cb9ee455ff87c2e9e1' 2015-12-05 12:21:33 +01:00
configure configure: support --cpu=host and Clang 2015-12-30 23:14:31 +01:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
ffmpeg.c ffmpeg: use lavf API for applying bitstream filters 2015-12-28 08:34:30 -06:00
ffmpeg.h ffmpeg: use lavf API for applying bitstream filters 2015-12-28 08:34:30 -06:00
ffmpeg_dxva2.c ffmpeg_dxva2: support vp9 hwaccel 2015-12-07 09:47:51 +01:00
ffmpeg_filter.c
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
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.c ffserver: Cast time_t value when using it in a format string. 2015-12-29 16:00:34 +01:00
ffserver_config.c
ffserver_config.h
INSTALL.md
library.mak
LICENSE.md
MAINTAINERS MAINTAINERS: add Eran Kornblau for aes_ctr and movenccenc 2015-12-22 13:57:55 +01:00
Makefile mips: rename mipsdspr1 to mipsdsp 2015-12-04 02:35:42 +01:00
README.md
RELEASE
version.sh

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.