ffmpeg.git
3 years agoaf_hdcd: some types renamed to remove _t
Burt P [Fri, 26 Aug 2016 05:00:05 +0000 (00:00 -0500)]
af_hdcd: some types renamed to remove _t

Following a suggestion by Diego Biurrun.
_t is reserved for POSIX, apparently.

Signed-off-by: Burt P <pburt0@gmail.com>
3 years agoavcodec/gif: don't honor transparency if palette changed
Paul B Mahol [Tue, 6 Sep 2016 11:28:59 +0000 (13:28 +0200)]
avcodec/gif: don't honor transparency if palette changed

It generally does not work.

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavfilter/vf_paletteuse: add option to use new palette for each output frame
Paul B Mahol [Fri, 2 Sep 2016 20:40:34 +0000 (22:40 +0200)]
avfilter/vf_paletteuse: add option to use new palette for each output frame

3 years agoavfilter/vf_palettegen: add mode for generating palette for each input frame
Paul B Mahol [Fri, 2 Sep 2016 20:15:10 +0000 (22:15 +0200)]
avfilter/vf_palettegen: add mode for generating palette for each input frame

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavfilter: add avgblur filter
Paul B Mahol [Mon, 5 Sep 2016 13:28:09 +0000 (15:28 +0200)]
avfilter: add avgblur filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agolavc/mediacodecdec_h264: fix SODB escaping
Matthieu Bouron [Tue, 6 Sep 2016 14:30:07 +0000 (16:30 +0200)]
lavc/mediacodecdec_h264: fix SODB escaping

Fixes escaping of consecutive 0x00, 0x00, 0x0{0-3} sequences.

3 years agoavformat: Export ticks_per_frame in st->codec
Michael Niedermayer [Tue, 6 Sep 2016 16:10:41 +0000 (18:10 +0200)]
avformat: Export ticks_per_frame in st->codec

Fixes regressions with stream copy and output timebase/fps being twice as fine as needed
Makes the timebase and ticks per frame handled identical which should make the
code easier to understand and work with. It does not solve the problem without
st->codec access

Suggested-by: Hendrik Leppkes
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoswscale: Fix "warning: ISO C90 forbids mixed declarations and code"
Michael Niedermayer [Tue, 6 Sep 2016 23:44:16 +0000 (01:44 +0200)]
swscale: Fix "warning: ISO C90 forbids mixed declarations and code"

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec: Fix successfull typo
Michael Niedermayer [Tue, 6 Sep 2016 23:43:07 +0000 (01:43 +0200)]
avcodec: Fix successfull typo

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavf/matroskaenc: use mkv_check_tag_name consistently
Rodger Combs [Tue, 6 Sep 2016 03:26:16 +0000 (22:26 -0500)]
lavf/matroskaenc: use mkv_check_tag_name consistently

Previously, we used a different list of checks when deciding whether to
write a set of tags at all than we did when deciding whether to write an
individual tag in the set. This resulted in sometimes writing an empty
tag master and seekhead. Now we use mkv_check_tag_name everywhere, so
if a dictionary is entirely composed of tags we skip, we don't write a
tag master at all.

This affected the test file, since "language" was on one list but not
the other, so we were writing an empty tag master there. The test hash
is updated to reflect that change.

3 years agolavf/matroskaenc: skip writing "duration" tags
Rodger Combs [Tue, 6 Sep 2016 02:43:18 +0000 (21:43 -0500)]
lavf/matroskaenc: skip writing "duration" tags

3 years agolavf/matroskaenc: move skipped metadata keys to separate function
Rodger Combs [Tue, 6 Sep 2016 02:42:24 +0000 (21:42 -0500)]
lavf/matroskaenc: move skipped metadata keys to separate function

3 years agocuvid: Implement flush to support seeking in media players
Philip Langdale [Sun, 4 Sep 2016 16:47:29 +0000 (09:47 -0700)]
cuvid: Implement flush to support seeking in media players

Right now, if we attempt to use cuvid in a media player and then
try to seek, the decoder will happily pass out whatever frames were
already in flight before the seek.

There is both the output queue in our code and some number of frames
within the cuvid decoder that need to be accounted for.

cuvid doesn't support flush, so our only choice is to do a brute-force
re-creation of the decoder, which also implies re-creating the parser,
but this is fine.

The only subtlty is that there is sanity check code in decoder
initialisation that wants to make sure the HWContextFrame hasn't already
been initialised. This is a fair check to do at the beginning but not
after a flush, so it has to be made conditional.

Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agocuvid: Add hwaccels and decoders for remaining supported formats
Philip Langdale [Sun, 4 Sep 2016 16:47:28 +0000 (09:47 -0700)]
cuvid: Add hwaccels and decoders for remaining supported formats

cuvid/nvdecode also supports mpeg1, mpeg2, h.263/mpeg4-asp and mjpeg.

It should, in theory, also support wmv3 via the vc1 support, given
that vdpau supports this. However, it failed to play wmv3 samples
which vdpau played correctly, so I'm not sure what to make of it.

Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agotests/fate/ffmpeg: add simple ts->avi copy test
Michael Niedermayer [Mon, 5 Sep 2016 17:31:57 +0000 (19:31 +0200)]
tests/fate/ffmpeg: add simple ts->avi copy test

Approved-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agotests/fate/ffmpeg: add test for mpegts->mxf steram copy (Ticket 4914)
Michael Niedermayer [Mon, 5 Sep 2016 17:12:41 +0000 (19:12 +0200)]
tests/fate/ffmpeg: add test for mpegts->mxf steram copy (Ticket 4914)

Approved-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agotest/fate: Add Ticket 236 / mov stream copy test
Michael Niedermayer [Mon, 5 Sep 2016 16:47:24 +0000 (18:47 +0200)]
test/fate: Add Ticket 236 / mov stream copy test

Approved-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agotests/fate-run: add transcode() as a simplified enc_dec()
Michael Niedermayer [Mon, 5 Sep 2016 16:46:16 +0000 (18:46 +0200)]
tests/fate-run: add transcode() as a simplified enc_dec()

Approved-by: ubitux
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoswscale: add unscaled conversion from yuv420p to p010
Timo Rothenpieler [Fri, 2 Sep 2016 12:18:25 +0000 (14:18 +0200)]
swscale: add unscaled conversion from yuv420p to p010

3 years agoavfilter/fifo: Make independent of the channel layout
Michael Niedermayer [Mon, 5 Sep 2016 23:13:53 +0000 (01:13 +0200)]
avfilter/fifo: Make independent of the channel layout

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/af_atempo: Make independent of the channel layout
Michael Niedermayer [Mon, 5 Sep 2016 22:37:47 +0000 (00:37 +0200)]
avfilter/af_atempo: Make independent of the channel layout

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Reviewed-by: Pavel Koshevoy <pkoshevoy@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/af_amix: make independent of the channel layout
Michael Niedermayer [Mon, 5 Sep 2016 22:16:54 +0000 (00:16 +0200)]
avfilter/af_amix: make independent of the channel layout

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agodoc/showspectrum*: Change options order to reflect numeric values.
Carl Eugen Hoyos [Tue, 6 Sep 2016 09:16:19 +0000 (11:16 +0200)]
doc/showspectrum*: Change options order to reflect numeric values.

Fixes ticket #5823.

3 years agoavfilter/vf_owdenoise: hight bit-depth support
Paul B Mahol [Fri, 26 Aug 2016 21:56:38 +0000 (23:56 +0200)]
avfilter/vf_owdenoise: hight bit-depth support

3 years agolavc/avpacket: Fix undefined behaviour, do not pass a null pointer to memcpy().
Carl Eugen Hoyos [Sun, 4 Sep 2016 19:11:02 +0000 (21:11 +0200)]
lavc/avpacket: Fix undefined behaviour, do not pass a null pointer to memcpy().

Fixes ticket #5128.

3 years agoavcodec/pnmdec: fix undefined behaviour
Paul B Mahol [Mon, 5 Sep 2016 08:06:25 +0000 (10:06 +0200)]
avcodec/pnmdec: fix undefined behaviour

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoMAINTAINERS: Replace AvxSynth Team by Stephen Hutchinson for avisynth.c
Michael Niedermayer [Wed, 31 Aug 2016 20:38:06 +0000 (22:38 +0200)]
MAINTAINERS: Replace AvxSynth Team by Stephen Hutchinson for avisynth.c

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/hlsenc: fix incomplete write of subtitle HLS playlist
Franklin Phillips [Fri, 2 Sep 2016 19:20:21 +0000 (20:20 +0100)]
avformat/hlsenc: fix incomplete write of subtitle HLS playlist

This patch is a fix for the bug with ticket number 5812
(https://trac.ffmpeg.org/ticket/5812).

Basically, the bug is that the last segment and the "#EXT-X-ENDLIST"
tag are not being written to the subtitle playlist file when
converting a file with subtitles to the HLS format. The reason for
this seem to be that the filename for the subtitle file is being freed
too early. This solution is simply to free that memory after it's last
use in the "hls_window" function.

Signed-off-by: Franklin Phillips <franklinphillips9p8@inbox.lv>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/vf_gblur: add sigmaV option, different vertical filtering
Paul B Mahol [Sun, 4 Sep 2016 21:57:09 +0000 (23:57 +0200)]
avfilter/vf_gblur: add sigmaV option, different vertical filtering

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agofate: Add test for ticket #5805.
Carl Eugen Hoyos [Sun, 4 Sep 2016 11:50:44 +0000 (13:50 +0200)]
fate: Add test for ticket #5805.

3 years agoavccodec/utvideoenc: support encoding ULY4 and ULH4
Paul B Mahol [Sun, 4 Sep 2016 13:51:33 +0000 (15:51 +0200)]
avccodec/utvideoenc: support encoding ULY4 and ULH4

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavfilter/Makefile: move anullsrc and nullsink to correct place
Paul B Mahol [Sun, 4 Sep 2016 13:25:50 +0000 (15:25 +0200)]
avfilter/Makefile: move anullsrc and nullsink to correct place

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavfilter/vf_bitplanenoise: silence clang warning, do not truncate value
Paul B Mahol [Sun, 4 Sep 2016 12:58:54 +0000 (14:58 +0200)]
avfilter/vf_bitplanenoise: silence clang warning, do not truncate value

3 years agoavfilter: add gblur filter
Paul B Mahol [Wed, 31 Aug 2016 23:18:45 +0000 (01:18 +0200)]
avfilter: add gblur filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agodoc/filters: improve weave example
Paul B Mahol [Sun, 4 Sep 2016 12:51:04 +0000 (14:51 +0200)]
doc/filters: improve weave example

3 years agovf_colorspace: Allow overriding input color properties
Vittorio Giovara [Sat, 3 Sep 2016 13:19:35 +0000 (15:19 +0200)]
vf_colorspace: Allow overriding input color properties

The filter needs input frames with color properties filled out by
the decoder. Since this is not always possible, add input options to
the filter so that user may override color space, color primaries,
transfer characteristics, and color range, as well as a generic option
to set all properties at once.

Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
3 years agofate: add 12bpp sample
Christophe Gisquet [Tue, 13 Oct 2015 19:21:41 +0000 (21:21 +0200)]
fate: add 12bpp sample

Allows testing simple_idct12 correctness/bitexactness, as the sample
was generated using faani as idct.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoconfigure: Remove fifo muxers dependency on pthreads.
Matt Oliver [Mon, 29 Aug 2016 06:56:32 +0000 (16:56 +1000)]
configure: Remove fifo muxers dependency on pthreads.

Signed-off-by: Matt Oliver <protogonoi@gmail.com>
3 years agoavcodec/utvideodec: add support for ULY4 and ULH4
Paul B Mahol [Sat, 3 Sep 2016 23:56:02 +0000 (01:56 +0200)]
avcodec/utvideodec: add support for ULY4 and ULH4

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoavcodec/utils: print only the padding values that are set
James Almer [Fri, 26 Aug 2016 18:39:37 +0000 (15:39 -0300)]
avcodec/utils: print only the padding values that are set

Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavcodec/utils: print initial and trailing paddings only in verbose levels
James Almer [Fri, 26 Aug 2016 18:30:58 +0000 (15:30 -0300)]
avcodec/utils: print initial and trailing paddings only in verbose levels

Reviewed-by: Carl Eugen Hoyos <ceffmpeg@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agolavf/udp: Do not use MCAST_* for multicast on tvOS.
Carl Eugen Hoyos [Sat, 3 Sep 2016 13:18:40 +0000 (15:18 +0200)]
lavf/udp: Do not use MCAST_* for multicast on tvOS.

Fixes ticket #5774.

3 years agolavf/webm_chunk: Print an error if no header filename was provided.
Carl Eugen Hoyos [Wed, 3 Aug 2016 16:40:03 +0000 (18:40 +0200)]
lavf/webm_chunk: Print an error if no header filename was provided.

3 years agoCosmetics: Reindent after e82b181f.
Carl Eugen Hoyos [Sat, 3 Sep 2016 12:23:32 +0000 (14:23 +0200)]
Cosmetics: Reindent after e82b181f.

3 years agolavc/mjpegdec: Only read JFIF thumbnail size if the segment is long enough.
Carl Eugen Hoyos [Sat, 3 Sep 2016 12:21:46 +0000 (14:21 +0200)]
lavc/mjpegdec: Only read JFIF thumbnail size if the segment is long enough.

Fixes ticket #5805.

3 years agoswscale/swscale_unscaled: Try to fix bayer_to_yv12_wrapper() with slices
Michael Niedermayer [Sat, 3 Sep 2016 10:24:36 +0000 (12:24 +0200)]
swscale/swscale_unscaled: Try to fix bayer_to_yv12_wrapper() with slices

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoswscale/swscale_unscaled: Try to fix Rgb16ToPlanarRgb16Wrapper() with slices
Michael Niedermayer [Sat, 3 Sep 2016 10:15:24 +0000 (12:15 +0200)]
swscale/swscale_unscaled: Try to fix Rgb16ToPlanarRgb16Wrapper() with slices

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavf/httpauth: Do case-insensitive http header checks.
Carl Eugen Hoyos [Sat, 3 Sep 2016 11:56:40 +0000 (13:56 +0200)]
lavf/httpauth: Do case-insensitive http header checks.

Tested by trac user NTAuthority.
Fixes ticket #5786.

3 years agolavf/img2dec: Skip DQT segment when auto-detecting jpg.
Carl Eugen Hoyos [Sat, 3 Sep 2016 11:38:16 +0000 (13:38 +0200)]
lavf/img2dec: Skip DQT segment when auto-detecting jpg.

DQT segments may contain 0xFFs which break auto-detection.

3 years agolavc/mjpegdec: Do not skip reading quantization tables.
Carl Eugen Hoyos [Fri, 2 Sep 2016 15:10:57 +0000 (17:10 +0200)]
lavc/mjpegdec: Do not skip reading quantization tables.

They may contain 0xFFs, confusing the start code finding algorithm.

Fixes ticket #5819.

3 years agoswscale: add unscaled copy from yuv420p10 to p010
Timo Rothenpieler [Thu, 1 Sep 2016 14:54:01 +0000 (16:54 +0200)]
swscale: add unscaled copy from yuv420p10 to p010

3 years agoconfigure: check for dlsym as well
Timo Rothenpieler [Thu, 1 Sep 2016 09:18:00 +0000 (11:18 +0200)]
configure: check for dlsym as well

For some reason, when compiling with gcc-asan and a recent enough gcc
version(seen on 5.3+ so far), linking dlopen works without -ldl, but
dlsym fails with:

undefined reference to symbol 'dlsym@@GLIBC_2.2.5'

So this patchs checks for both dlopen and dlsym to work for determining
if -ldl is needed.

3 years agoswscale/swscale_unscaled: Fix packed_16bpc_bswap() with slices
Michael Niedermayer [Fri, 2 Sep 2016 18:25:24 +0000 (20:25 +0200)]
swscale/swscale_unscaled: Fix packed_16bpc_bswap() with slices

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoswscale/swscale: Try to fix rgb48Toxyz12() with slices
Michael Niedermayer [Fri, 2 Sep 2016 14:52:55 +0000 (16:52 +0200)]
swscale/swscale: Try to fix rgb48Toxyz12() with slices

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoswscale/swscale: Factor bottom to top handling
Michael Niedermayer [Fri, 2 Sep 2016 14:35:36 +0000 (16:35 +0200)]
swscale/swscale: Factor bottom to top handling

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agodoc/filters: add weave example
Paul B Mahol [Fri, 2 Sep 2016 16:30:07 +0000 (18:30 +0200)]
doc/filters: add weave example

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoswscale/tests/swscale: add cpuflags option
Michael Niedermayer [Fri, 2 Sep 2016 12:55:27 +0000 (14:55 +0200)]
swscale/tests/swscale: add cpuflags option

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/vf_zscale: make possible to change chroma location
Paul B Mahol [Fri, 2 Sep 2016 14:03:58 +0000 (16:03 +0200)]
avfilter/vf_zscale: make possible to change chroma location

3 years agoavformat/avidec: Fix infinite loop in avi_read_nikon()
Michael Niedermayer [Fri, 2 Sep 2016 10:19:29 +0000 (12:19 +0200)]
avformat/avidec: Fix infinite loop in avi_read_nikon()

Fixes: 360/test.poc

Found-by: 连一汉 <lianyihan@360.cn>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/vf_minterpolate: rename chroma log vars
Davinder Singh [Tue, 30 Aug 2016 00:44:09 +0000 (06:14 +0530)]
avfilter/vf_minterpolate: rename chroma log vars

also use AVPixFmtDescriptor instead of avcodec_get_chroma_sub_sample()
for log2_chroma*.

3 years agoavfilter: add weave filter
Paul B Mahol [Thu, 18 Apr 2013 00:26:28 +0000 (00:26 +0000)]
avfilter: add weave filter

Signed-off-by: Paul B Mahol <onemda@gmail.com>
3 years agoffmpeg: fix broken indent/style in write_frame
Clément Bœsch [Fri, 2 Sep 2016 09:01:46 +0000 (11:01 +0200)]
ffmpeg: fix broken indent/style in write_frame

3 years agolibavcodec/opus: Add channel mapping 2 to extradata parser
Michael Graczyk [Thu, 1 Sep 2016 18:17:30 +0000 (11:17 -0700)]
libavcodec/opus: Add channel mapping 2 to extradata parser

This allows libavcodec/opus to demux ambisonics in an ogg/opus container.
Channel mapping family 2 is being added in this standards track IETF draft:
tools.ietf.org/html/draft-ietf-codec-ambisonics-00

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolavu/timestamp: Avoid C++-unfriendly code in user header
Mark Thompson [Wed, 31 Aug 2016 19:48:45 +0000 (20:48 +0100)]
lavu/timestamp: Avoid C++-unfriendly code in user header

Including this header in a C++11 program (inside extern "C") will
throw an error because it looks like a user-defined literal.  Add a
space between the two tokens to avoid the problem.

3 years agolibavcodec/opus: Fix spelling in error message
Michael Graczyk [Thu, 1 Sep 2016 18:24:31 +0000 (11:24 -0700)]
libavcodec/opus: Fix spelling in error message

3 years agoconfigure: add missing check for LoadLibrary
James Almer [Thu, 1 Sep 2016 16:50:38 +0000 (13:50 -0300)]
configure: add missing check for LoadLibrary

Commit 2b1d316ff68a3f973d8f342db6bf9755eb78ec10 made nvenc depend on
LoadLibrary, but the availability of the latter was never checked.

This fixes nvenc on Windows platforms

Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavformat/movenc: added ability to use original stream ids as track ids instead of...
Erkki Seppälä [Wed, 31 Aug 2016 11:35:44 +0000 (14:35 +0300)]
avformat/movenc: added ability to use original stream ids as track ids instead of regenerating them

Sometimes it's useful to be able to define the exact track numbers in
the generated track, instead of always beginning at track id 1. Using
the option use_stream_ids_as_track_ids now copies the use stream ids
to track ids. Dynamically generated tracks (ie. tmcd) have their track
numbers defined as continuing from the highest numbered stream id.

Signed-off-by: Erkki Seppälä <erkki.seppala.ext@nokia.com>
Signed-off-by: OZOPlayer <OZOPL@nokia.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/vf_psnr: Add max value output option to psnr stats log.
Lucas Cooper [Wed, 31 Aug 2016 19:40:41 +0000 (12:40 -0700)]
avfilter/vf_psnr: Add max value output option to psnr stats log.

This allows retroactive calculation/aggregation of PSNR from the stats
log.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoconfigure: fix ldl dependency for new nvenc encoder names
Timo Rothenpieler [Wed, 31 Aug 2016 14:39:59 +0000 (16:39 +0200)]
configure: fix ldl dependency for new nvenc encoder names

3 years agoconfigure: fix nvenc detection logic
Timo Rothenpieler [Wed, 31 Aug 2016 13:40:00 +0000 (15:40 +0200)]
configure: fix nvenc detection logic

3 years agoswscale: add support for P010LE/BE output
Timo Rothenpieler [Mon, 29 Aug 2016 15:44:42 +0000 (17:44 +0200)]
swscale: add support for P010LE/BE output

3 years agoavfilter/drawutils: honor shift for color component description
Timo Rothenpieler [Wed, 31 Aug 2016 09:25:25 +0000 (11:25 +0200)]
avfilter/drawutils: honor shift for color component description

3 years agoavfilter/drawutils: P010 is not supported
Timo Rothenpieler [Wed, 31 Aug 2016 09:24:03 +0000 (11:24 +0200)]
avfilter/drawutils: P010 is not supported

3 years agoavfilter/vf_lut: unbreak planar rgb suppot on big-endian
Paul B Mahol [Wed, 31 Aug 2016 09:18:40 +0000 (11:18 +0200)]
avfilter/vf_lut: unbreak planar rgb suppot on big-endian

3 years agoavformat/hlsenc: add warning for append_list and hls_init_time option
Steven Liu [Tue, 30 Aug 2016 09:26:54 +0000 (17:26 +0800)]
avformat/hlsenc: add warning for append_list and hls_init_time option

When use append_list mode, the hls_init_time set nouse,
Because the append_list only support append at the old m3u8 end
cannot set init segments durations at the middle of the list.
That's invalid. and show a warning message for user.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoMAINTAINERS: Add myself for alsdec
Umair Khan [Mon, 29 Aug 2016 17:25:54 +0000 (22:55 +0530)]
MAINTAINERS: Add myself for alsdec

Signed-off-by: Umair Khan <omerjerk@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/crypto: add seeking support on read
Simon Hailes [Tue, 30 Aug 2016 08:40:14 +0000 (09:40 +0100)]
avformat/crypto: add seeking support on read

cyrpto allows reading of data which has been aes-128-cbc encrypted given a key and an iv. But it did not handle filetypes which require seeking... e.g. it failed on an encrypted .mp4 file.

example:
take 25.mp4 created with:
ffmpeg -f lavfi -i sine=frequency=1000:beep_factor=2:r=48000:duration=720.0 -f lavfi -i testsrc=duration=720.0:rate=25 -vcodec libx264 -cmp 22 -timecode 10:00:00:00 -r 25 -y out\25.mp4

encrypt with:
openssl enc -aes-128-cbc -K 12345678901234567890123456789012 -iv 12345678901234567890123456789012 -in 25.mp4 -out 25.enc
then to transcode in ffmpeg:
ffmpeg -key 12345678901234567890123456789012 -iv 12345678901234567890123456789012 -i crypto:25.enc -vcodec mpeg4 -r 25 -y 25dec.mp4

prior to this modification, the transcode would fail.

Note also:  crypto previously maked both reads and writes as streamed, which caused the whole file
to be read before the transcode started.  Now, for read only, if the underlying layer is not marked as streamed,
then crypto is not.  This should enable efficient reading of encrypted containers which require seeking.

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agolibavformat/crypto - encourage reads of 4096 bytes
Simon Hailes [Tue, 30 Aug 2016 07:47:02 +0000 (08:47 +0100)]
libavformat/crypto - encourage reads of 4096 bytes

the current implementation reads in chunks of 149x16=2384 bytes.
Seems more logical for it to read in chunks of 4096

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agocmdutils: fix implicit declaration of SetDllDirectory function
Tobias Rapp [Mon, 29 Aug 2016 13:25:58 +0000 (15:25 +0200)]
cmdutils: fix implicit declaration of SetDllDirectory function

Signed-off-by: Tobias Rapp <t.rapp@noa-archive.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agodoc/APIChanges: mention nb_threads addition to AVFilterContext
James Almer [Mon, 29 Aug 2016 18:16:59 +0000 (15:16 -0300)]
doc/APIChanges: mention nb_threads addition to AVFilterContext

Reviewed-by: Paul B Mahol <onemda@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
3 years agoavisynth: support pix_fmts added to AviSynth+
Stephen Hutchinson [Tue, 16 Aug 2016 22:45:21 +0000 (18:45 -0400)]
avisynth: support pix_fmts added to AviSynth+

A number of new pix_fmts have been added to AviSynth+:
16-bit packed RGB and RGBA
10-, 12-, 14, and 16-bit YUV 4:2:0, 4:2:2, and 4:4:4
8-, 10-, 12-, 14-, and 16-bit Planar RGB
8-, 10-, 12-, 14-, and 16-bit Planar YUVA and Planar RGBA*
10-, 12-, 14-, and 16-bit GRAY variants*
32-bit floating point Planar YUV(A), Planar RGB(A), and GRAY*

*some of which are not currently available pix_fmts here and were
 not added to the demuxer due to this

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavutil/version: Improve lib versioning scheme for release branches with the next...
Michael Niedermayer [Sat, 6 Aug 2016 10:49:56 +0000 (12:49 +0200)]
avutil/version: Improve lib versioning scheme for release branches with the next major release

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavutil/version: Mention similarities and differences to semver
Michael Niedermayer [Sat, 6 Aug 2016 10:44:18 +0000 (12:44 +0200)]
avutil/version: Mention similarities and differences to semver

Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavfilter/vf_minterpolate: do not right shift negative numbers
Davinder Singh [Mon, 29 Aug 2016 15:04:54 +0000 (17:04 +0200)]
avfilter/vf_minterpolate: do not right shift negative numbers

It was source of crashes. Use division instead.

Original patch by author. Log message by comitter.

3 years agoavfilter: make use of ff_filter_get_nb_threads
Paul B Mahol [Sat, 27 Aug 2016 20:44:42 +0000 (22:44 +0200)]
avfilter: make use of ff_filter_get_nb_threads

3 years agoavfilter: add ff_filter_get_nb_threads()
Paul B Mahol [Sat, 27 Aug 2016 20:22:58 +0000 (22:22 +0200)]
avfilter: add ff_filter_get_nb_threads()

3 years agoavfilter: add nb_threads to AVFilterContext
Paul B Mahol [Sat, 27 Aug 2016 20:10:10 +0000 (22:10 +0200)]
avfilter: add nb_threads to AVFilterContext

To be used in following commits.

3 years agodoc/muxers: add option hls_init_time document
Steven Liu [Fri, 26 Aug 2016 23:35:54 +0000 (07:35 +0800)]
doc/muxers: add option hls_init_time document

Reviewed-by: Ibrahim Tachijian <barhom@netsat.se>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/hlsenc: add option hls_init_time to set init hls window segment duration
Steven Liu [Sat, 27 Aug 2016 11:11:14 +0000 (19:11 +0800)]
avformat/hlsenc: add option hls_init_time to set init hls window segment duration

recover segments duration time by hls_time after init hls window.
This is reuqested by Ibrahim Tachijian

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavformat/mov: aax: pass proper AVClass to av_log()
Thomas Hebb [Sun, 28 Aug 2016 16:24:55 +0000 (12:24 -0400)]
avformat/mov: aax: pass proper AVClass to av_log()

av_log() expects its first parameter to be a pointer to a struct whose
first element is a pointer to an AVClass. In what I can only imagine is
a typo, one call to av_log() in the AAX decryption code instead passes
a pointer to an AVSHA struct, which doesn't even contain a pointer as
its first element, much less a pointer to an AVClass. Change the call to
pass the current MOVContext, as surrounding calls do.

The incorrect AVClass was causing mpv to emit the warning "av_log
callback called with bad parameters" when playing an .aax file.

Signed-off-by: Thomas Hebb <tommyhebb@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
3 years agoavcodec/nvenc: update license header
Timo Rothenpieler [Sun, 28 Aug 2016 17:51:22 +0000 (19:51 +0200)]
avcodec/nvenc: update license header

3 years agoavcodec/nvenc: use proper soname for cuda/nvenc libraries
Timo Rothenpieler [Sun, 28 Aug 2016 17:49:56 +0000 (19:49 +0200)]
avcodec/nvenc: use proper soname for cuda/nvenc libraries

3 years agoavcodec/nvenc: check maximum driver API version
Timo Rothenpieler [Sun, 28 Aug 2016 17:46:44 +0000 (19:46 +0200)]
avcodec/nvenc: check maximum driver API version

3 years agoavcodec/nvenc: fix potantially uninitialized free
Timo Rothenpieler [Sun, 28 Aug 2016 16:19:21 +0000 (18:19 +0200)]
avcodec/nvenc: fix potantially uninitialized free

3 years agoavcodec/nvenc: fix library names on cygwin
Timo Rothenpieler [Sun, 28 Aug 2016 15:54:29 +0000 (17:54 +0200)]
avcodec/nvenc: fix library names on cygwin

3 years agoffmpeg: fix -stream_loop with -re
Marton Balint [Thu, 30 Jun 2016 23:12:25 +0000 (01:12 +0200)]
ffmpeg: fix -stream_loop with -re

Otherwise the stream failed with EAGAIN.

Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Marton Balint <cus@passwd.hu>
3 years agoavcodec/nvenc: added support for rate control lookahead
Oliver Collyer [Thu, 25 Aug 2016 15:20:03 +0000 (16:20 +0100)]
avcodec/nvenc: added support for rate control lookahead

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoavcodec/nvenc: added support for 10 bit HEVC encoding
Oliver Collyer [Thu, 25 Aug 2016 15:18:03 +0000 (16:18 +0100)]
avcodec/nvenc: added support for 10 bit HEVC encoding

Signed-off-by: Timo Rothenpieler <timo@rothenpieler.org>
3 years agoavcodec/nvenc: include nvEncodeAPI v7 SDK header
Timo Rothenpieler [Sat, 27 Aug 2016 12:39:35 +0000 (14:39 +0200)]
avcodec/nvenc: include nvEncodeAPI v7 SDK header

As Nvidia has put the most recent Video Codec SDK behind a double
registration wall, of which one needs manual approval of a lenghty
application, bundling this header saves everyone trying to use NVENC
from that headache.

The header is still MIT licensed and thus fine to bundle with ffmpeg.

Not bundling this header would get ffmpeg stuck at SDK v6, which is
still freely available, holding back future development of the NVENC
encoder.

3 years agoavformat: fix decoded creation_time timestamps
Marton Balint [Wed, 29 Jun 2016 22:55:48 +0000 (00:55 +0200)]
avformat: fix decoded creation_time timestamps

Use proper ISO 8601 timestamps which also signal that they are in UTC.

This changes the format of creation_time and modification_date metadata values
from 2016-06-01 22:30:00 to 2016-01-01T22:30:00.000000Z

Fixes ticket #5673.

Signed-off-by: Marton Balint <cus@passwd.hu>