FFmpeg git repo
Go to file
Alexis Ballier 6e8d856ad6 libavcodec/mpegvideo_enc.c: Fix encoding videos with less frames than the delay of the encoder.
When the encoder is fed with less frames than its delay, the picture list looks like { NULL, NULL, ..., frame, frame, frame }. When flushing the encoder (input frame == NULL), we need to ensure the picture list is shifted enough so that we do not return an empty packet, which would mean the encoder has finished, while it has not encoded any frame.

Before the patch, the command:
'./ffmpeg_g -loglevel debug -f lavfi -i "testsrc=d=0.01" -bf 2 -vcodec mpeg2video out.mxf' prints:

Output stream #0:0 (video): 1 frames encoded; 0 packets muxed (0 bytes);

After:

Output stream #0:0 (video): 1 frames encoded; 1 packets muxed (8058 bytes);

Relates to ticket #4817.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-10-18 11:55:40 +02:00
compat w32pthreads: fix mingw build on x86 with -msse2 or higher 2015-10-16 14:54:48 +02:00
doc
libavcodec libavcodec/mpegvideo_enc.c: Fix encoding videos with less frames than the delay of the encoder. 2015-10-18 11:55:40 +02:00
libavdevice avdevice/internal: add av_warn_unused_result 2015-10-16 17:28:40 -04:00
libavfilter avfilter/af_ladspa: check functions return value in query_formats 2015-10-18 02:01:44 +02:00
libavformat mpegts: Make the sdt_period a double 2015-10-17 15:02:40 -04:00
libavresample
libavutil opencl: Force the use of 1.2 APIs 2015-10-17 01:16:50 -07:00
libpostproc
libswresample swresample/swresample_internal: add av_warn_unused_result 2015-10-15 22:27:23 -04:00
libswscale swscale/swscale: add av_warn_unused_result to sws_init_context 2015-10-16 17:18:21 -04:00
presets
tests aacenc_ltp: adjust and speed up autocorrelation calculations 2015-10-17 22:53:11 +01:00
tools
.gitattributes
.gitignore
.travis.yml
arch.mak
Changelog avformat: add svag demuxer 2015-10-16 16:37:41 +02:00
cmdutils_common_opts.h
cmdutils_opencl.c
cmdutils.c Merge commit '9ef748173a4e0e58d40afaf38397783cd2537eaa' 2015-10-16 22:57:21 +02:00
cmdutils.h
common.mak
configure mips: disable all features in configure if no cpu is matched 2015-10-15 20:19:10 +02:00
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
ffmpeg_dxva2.c
ffmpeg_filter.c
ffmpeg_opt.c
ffmpeg_vdpau.c
ffmpeg_videotoolbox.c ffmpeg/videotoolbox: protect UTGetOSTypeFromString on both VDA and VT 2015-10-15 10:22:31 +02:00
ffmpeg.c
ffmpeg.h
ffplay.c
ffprobe.c
ffserver_config.c
ffserver_config.h
ffserver.c
INSTALL.md
library.mak
LICENSE.md
MAINTAINERS
Makefile
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.