Anton Khirnov [Sat, 26 May 2012 10:47:47 +0000 (12:47 +0200)]
avconv: merge configuration code for complex and simple filters
Some tests change because -s now inserts the scaler to the end instead
of beginning of the filtergraph.
Anton Khirnov [Sat, 26 May 2012 09:18:21 +0000 (11:18 +0200)]
avconv: split configuring input filters out of configure_complex_filter
Mans Rullgard [Tue, 29 May 2012 08:49:44 +0000 (09:49 +0100)]
fate: fix acodec/vsynth tests for make 3.81
GNU make 3.81 applies pattern rules in declaration order rather than
by stem length as in 3.82. This moves the more generic patterns above
the more specific ones such that they work with either make version.
Some of the vsynth patterns are also simplified a little.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Hendrik Leppkes [Tue, 10 Apr 2012 17:49:14 +0000 (19:49 +0200)]
pcm_mpeg: fix number of consumed bytes to include the header.
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Janne Grunau [Tue, 29 May 2012 13:36:06 +0000 (15:36 +0200)]
avfilter: include required header file avfilter.h in video.h
Vitor Sessak [Fri, 11 May 2012 20:32:08 +0000 (22:32 +0200)]
x86: Avoid movs on BUTTERFLYPS when in AVX mode
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Vitor Sessak [Sun, 27 May 2012 17:43:56 +0000 (17:43 +0000)]
x86: use new schema for ASM macros
Signed-off-by: Janne Grunau <janne-libav@jannau.net>
Mans Rullgard [Fri, 18 May 2012 09:33:28 +0000 (10:33 +0100)]
fate: convert codec-regression.sh to makefile rules
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Thu, 17 May 2012 18:14:17 +0000 (19:14 +0100)]
fate: allow tests to specify unit size for psnr comparison
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Thu, 17 May 2012 14:55:14 +0000 (15:55 +0100)]
fate: teach videogen/rotozoom to output a single raw video stream
This makes videogen/rotozoom output a raw video stream on stdout
if no output directory is specified.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Samuel Pitoiset [Mon, 28 May 2012 13:03:54 +0000 (15:03 +0200)]
http: Add support for reusing the http socket for subsequent requests
Introduce ff_http_do_new_request(), a new function which sends a new
HTTP request, reusing the existing connection to the server.
Signed-off-by: Martin Storsjö <martin@martin.st>
Samuel Pitoiset [Mon, 28 May 2012 13:03:19 +0000 (15:03 +0200)]
http: Add support for using persistent connections
Add a new AVOption 'multiple_requests', which indicates if we want
to use persistent connections (ie. Connection: keep-alive).
Signed-off-by: Martin Storsjö <martin@martin.st>
Anton Khirnov [Mon, 28 May 2012 05:27:15 +0000 (07:27 +0200)]
AVOptions: fix the value printed in out of range error message.
Anton Khirnov [Sat, 26 May 2012 06:54:25 +0000 (08:54 +0200)]
avprobe: restore pseudo-INI old style format for compatibility.
Anton Khirnov [Sat, 26 May 2012 06:52:19 +0000 (08:52 +0200)]
avprobe: fix formatting.
Anton Khirnov [Sat, 26 May 2012 06:24:14 +0000 (08:24 +0200)]
log: make colored output more colorful.
Green for verbose, cyan for debug.
Martin Storsjö [Thu, 8 Dec 2011 13:19:58 +0000 (15:19 +0200)]
rtsp: Check for dynamic payload handlers if no static payload mapping was found
Some systems abuse the static payload types 35 or 36 (which
according to IANA are unassigned) for H264.
Signed-off-by: Martin Storsjö <martin@martin.st>
Samuel Pitoiset [Fri, 25 May 2012 10:32:39 +0000 (12:32 +0200)]
opt: Add av_opt_set_bin()
Introduce a new function to set binary data through AVOption,
avoiding having to convert the binary data to a string inbetween.
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Fri, 25 May 2012 21:55:56 +0000 (00:55 +0300)]
avconv: Display the error returned by avformat_write_header
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Fri, 25 May 2012 19:26:00 +0000 (22:26 +0300)]
rtpenc_chain: Return an error code instead of just a plain pointer
Also check the return value in sapenc.
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Fri, 25 May 2012 21:40:54 +0000 (00:40 +0300)]
rtpenc_chain: Free the URLContext on failure
If an URLContext is passed in, its ownership is given to this
function, and is either owned by the returned AVFormatContext
on a successful return, or freed on failure.
Signed-off-by: Martin Storsjö <martin@martin.st>
Martin Storsjö [Fri, 25 May 2012 21:18:01 +0000 (00:18 +0300)]
rtpenc: Expose the ssrc as an avoption
This allows the caller to set it, and allows the caller to query
what it was set to.
Signed-off-by: Martin Storsjö <martin@martin.st>
Christian Schmidt [Fri, 25 May 2012 22:34:12 +0000 (15:34 -0700)]
avprobe: display the codec profile in show_stream()
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
Luca Barbato [Fri, 25 May 2012 22:19:50 +0000 (15:19 -0700)]
avprobe: fix function prototype
Make opt_output_format return the correct value.
Martin Storsjö [Fri, 25 May 2012 19:16:06 +0000 (22:16 +0300)]
cosmetics: Fix indentation
Signed-off-by: Martin Storsjö <martin@martin.st>
Luca Barbato [Fri, 25 May 2012 19:58:58 +0000 (12:58 -0700)]
avprobe: changelog entry
Luca Barbato [Fri, 25 May 2012 19:57:36 +0000 (12:57 -0700)]
avprobe: update documentation
Update the documentation according to the latest changes
Luca Barbato [Thu, 24 May 2012 19:22:29 +0000 (12:22 -0700)]
avprobe: provide JSON output
JSON usage is quite widespread.
Luca Barbato [Fri, 18 May 2012 01:02:57 +0000 (18:02 -0700)]
avprobe: output proper INI format
Make the output valid INI serialization.
Luca Barbato [Fri, 25 May 2012 18:47:06 +0000 (11:47 -0700)]
avprobe: improve formatting
Do not use decimals if not needed.
Luca Barbato [Tue, 15 May 2012 00:24:27 +0000 (17:24 -0700)]
rtmp: fix url parsing
The application component can have a subcomponent to specify the
application instance even if it doesn't have a ":" in the playpath.
Luca Barbato [Mon, 14 May 2012 22:44:30 +0000 (15:44 -0700)]
fate: document TARGET_EXEC and its usage
TARGET_EXEC allows running FATE on simulators, remote targets and
memory checkers. Also document a known issue with Wine and mixed
Unix/Windows line ending.
Alex Converse [Wed, 23 May 2012 18:32:52 +0000 (11:32 -0700)]
movenc: Don't write the 'wave' atom or its child 'enda' for lpcm audio.
It's left over from stsd v0. QuickTime 7 no longer writes 'wave' or 'enda'
when 'lpcm' is the audio tag.
Kostya Shishkov [Tue, 22 May 2012 17:45:00 +0000 (19:45 +0200)]
imc: some cosmetics
Samuel Pitoiset [Thu, 24 May 2012 11:48:42 +0000 (13:48 +0200)]
rtmp: Pass the proper return code in rtmp_handshake
Signed-off-by: Martin Storsjö <martin@martin.st>
Samuel Pitoiset [Thu, 24 May 2012 11:48:25 +0000 (13:48 +0200)]
rtmp: Check return codes of net IO operations
Signed-off-by: Martin Storsjö <martin@martin.st>
Samuel Pitoiset [Wed, 23 May 2012 16:55:52 +0000 (18:55 +0200)]
rtmp: Return a proper error code instead of -1
Signed-off-by: Martin Storsjö <martin@martin.st>
Samuel Pitoiset [Wed, 23 May 2012 16:55:34 +0000 (18:55 +0200)]
rtmp: Check malloc calls
Signed-off-by: Martin Storsjö <martin@martin.st>
Samuel Pitoiset [Wed, 23 May 2012 20:45:03 +0000 (22:45 +0200)]
rtmp: Check ff_rtmp_packet_create calls
Check malloc calls used by ff_rtmp_packet_create, unify error
handling and pass on error codes.
Signed-off-by: Martin Storsjö <martin@martin.st>
Justin Ruggles [Tue, 22 May 2012 01:27:59 +0000 (21:27 -0400)]
lavfi: add audio mix filter
Martin Storsjö [Wed, 23 May 2012 13:28:25 +0000 (16:28 +0300)]
flvdec: Make sure sample_rate is set to the updated value
The sample_rate variable is used for checks for audio format
changes at the end of the function.
This fixes cases where the sample rate was set from the codec
id by flv_set_audio_codec (as for nellymoser 8 kHz/16 kHz),
so the value set to last_sample_rate wasn't equal to sample_rate
at this point. This caused the demuxer otherwise reports a spurious
change to 5512 Hz and back to the correct one.
Updating channels in the same way is only done for consistency.
Currently, flv_set_audio_codec doesn't update that value.
Signed-off-by: Martin Storsjö <martin@martin.st>
Michael Niedermayer [Mon, 19 Dec 2011 03:13:37 +0000 (04:13 +0100)]
tqi: Pass errors from the MB decoder
This silences some valgrind warnings.
CC: libav-stable@libav.org
Fixes second half of http://ffmpeg.org/trac/ffmpeg/ticket/794
Bug found by: Oana Stratulat
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Signed-off-by: Reinhard Tartler <siretart@tauware.de>
(cherry picked from commit
f85334f58e1286287d0547a49fa9c93b40cbf48f)
Dave Yeo [Wed, 23 May 2012 20:34:13 +0000 (13:34 -0700)]
os_support: Define SHUT_RD, SHUT_WR and SHUT_RDWR on OS/2
Signed-off-by: Martin Storsjö <martin@martin.st>
Samuel Pitoiset [Mon, 21 May 2012 09:27:10 +0000 (11:27 +0200)]
http: Add support for reading http POST reply headers
Signed-off-by: Martin Storsjö <martin@martin.st>
Samuel Pitoiset [Mon, 21 May 2012 09:26:40 +0000 (11:26 +0200)]
http: Add http_shutdown() for ending writing of posts
Signed-off-by: Martin Storsjö <martin@martin.st>
Samuel Pitoiset [Mon, 21 May 2012 09:24:55 +0000 (11:24 +0200)]
tcp: Allow signalling end of reading/writing
tcp_shutdown() isn't needed at the moment, but is added for
consistency to explain how the function is supposed to be used.
Signed-off-by: Martin Storsjö <martin@martin.st>
Samuel Pitoiset [Mon, 21 May 2012 09:24:54 +0000 (11:24 +0200)]
avio: Add a function for signalling end of reading/writing
Signed-off-by: Martin Storsjö <martin@martin.st>
Anton Khirnov [Mon, 21 May 2012 17:33:35 +0000 (19:33 +0200)]
lavfi: fix comment, audio is supported now.
Anton Khirnov [Mon, 21 May 2012 17:30:07 +0000 (19:30 +0200)]
lavfi: fix incorrect comment.
poll_frame()/request_frame() are used for audio too.
Anton Khirnov [Sat, 19 May 2012 08:37:56 +0000 (10:37 +0200)]
lavfi: remove avfilter_null_* from public API on next bump.
Those functions are only useful inside filters. It is better to not
support user filters until the API is more stable.
Anton Khirnov [Sat, 19 May 2012 08:37:56 +0000 (10:37 +0200)]
lavfi: remove avfilter_default_* from public API on next bump.
Those functions are only useful inside filters. It is better to not
support user filters until the API is more stable.
Mina Nagy Zaki [Thu, 4 Aug 2011 12:47:00 +0000 (15:47 +0300)]
lavfi: deprecate default config_props() callback and refactor avfilter_config_links()
Link properties have to be checked after config_props() is called to
make sure everything is sane, so the default config_props() for output
links was redundant.
Remove now empty defaults.c
Signed-off-by: Anton Khirnov <anton@khirnov.net>
Anton Khirnov [Sat, 19 May 2012 07:19:41 +0000 (09:19 +0200)]
avfiltergraph: smarter sample format selection.
Anton Khirnov [Fri, 18 May 2012 10:46:11 +0000 (12:46 +0200)]
avconv: rename transcode_audio/video to decode_audio/video.
Those functions do only decoding now, encoding is run from
poll_filters().
Anton Khirnov [Tue, 22 May 2012 18:44:07 +0000 (20:44 +0200)]
asyncts: reset delta to 0 when it's not used.
Fixes an invalid write.
Justin Ruggles [Tue, 22 May 2012 01:21:36 +0000 (21:21 -0400)]
x86: lavc: use %if HAVE_AVX guards around AVX functions in yasm code.
This is needed for older versions of yasm/nasm that do not support AVX.
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diego Biurrun [Tue, 22 May 2012 11:50:23 +0000 (13:50 +0200)]
dwt: return errors from ff_slice_buffer_init()
Jordi Ortiz [Tue, 22 May 2012 11:18:17 +0000 (13:18 +0200)]
dwt: check malloc calls
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diego Biurrun [Mon, 21 May 2012 06:47:11 +0000 (08:47 +0200)]
ppc: Drop unused header regs.h
Justin Ruggles [Mon, 21 May 2012 18:59:56 +0000 (14:59 -0400)]
af_resample: remove an extra space in the log output
Kieran Kunhya [Fri, 20 Apr 2012 19:49:30 +0000 (14:49 -0500)]
Convert vector_fmul range of functions to YASM and add AVX versions
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Justin Ruggles [Mon, 21 May 2012 18:03:42 +0000 (14:03 -0400)]
lavfi: add an audio split filter
Based on current version of the asplit filter in FFmpeg written by
Stefano Sabatini and others.
Justin Ruggles [Mon, 21 May 2012 18:00:47 +0000 (14:00 -0400)]
lavfi: rename vf_split.c to split.c
This is in preparation for adding an audio split filter.
Jordi Ortiz [Sat, 19 May 2012 11:06:50 +0000 (13:06 +0200)]
dwt: K&R prettyprinting cosmetics
Signed-off-by: Diego Biurrun <diego@biurrun.de>
Diego Biurrun [Sun, 20 May 2012 21:46:40 +0000 (23:46 +0200)]
Remove libnut wrapper
libnut is unmaintained and known to be buggy; native NUT code exists.
Diego Biurrun [Sun, 20 May 2012 14:10:42 +0000 (16:10 +0200)]
fate: change name of FATE samples location environment variable
FATE_SAMPLES is now used directly by the Makefiles, which induces the test
system to run a test with the value of the environment variable as name.
Renaming the environment variable to LIBAV_SAMPLES avoids this problem.
James Zern [Thu, 26 May 2011 18:19:04 +0000 (20:19 +0200)]
avformat: Add a flag to mark muxers that allow (non strict) monotone timestamps.
Signed-off-by: Justin Ruggles <justin.ruggles@gmail.com>
Samuel Pitoiset [Sun, 20 May 2012 14:20:56 +0000 (16:20 +0200)]
http: Factorize the code by adding http_read_header()
This function is used for reading http reply headers.
Signed-off-by: Martin Storsjö <martin@martin.st>
Diego Biurrun [Sun, 20 May 2012 13:59:30 +0000 (15:59 +0200)]
indeo: Make ivi_calc_band_checksum() static, it is only used in one file.
Diego Biurrun [Sat, 19 May 2012 14:41:42 +0000 (16:41 +0200)]
indeo: Drop unused debug function ivi_check_band().
Diego Biurrun [Wed, 11 Apr 2012 13:00:37 +0000 (15:00 +0200)]
avcodec/utils: cast a function argument to shut up a compiler warning
libavcodec/utils.c:251: note: expected ‘const uint8_t *’ but argument is of type ‘const short int *’
Diego Biurrun [Fri, 29 Jul 2011 10:48:45 +0000 (12:48 +0200)]
truemotion1: remove disabled code
Kostya Shishkov [Sun, 20 May 2012 11:55:33 +0000 (13:55 +0200)]
fix typo in comment
Mans Rullgard [Sat, 19 May 2012 21:56:01 +0000 (22:56 +0100)]
fate: fix dependencies for non-SAMPLES avconv tests
The encode/decode tests should all depend on avconv. Since
avconv requires libavfilter, there is no need to enable those
tests selectively.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Kostya Shishkov [Sat, 19 May 2012 14:07:42 +0000 (16:07 +0200)]
indeo: check for invalid motion vectors
Kostya Shishkov [Sat, 19 May 2012 11:45:00 +0000 (13:45 +0200)]
indeo: check that band output buffer exists
Kostya Shishkov [Sat, 19 May 2012 11:39:15 +0000 (13:39 +0200)]
indeo: clear allocated band buffers
Kostya Shishkov [Sat, 19 May 2012 11:08:51 +0000 (13:08 +0200)]
indeo: track tile macroblock size
Kostya Shishkov [Sat, 19 May 2012 10:39:49 +0000 (12:39 +0200)]
indeo: check custom Huffman tables for errors
Kostya Shishkov [Sat, 19 May 2012 10:23:23 +0000 (12:23 +0200)]
factor out common decoding code for Indeo 4 and Indeo 5
Kostya Shishkov [Wed, 16 May 2012 16:39:40 +0000 (18:39 +0200)]
mp3: fix start band index for block type 2 in 8kHz audio
In hybrid frames long window part ends at 36 samples for most of the cases
but at 72 for 8kHz case. For some reason decoder assumed it's 48 or even 36
samples, which caused wrong bitstream decoding for such blocks.
l3_25207.mpg from conformance suite demonstrates it the best.
Mans Rullgard [Sat, 19 May 2012 16:13:17 +0000 (17:13 +0100)]
lavf: change some (de)muxer names to lowercase
This is consistent with other format names.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Sat, 19 May 2012 17:44:16 +0000 (18:44 +0100)]
lavf: make output format matching case insensitive
This is consistent with how input formats are matched.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Sat, 19 May 2012 12:19:19 +0000 (13:19 +0100)]
fate: fix dependencies on SAMPLES being set
This allows fate to run without errors with or without SAMPLES
being set.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Mans Rullgard [Fri, 18 May 2012 16:08:13 +0000 (17:08 +0100)]
fate: remove unnecessary libavfilter dependency
avconv now requires libavfilter so this dependency is redundant.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Anton Khirnov [Fri, 18 May 2012 10:18:49 +0000 (12:18 +0200)]
avconv: reindent
Anton Khirnov [Wed, 9 May 2012 14:25:02 +0000 (16:25 +0200)]
avconv: replace -vsync cfr code with the fps filter.
Invented timestamps for the h264 tests return to something resembling
sanity.
In the idroq-video-encode test when converting 25 fps -> 30 fps the
fifth frame gets duplicated instead of the sixth.
Anton Khirnov [Thu, 17 May 2012 18:45:51 +0000 (20:45 +0200)]
mov: enable parsing for VC-1.
This makes lavf discard broken timestamps for non-B frames in
samples/isom/vc1-wmapro.ism.
Anton Khirnov [Wed, 9 May 2012 12:08:21 +0000 (14:08 +0200)]
lavfi: Add fps filter.
Partially based on a patch by Robert Nagy <ronag89@gmail.com>
Anton Khirnov [Wed, 16 May 2012 12:57:59 +0000 (14:57 +0200)]
lavfi: initialize pts to AV_NOPTS_VALUE when creating new buffer refs.
Anton Khirnov [Thu, 17 May 2012 11:22:17 +0000 (13:22 +0200)]
avconv: add support for audio in complex filtergraphs.
Diego Biurrun [Wed, 16 May 2012 17:24:39 +0000 (19:24 +0200)]
doc: Replace some @file tags by more suitable markup.
Diego Biurrun [Tue, 15 May 2012 13:00:15 +0000 (15:00 +0200)]
fate: Set FUZZ factor of vorbis-13 test to 2.
This is necessary to account for different rounding done in the 3DNow!
Assembly optimizations.
Diego Biurrun [Tue, 15 May 2012 08:57:51 +0000 (10:57 +0200)]
fate: Set FUZZ factor of (e)ac3-encode test to 3.
This is necessary to account for different rounding done in the 3DNow!
Assembly optimizations.
Mans Rullgard [Fri, 18 May 2012 10:43:07 +0000 (11:43 +0100)]
fate: remove unused code from regressions-funcs.sh
The only uses of the do_avconv_nomd5() function were removed in
85cf49f.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Martin Storsjö [Wed, 16 May 2012 08:45:47 +0000 (11:45 +0300)]
rtmp: Don't assume path points to a string of nonzero length
If using the new -rtmp_app and -rtmp_playpath parameters,
one can in many cases set the main url to just rtmp://server/.
If the trailing slash is omitted, path is a string of zero length,
and using path+1 will end up reading uninitialized data.
Signed-off-by: Martin Storsjö <martin@martin.st>
Anton Khirnov [Thu, 17 May 2012 10:42:03 +0000 (12:42 +0200)]
avconv: fix behavior with -ss as an output option.
Don't return from poll_filters() immediately, there may be other frames
and/or other streams to handle.
Fixes a memleak.
Mans Rullgard [Tue, 15 May 2012 23:01:34 +0000 (00:01 +0100)]
pcmenc: set correct bitrate value
This fixes a bogus bitrate value in the header of WAV files with
alaw/ulaw audio.
Signed-off-by: Mans Rullgard <mans@mansr.com>
Anton Khirnov [Mon, 7 May 2012 20:01:15 +0000 (22:01 +0200)]
avprobe: don't print format entry name when only one was requested
This is easier to parse with automated tools.
Martin Storsjö [Wed, 16 May 2012 09:42:43 +0000 (12:42 +0300)]
fate: Work around non-standard wc implementations at more places
This applies the same fix as in
ed7409fe9d for lavf-regressions.sh.
Signed-off-by: Martin Storsjö <martin@martin.st>