No description
Find a file
Anssi Hannula 9cb30f7a88 avformat/hls: Fix regression with ranged media segments
Commit 81306fd4bdf ("hls: eliminate ffurl_* usage", merged in d0fc5de3a6)
changed the hls demuxer to use AVIOContext instead of URLContext for its
HTTP requests.

HLS demuxer uses the "offset" option of the http demuxer, requesting
the initial file offset for the I/O (http URLProtocol uses the "Range:"
HTTP header to try to accommodate that).

However, the code in libavformat/aviobuf.c seems to be doing its own
accounting for the current file offset (AVIOContext.pos), with the
assumption that the initial offset is always zero.

HLS demuxer does an explicit seek after open_url to account for cases
where the "offset" was not effective (due to the URL being a local file
or the HTTP server not obeying it), which should be a no-op in case the
file offset is already at that position.

However, since aviobuf.c code thinks the starting offset is 0, this
doesn't work properly.

This breaks retrieval of ranged media segments.

To fix the regression, just drop the seek call from the HLS demuxer when
the HTTP(S) protocol is used.
2016-07-28 01:24:57 +03:00
compat Merge commit '6bb99757b7' 2016-05-08 23:02:33 +01:00
doc Add an OpenH264 decoder wrapper 2016-07-27 10:19:40 +03:00
libavcodec avcodec/h264_slice: Make setup_finished check cover more cases 2016-07-27 19:29:55 +02:00
libavdevice avdev/jack: remove duplicated dispatch macros 2016-07-26 23:10:47 +01:00
libavfilter af_hdcd: Add counter for cdt expirations 2016-07-27 23:09:45 +02:00
libavformat avformat/hls: Fix regression with ranged media segments 2016-07-28 01:24:57 +03:00
libavresample Merge commit '535a742c26' 2016-06-27 17:56:47 +02:00
libavutil avutil/frame: access avframe fields directly in get_frame_defaults() 2016-07-25 17:37:18 -03:00
libpostproc Merge commit '535a742c26' 2016-06-27 17:56:47 +02:00
libswresample Merge commit '535a742c26' 2016-06-27 17:56:47 +02:00
libswscale Revert "PPC64: Add versions of functions in libswscale/input.c optimized for POWER8 VSX SIMD." 2016-07-11 10:15:05 -04:00
presets presets: remove moldering iPod presets 2014-06-17 16:15:04 -08:00
tests fate: Add HDCD filter tests for false positive and error detection 2016-07-27 22:21:43 +02:00
tools tools/patcheck: add a couple more common typos 2016-07-17 18:38:14 -03:00
.gitattributes Treat all '*.pnm' files as non-text file 2014-11-28 17:52:43 -05:00
.gitignore Merge commit '6641819fee' 2016-06-26 15:43:05 +02:00
.travis.yml Merge commit 'eda1832874' 2015-11-22 17:12:24 +00:00
arch.mak mips: rename mipsdspr1 to mipsdsp 2015-12-04 02:35:42 +01:00
Changelog Add an OpenH264 decoder wrapper 2016-07-27 10:19:40 +03:00
cmdutils.c avconv: switch to the new BSF API 2016-03-20 08:15:01 +01:00
cmdutils.h fate/source: Do not use GNU extensions in sed 2016-02-13 07:59:00 -08:00
cmdutils_common_opts.h opts: add list device sources/sinks options 2014-10-25 20:20:31 +02:00
cmdutils_opencl.c all: use FFDIFFSIGN to resolve possible undefined behavior in comparators 2015-11-03 16:28:30 -05:00
common.mak Merge commit 'c5fd4b5061' 2016-06-27 19:39:46 +02:00
configure Add an OpenH264 decoder wrapper 2016-07-27 10:19:40 +03:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1 cosmetics: Delete empty lines at end of file. 2012-02-09 12:26:45 +01:00
COPYING.LGPLv3
CREDITS CREDITS: redirect to Git log, remove current outdated content 2013-01-31 18:02:52 +01:00
ffmpeg.c ffmpeg.c: copy video profile when using stream_copy 2016-07-23 03:52:38 +02:00
ffmpeg.h ffmpeg: Add cuvid hwaccel support 2016-06-10 16:31:23 +02:00
ffmpeg_cuvid.c ffmpeg: Add cuvid hwaccel support 2016-06-10 16:31:23 +02:00
ffmpeg_dxva2.c Merge commit '18c506e9e6' 2016-06-26 15:34:01 +02:00
ffmpeg_filter.c ffmpeg_filter: Fix AVBufferSrcParameters leak 2016-05-19 00:10:27 +02:00
ffmpeg_opt.c ffmpeg_opt: Delete duplicate “hwaccel_output_format” option. 2016-07-20 12:07:38 +02:00
ffmpeg_qsv.c Merge commit 'fb472e1a11' 2015-10-22 16:18:02 +02:00
ffmpeg_vaapi.c Merge commit '9f7590f4e4' 2016-06-26 15:36:27 +02:00
ffmpeg_vdpau.c Merge commit 'f72db3f2f3' 2016-06-26 15:29:39 +02:00
ffmpeg_videotoolbox.c ffmpeg/videotoolbox: protect UTGetOSTypeFromString on both VDA and VT 2015-10-15 10:22:31 +02:00
ffplay.c ffplay: Fix usage of private lavfi API 2016-06-29 12:53:01 +02:00
ffprobe.c ffprobe: add missing PROGRAM_STREAM_TAGS case 2016-07-26 19:22:47 +02:00
ffserver.c ffserver: fixed deallocation bug in build_feed_streams 2016-05-27 00:22:06 +02:00
ffserver_config.c ffserver: NoVideo and NoAudio flags weren't cleared between streams. 2016-02-21 22:29:15 +01:00
ffserver_config.h ffserver: Use singlejpeg muxer for jpeg 2015-06-08 03:36:22 +02:00
INSTALL.md INSTALL: add markdown syntax 2014-05-28 22:38:38 +02:00
library.mak Merge commit 'c5fd4b5061' 2016-06-27 19:39:46 +02:00
LICENSE.md avcodec: remove libutvideo wrapper support 2016-06-23 13:04:11 +02:00
MAINTAINERS MAINTAINERS: add myself to the project server 2016-07-23 11:13:06 +02:00
Makefile Merge commit '6641819fee' 2016-06-26 15:43:05 +02:00
README.md README: replace http with https 2015-10-06 13:27:29 +02:00
RELEASE RELEASE: Update to 3.0.git 2016-02-15 10:20:33 -08:00
version.sh version.sh: Fix spurious rebuilds. 2016-03-10 09:53:10 +01: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.