FFmpeg git repo
Go to file
Tobias Rapp 4746653466 avutil/file_open: avoid file handle inheritance on Windows
Avoids inheritance of file handles on Windows systems similar to the
O_CLOEXEC/FD_CLOEXEC flag on Linux.

Fixes file lock issues in Windows applications when a child process
is started with handle inheritance enabled (standard input/output
redirection) while a FFmpeg transcoding is running in the parent
process.

Links relevant to the subject:

https://msdn.microsoft.com/en-us/library/w7sa2b22.aspx

Describes the _wsopen() function and the O_NOINHERIT flag. File handles
opened by _wsopen() are inheritable by default.

https://msdn.microsoft.com/en-us/library/windows/desktop/ms682425%28v=vs.85%29.aspx

Describes handle inheritance when creating new processes. Handle
inheritance must be enabled (bInheritHandles = TRUE) e.g. when you want
to pass handles for stdin/stdout via lpStartupInfo.

Signed-off-by: Tobias Rapp <t.rapp@noa-audio.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2015-11-02 17:40:49 +01:00
compat Merge commit '407ac22322e5ce67996ec54ef619cafa4c9ceb78' 2015-11-02 11:58:27 +01:00
doc doc/general.texi: fix SDX2 description 2015-10-29 21:29:47 +01:00
libavcodec Merge commit 'd35d0c723e3c8fc8cde76bf677f67928f5e179a8' 2015-11-02 11:58:01 +01:00
libavdevice gdigrab: grab right desktop size if DPI in use, based on patch from Alexander Brotzge 2015-10-31 23:08:02 +11:00
libavfilter avfilter/vf_frei0r: use av_strtod instead of strtod for added flexibility 2015-11-02 06:50:18 -05:00
libavformat hlsenc: Only write PAT/PMT once per segment 2015-11-02 14:35:28 +00:00
libavresample
libavutil avutil/file_open: avoid file handle inheritance on Windows 2015-11-02 17:40:49 +01:00
libpostproc
libswresample swr: do not reject channel layouts that use channel 63 2015-10-28 19:25:49 +01:00
libswscale swscale: rename sws_rgb2rgb_init to ff_sws_rgb2rgb_init 2015-10-29 23:49:46 +01:00
presets
tests vf_lut: Add support for RGB48 and RGBA64. 2015-10-30 03:55:12 +01:00
tools Replace remaining occurances of av_free_packet with av_packet_unref 2015-10-27 14:35:30 +01:00
.gitattributes
.gitignore
.travis.yml
COPYING.GPLv2
COPYING.GPLv3
COPYING.LGPLv2.1
COPYING.LGPLv3
CREDITS
Changelog avformat: add DC STR demuxer 2015-10-29 21:26:43 +01:00
INSTALL.md
LICENSE.md
MAINTAINERS MAINTAINERS: add key fingerprint 2015-10-25 19:15:04 -04:00
Makefile
README.md
RELEASE
arch.mak
cmdutils.c Merge commit 'fe66671bd5f446f8d0a9c70968ba8fe891efe028' 2015-10-27 14:06:30 +01:00
cmdutils.h
cmdutils_common_opts.h
cmdutils_opencl.c all: add const-correctness to qsort comparators 2015-10-25 10:07:20 -04:00
common.mak
configure Merge commit 'a0562e531723923b632684c7b51a9dd584bf534f' 2015-11-02 11:58:16 +01:00
ffmpeg.c ffmpeg: use log10 instead of log()/log(10) 2015-10-29 19:05:29 -04:00
ffmpeg.h
ffmpeg_dxva2.c
ffmpeg_filter.c ffmpeg_filter: check encoder before using it to set frame size. 2015-10-30 10:55:10 +01:00
ffmpeg_opt.c all: remove some casts of function pointer to void * 2015-10-24 15:14:59 -04:00
ffmpeg_qsv.c
ffmpeg_vdpau.c
ffmpeg_videotoolbox.c
ffplay.c Replace remaining occurances of av_free_packet with av_packet_unref 2015-10-27 14:35:30 +01:00
ffprobe.c ffprobe: add support for printing packet strings metadata as packet tags 2015-10-30 20:47:43 +01:00
ffserver.c Replace remaining occurances of av_free_packet with av_packet_unref 2015-10-27 14:35:30 +01:00
ffserver_config.c
ffserver_config.h
library.mak
version.sh version.sh: add note that ffversion.h is auto-generated 2015-10-25 10:14:44 -04:00

README.md

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.