ffmpeg.git
6 years agoyuv2rgb: remove assert() the codepath is not invalid
Michael Niedermayer [Thu, 7 Jun 2012 15:45:16 +0000 (17:45 +0200)]
yuv2rgb: remove assert() the codepath is not invalid

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agosvq1enc: use av_assert
Michael Niedermayer [Thu, 7 Jun 2012 15:41:12 +0000 (17:41 +0200)]
svq1enc: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg: move keyboard interaction in a function.
Nicolas George [Wed, 6 Jun 2012 13:56:34 +0000 (15:56 +0200)]
ffmpeg: move keyboard interaction in a function.

It makes the transcode loop easier to read (30% less code)
and the differences with avconv easier to spot.

6 years agolavfi/audio: fix size of copied samples.
Nicolas George [Wed, 6 Jun 2012 11:25:34 +0000 (13:25 +0200)]
lavfi/audio: fix size of copied samples.

Fixes sporadic segfaults with some filters.

6 years agoffprobe: show packet duration in frame
Stefano Sabatini [Thu, 8 Mar 2012 14:26:57 +0000 (15:26 +0100)]
ffprobe: show packet duration in frame

6 years agoffprobe: honour special value for duration
Stefano Sabatini [Tue, 5 Jun 2012 17:15:58 +0000 (19:15 +0200)]
ffprobe: honour special value for duration

A duration value is undefined when is 0, take into consideration this
fact when printing optional fields.

6 years agolavfi: remove avfilter_default_item_name() from public API
Stefano Sabatini [Tue, 5 Jun 2012 16:58:51 +0000 (18:58 +0200)]
lavfi: remove avfilter_default_item_name() from public API

The function was introduced in 4d6a8a2bdb19 and is not used anymore
outside avfilter.c.

This avoids to pollute the public API with an apparently unnecessary
function. The function was introduced a few days ago, so removing it from
the public API should do no much harm.

6 years agolavfi/ocv: fix compilation after internalization of public functions
Stefano Sabatini [Wed, 6 Jun 2012 21:14:36 +0000 (23:14 +0200)]
lavfi/ocv: fix compilation after internalization of public functions

Include missing required internal headers.

6 years agotools/graph2dot: factorize code printing non-media specific link information
Stefano Sabatini [Wed, 6 Jun 2012 21:18:46 +0000 (23:18 +0200)]
tools/graph2dot: factorize code printing non-media specific link information

6 years agotools/graph2dot: show input and output pad names in the link label
Stefano Sabatini [Tue, 5 Jun 2012 16:39:09 +0000 (18:39 +0200)]
tools/graph2dot: show input and output pad names in the link label

6 years agowmv2enc: use av_assert
Michael Niedermayer [Wed, 6 Jun 2012 19:18:47 +0000 (21:18 +0200)]
wmv2enc: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agosinewin_tablegen: use av_assert
Michael Niedermayer [Wed, 6 Jun 2012 19:18:33 +0000 (21:18 +0200)]
sinewin_tablegen: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoput_bits: use av_assert
Michael Niedermayer [Wed, 6 Jun 2012 19:18:14 +0000 (21:18 +0200)]
put_bits: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agogolomb: use av_assert
Michael Niedermayer [Wed, 6 Jun 2012 18:13:17 +0000 (20:13 +0200)]
golomb: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoresample_template: use av_assert
Michael Niedermayer [Wed, 6 Jun 2012 18:08:57 +0000 (20:08 +0200)]
resample_template: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibavutil/integer: use av_assert
Michael Niedermayer [Wed, 6 Jun 2012 18:01:08 +0000 (20:01 +0200)]
libavutil/integer: use av_assert

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibavutil/mathematics: use av_assert()
Michael Niedermayer [Wed, 6 Jun 2012 18:00:35 +0000 (20:00 +0200)]
libavutil/mathematics: use av_assert()

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agompegvideo: fix out of heap array accesses
Michael Niedermayer [Wed, 6 Jun 2012 17:26:21 +0000 (19:26 +0200)]
mpegvideo: fix out of heap array accesses

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg: Set duration on encoded subtitle packets.
Philip Langdale [Thu, 31 May 2012 04:08:01 +0000 (21:08 -0700)]
ffmpeg: Set duration on encoded subtitle packets.

Currently, we don't set the duration on the packet of a newly
encoded subtitle. This information may be required by the
muxer.

Signed-off-by: Philip Langdale <philipl@overt.org>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agosearch_for_quantizers_faac: fix curband
Michael Niedermayer [Wed, 6 Jun 2012 16:35:05 +0000 (18:35 +0200)]
search_for_quantizers_faac: fix curband

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agomxfenc: write optional field dominance flag in picture description
Matthieu Bouron [Sun, 27 May 2012 12:21:41 +0000 (14:21 +0200)]
mxfenc: write optional field dominance flag in picture description

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg: avoid a confusing and easy to break if().
Reimar Döffinger [Wed, 6 Jun 2012 10:39:07 +0000 (12:39 +0200)]
ffmpeg: avoid a confusing and easy to break if().

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoFix maxband limit when decoding mpc8.
Carl Eugen Hoyos [Wed, 6 Jun 2012 11:09:02 +0000 (13:09 +0200)]
Fix maxband limit when decoding mpc8.

Fixes yesterday's merge of Kostya's fix for ticket #409.

6 years agoffmpeg: use isatty() before messing with the terminal state
Michael Niedermayer [Tue, 5 Jun 2012 17:58:03 +0000 (19:58 +0200)]
ffmpeg: use isatty() before messing with the terminal state

This fixes terminal messup in case of crashes (like in make fate)

Reviewed-by: François Revol <revol@free.fr>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Tue, 5 Jun 2012 20:43:44 +0000 (22:43 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  vorbis: Validate that the floor 1 X values contain no duplicates.
  avprobe: Identify codec probe failures rather than calling them unsupported codecs.
  avformat: Probe codecs at score 0 on buffer exhaustion conditions.
  avformat: Factorize codec probing.
  Indeo Audio decoder
  imc: make IMDCT support stereo output
  imc: move channel-specific data into separate context
  lavfi: remove request/poll and drawing functions from public API on next bump
  lavfi: make avfilter_insert_pad and pals private on next bump.
  lavfi: make formats API private on next bump.
  avplay: use buffersrc instead of custom input filter.
  avtools: move buffer management code from avconv to cmdutils.
  avconv: don't use InputStream in the buffer management code.
  avconv: fix exiting when max frames is reached.
  mpc8: fix maximum bands handling
  aacdec: Turn PS off when switching to stereo and turn it to implicit when switching to mono.

Conflicts:
Changelog
cmdutils.h
ffmpeg.c
ffplay.c
ffprobe.c
libavcodec/avcodec.h
libavcodec/mpc8.c
libavcodec/v210dec.h
libavcodec/version.h
libavcodec/vorbisdec.c
libavfilter/avfilter.c
libavfilter/avfilter.h
libavfilter/buffersrc.c
libavfilter/formats.c
libavfilter/src_movie.c
libavfilter/vf_aspect.c
libavfilter/vf_blackframe.c
libavfilter/vf_boxblur.c
libavfilter/vf_crop.c
libavfilter/vf_cropdetect.c
libavfilter/vf_delogo.c
libavfilter/vf_drawbox.c
libavfilter/vf_drawtext.c
libavfilter/vf_fade.c
libavfilter/vf_fifo.c
libavfilter/vf_format.c
libavfilter/vf_frei0r.c
libavfilter/vf_gradfun.c
libavfilter/vf_hflip.c
libavfilter/vf_hqdn3d.c
libavfilter/vf_libopencv.c
libavfilter/vf_lut.c
libavfilter/vf_overlay.c
libavfilter/vf_pad.c
libavfilter/vf_scale.c
libavfilter/vf_select.c
libavfilter/vf_showinfo.c
libavfilter/vf_transpose.c
libavfilter/vf_unsharp.c
libavfilter/vf_yadif.c
libavfilter/vsrc_color.c
libavfilter/vsrc_testsrc.c
libavformat/utils.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavfi: remove more instances of avfilter_default_filter_name()
Stefano Sabatini [Tue, 5 Jun 2012 16:57:09 +0000 (18:57 +0200)]
lavfi: remove more instances of avfilter_default_filter_name()

They were discarded in 0f0f3bd1e0.

6 years agovorbis: Validate that the floor 1 X values contain no duplicates.
Alex Converse [Tue, 5 Jun 2012 01:27:03 +0000 (18:27 -0700)]
vorbis: Validate that the floor 1 X values contain no duplicates.

Duplicate values in this vector are explicitly banned by the Vorbis I spec
and cause divide-by-zero crashes later on.

6 years agoavprobe: Identify codec probe failures rather than calling them unsupported codecs.
Alex Converse [Tue, 5 Jun 2012 00:35:51 +0000 (17:35 -0700)]
avprobe: Identify codec probe failures rather than calling them unsupported codecs.

6 years agoavformat: Probe codecs at score 0 on buffer exhaustion conditions.
Alex Converse [Mon, 4 Jun 2012 23:58:48 +0000 (16:58 -0700)]
avformat: Probe codecs at score 0 on buffer exhaustion conditions.

6 years agoavformat: Factorize codec probing.
Alex Converse [Mon, 4 Jun 2012 23:07:48 +0000 (16:07 -0700)]
avformat: Factorize codec probing.

6 years agolavc: add pkt_duration field to AVFrame
Stefano Sabatini [Thu, 8 Mar 2012 14:22:53 +0000 (15:22 +0100)]
lavc: add pkt_duration field to AVFrame

6 years agolavfi: move avfilter_copy_frame_props() definition from buffer.c to avcodec.c
Stefano Sabatini [Fri, 1 Jun 2012 09:05:44 +0000 (11:05 +0200)]
lavfi: move avfilter_copy_frame_props() definition from buffer.c to avcodec.c

The new location is more suited, as it is where the lavfi/lavc glue is
defined.

6 years agoIndeo Audio decoder
Kostya Shishkov [Sat, 2 Jun 2012 19:07:02 +0000 (21:07 +0200)]
Indeo Audio decoder

6 years agoimc: make IMDCT support stereo output
Kostya Shishkov [Sat, 2 Jun 2012 18:35:41 +0000 (20:35 +0200)]
imc: make IMDCT support stereo output

This will be useful for Indeo Audio decoder which is almost the same
but supports stereo.

6 years agoimc: move channel-specific data into separate context
Kostya Shishkov [Sat, 2 Jun 2012 18:30:23 +0000 (20:30 +0200)]
imc: move channel-specific data into separate context

This will be useful for Indeo Audio decoder which is almost the same
but supports stereo.

6 years agoaconvert filter needs to configure samplerates
Andrew Wason [Tue, 5 Jun 2012 15:02:43 +0000 (11:02 -0400)]
aconvert filter needs to configure samplerates

I changed the *_set_common_* functions to only set unset formats, then
added a wrapper that calls them after the filters query_formats.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswr-test: support "--help"
Michael Niedermayer [Tue, 5 Jun 2012 15:12:50 +0000 (17:12 +0200)]
swr-test: support "--help"

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agobuildsys: fix rules for swresample-test
Michael Niedermayer [Tue, 5 Jun 2012 15:06:19 +0000 (17:06 +0200)]
buildsys: fix rules for swresample-test

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolibswresample/Makefile: put each object on its own line
Michael Niedermayer [Tue, 5 Jun 2012 15:05:30 +0000 (17:05 +0200)]
libswresample/Makefile: put each object on its own line

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoswscale: RGBA64LE <-> RGBA64BE support
Paul B Mahol [Tue, 5 Jun 2012 12:14:27 +0000 (12:14 +0000)]
swscale: RGBA64LE <-> RGBA64BE support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agoavfiltergraph: call query_formats on inputs first.
Nicolas George [Sun, 3 Jun 2012 19:53:22 +0000 (21:53 +0200)]
avfiltergraph: call query_formats on inputs first.

This is a temporary workaround for amerge,
until format renegociation is implemented.

Should fix trac ticket #1400.

6 years agoavfiltergraph: check query_formats return value.
Nicolas George [Sun, 3 Jun 2012 19:48:59 +0000 (21:48 +0200)]
avfiltergraph: check query_formats return value.

6 years agoMake H264 reorder buffer size message less verbose.
Carl Eugen Hoyos [Tue, 5 Jun 2012 10:52:07 +0000 (12:52 +0200)]
Make H264 reorder buffer size message less verbose.

6 years agosnowdec: add new line to some error messages
Piotr Bandurski [Tue, 5 Jun 2012 10:15:18 +0000 (12:15 +0200)]
snowdec: add new line to some error messages

6 years agoisom: add Radius DV YUV FourCCs
Piotr Bandurski [Tue, 5 Jun 2012 10:13:39 +0000 (12:13 +0200)]
isom: add Radius DV YUV FourCCs

6 years agolavfi: move tracing utilities definition from video.c to avfilter.c
Stefano Sabatini [Fri, 1 Jun 2012 21:05:13 +0000 (23:05 +0200)]
lavfi: move tracing utilities definition from video.c to avfilter.c

These utilities are meant to be defined in avfilter.c, since they are
generic and thus contain both audio and video code.

6 years agoAdd missing CRLFs to avisynth error messages.
Carl Eugen Hoyos [Tue, 5 Jun 2012 09:13:30 +0000 (11:13 +0200)]
Add missing CRLFs to avisynth error messages.

6 years agoFix MP2 muxer Makefile dependencies.
Carl Eugen Hoyos [Tue, 5 Jun 2012 07:54:03 +0000 (09:54 +0200)]
Fix MP2 muxer Makefile dependencies.

Found, analysed and tested by trac user Jamal.

Fixes ticket #1411

6 years agolavfi: remove request/poll and drawing functions from public API on next bump
Anton Khirnov [Wed, 30 May 2012 09:20:32 +0000 (11:20 +0200)]
lavfi: remove request/poll and drawing functions from public API on next bump

They are only useful inside filters and we don't allow user filters for
now.

6 years agolavfi: make avfilter_insert_pad and pals private on next bump.
Anton Khirnov [Wed, 30 May 2012 08:31:48 +0000 (10:31 +0200)]
lavfi: make avfilter_insert_pad and pals private on next bump.

They are only useful inside filters and we don't allow user filters for
now.

6 years agolavfi: make formats API private on next bump.
Anton Khirnov [Wed, 30 May 2012 08:12:55 +0000 (10:12 +0200)]
lavfi: make formats API private on next bump.

It is only useful inside filters and we don't allow user filters for
now.

6 years agoavplay: use buffersrc instead of custom input filter.
Anton Khirnov [Wed, 30 May 2012 06:53:08 +0000 (08:53 +0200)]
avplay: use buffersrc instead of custom input filter.

We do not allow user filters, so avtools shouldn't use them either.

It also allows to reuse buffer management code from avconv, thus
reducing duplication.

6 years agoavtools: move buffer management code from avconv to cmdutils.
Anton Khirnov [Wed, 30 May 2012 05:57:59 +0000 (07:57 +0200)]
avtools: move buffer management code from avconv to cmdutils.

It will be used by avplay.

6 years agoavconv: don't use InputStream in the buffer management code.
Anton Khirnov [Wed, 30 May 2012 05:32:43 +0000 (07:32 +0200)]
avconv: don't use InputStream in the buffer management code.

Use just the pointer to the head of the buffer pool.

This will allow sharing the code with avplay.

6 years agoavconv: fix exiting when max frames is reached.
Anton Khirnov [Mon, 4 Jun 2012 18:01:55 +0000 (20:01 +0200)]
avconv: fix exiting when max frames is reached.

frame number should never be strictly larger than max frames, so the
if() was never triggered.

6 years agolavfi/select: use exported dsputil_init function.
Clément Bœsch [Tue, 5 Jun 2012 05:27:41 +0000 (07:27 +0200)]
lavfi/select: use exported dsputil_init function.

This is the deprecated version of the function but it is exported, so it
should fix the shared FATE box.

6 years agompc8: fix maximum bands handling
Kostya Shishkov [Mon, 4 Jun 2012 06:01:34 +0000 (08:01 +0200)]
mpc8: fix maximum bands handling

In Musepack SV8 codec property tell the maximum nonzero band, but every
frame codes maximum band as a limit (i.e. strictly less than given value).
Synthesis also expects maximum nonzero band, so there's a need to convert
frame maximum band limit value.

6 years agoMANGLEd swscale x86 asm to save registers
Michael Bradshaw [Mon, 4 Jun 2012 19:15:58 +0000 (13:15 -0600)]
MANGLEd swscale x86 asm to save registers

register starvation caused gcc4.2 to fail building 32 bit shared libs
on 64 bit OS X

Signed-off-by: Michael Bradshaw <mbradshaw@sorensonmedia.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoupdate filtering_audio example
Andrew Wason [Mon, 4 Jun 2012 18:07:15 +0000 (14:07 -0400)]
update filtering_audio example

The filtering_audio.c example needs to be updated for the new
"abuffer" filter args.

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavfi/select: 10l: llabs -> fabs after switching types.
Clément Bœsch [Mon, 4 Jun 2012 22:17:38 +0000 (00:17 +0200)]
lavfi/select: 10l: llabs -> fabs after switching types.

6 years agoaacdec: Turn PS off when switching to stereo and turn it to implicit when switching...
Alex Converse [Tue, 22 May 2012 21:43:28 +0000 (14:43 -0700)]
aacdec: Turn PS off when switching to stereo and turn it to implicit when switching to mono.

6 years agoMerge remote-tracking branch 'cus/stable'
Michael Niedermayer [Mon, 4 Jun 2012 21:35:36 +0000 (23:35 +0200)]
Merge remote-tracking branch 'cus/stable'

* cus/stable:
  ffplay: calculate audio diff threshold based on the actual settings
  ffplay: try more channel count combinations for SDL_OpenAudio
  ffplay: simplify audio_open, rename parameters to more explanatory names
  ffplay: remove VideoState from audio_open
  ffplay: put audio parameters to their own struct
  ffplay: put audio_open into a seperate function

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Mon, 4 Jun 2012 20:54:15 +0000 (22:54 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  movenc: Write chan atom for all audio tracks in mov mode movies.
  mpegtsenc: use avio_open_dyn_buf(), zero pointers after freeing
  doc/avconv: add some details about the transcoding process.
  avidec: make scale and rate unsigned.
  avconv: check output stream recording time before each frame returned from filters
  avconv: split selecting input file out of transcode().
  avconv: split checking for active outputs out of transcode().
  avfiltergraph: make some functions static.

Conflicts:
ffmpeg.c
libavfilter/avfiltergraph.c
libavfilter/internal.h
libavformat/mpegtsenc.c
tests/ref/fate/acodec-alac
tests/ref/fate/acodec-pcm-s16be
tests/ref/fate/acodec-pcm-s24be
tests/ref/fate/acodec-pcm-s32be
tests/ref/fate/acodec-pcm-s8
tests/ref/lavf/mov

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg: remove two unused variables.
Clément Bœsch [Mon, 4 Jun 2012 20:32:26 +0000 (22:32 +0200)]
ffmpeg: remove two unused variables.

6 years agoChangelog: add ffprobe flat output.
Clément Bœsch [Mon, 4 Jun 2012 19:46:24 +0000 (21:46 +0200)]
Changelog: add ffprobe flat output.

6 years agolavfi/select: add scene detection.
Clément Bœsch [Sat, 26 May 2012 10:38:59 +0000 (12:38 +0200)]
lavfi/select: add scene detection.

Based on the shotdetect algorithm (http://shotdetect.nonutc.fr/ by Johan
MATHE johan.mathe tremplin-utc.net).

6 years agoDo not try to encode DVCPRO HD, it produces broken files.
Carl Eugen Hoyos [Mon, 4 Jun 2012 18:42:00 +0000 (20:42 +0200)]
Do not try to encode DVCPRO HD, it produces broken files.

6 years agoAllow colour space autodetection when encoding ljpeg.
Carl Eugen Hoyos [Mon, 4 Jun 2012 18:01:39 +0000 (20:01 +0200)]
Allow colour space autodetection when encoding ljpeg.

This works as expected if the input stream is not yuv4xxp.

Reviewed-by: Paul B Mahol
6 years agoRemove misplaced comment.
Carl Eugen Hoyos [Mon, 4 Jun 2012 18:01:36 +0000 (20:01 +0200)]
Remove misplaced comment.

6 years agoffprobe/flat: add escape for '`' and '$'.
Clément Bœsch [Mon, 4 Jun 2012 17:14:51 +0000 (19:14 +0200)]
ffprobe/flat: add escape for '`' and '$'.

6 years agomovenc: Write chan atom for all audio tracks in mov mode movies.
Alex Converse [Thu, 31 May 2012 00:51:12 +0000 (17:51 -0700)]
movenc: Write chan atom for all audio tracks in mov mode movies.

6 years agoffmpeg: disable audio volume insertion on the output side.
Michael Niedermayer [Mon, 4 Jun 2012 13:46:59 +0000 (15:46 +0200)]
ffmpeg: disable audio volume insertion on the output side.

This fixes -vol leading to 2 inserted volume filters

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agompegtsenc: use avio_open_dyn_buf(), zero pointers after freeing
Jindřich Makovička [Sun, 3 Jun 2012 04:11:10 +0000 (06:11 +0200)]
mpegtsenc: use avio_open_dyn_buf(), zero pointers after freeing

Per suggestion by Michael Niedermayer.

Signed-off-by: Jindřich Makovička <makovick@gmail.com>
Signed-off-by: Martin Storsjö <martin@martin.st>
6 years agodoc/avconv: add some details about the transcoding process.
Anton Khirnov [Mon, 4 Jun 2012 09:00:34 +0000 (11:00 +0200)]
doc/avconv: add some details about the transcoding process.

6 years agoavidec: make scale and rate unsigned.
Anton Khirnov [Mon, 4 Jun 2012 09:36:51 +0000 (11:36 +0200)]
avidec: make scale and rate unsigned.

The specs say they are unsigned 32bit integers.

6 years agoavconv: check output stream recording time before each frame returned from filters
Anton Khirnov [Sun, 3 Jun 2012 09:35:38 +0000 (11:35 +0200)]
avconv: check output stream recording time before each frame returned from filters

There may be multiple frames returned, so with just one check we can
write more than requested to the output.

6 years agoavconv: split selecting input file out of transcode().
Anton Khirnov [Fri, 1 Jun 2012 09:00:27 +0000 (11:00 +0200)]
avconv: split selecting input file out of transcode().

6 years agoavconv: split checking for active outputs out of transcode().
Anton Khirnov [Fri, 1 Jun 2012 08:44:11 +0000 (10:44 +0200)]
avconv: split checking for active outputs out of transcode().

6 years agoavfiltergraph: make some functions static.
Anton Khirnov [Wed, 16 May 2012 05:59:52 +0000 (07:59 +0200)]
avfiltergraph: make some functions static.

They are not used outside of avfiltergraph.c

6 years agolibopenjpeg: YUV410P and YUV411P support
Paul B Mahol [Fri, 1 Jun 2012 12:18:05 +0000 (12:18 +0000)]
libopenjpeg: YUV410P and YUV411P support

Signed-off-by: Paul B Mahol <onemda@gmail.com>
6 years agoFix compilation condition for some ProRes dsp encoder functions.
Carl Eugen Hoyos [Mon, 4 Jun 2012 10:18:56 +0000 (12:18 +0200)]
Fix compilation condition for some ProRes dsp encoder functions.

Found, analysed and tested by trac user Jamal.

Fixes part of Ticket #1404.

6 years agoFix compilation condition for some ProRes dsp decoder functions.
Carl Eugen Hoyos [Mon, 4 Jun 2012 10:15:41 +0000 (12:15 +0200)]
Fix compilation condition for some ProRes dsp decoder functions.

Found, analysed and tested by trac user Jamal.

Fixes part of Ticket #1404.

6 years agoFix ProRes decoder Makefile dependencies.
Carl Eugen Hoyos [Mon, 4 Jun 2012 10:07:30 +0000 (12:07 +0200)]
Fix ProRes decoder Makefile dependencies.

Found, analysed and tested by trac user Jamal.

Fixes part of Ticket #1404.

6 years agoFix G.723.1 encoder Makefile dependencies.
Carl Eugen Hoyos [Mon, 4 Jun 2012 10:06:48 +0000 (12:06 +0200)]
Fix G.723.1 encoder Makefile dependencies.

6 years agoffmpeg: add missing return carriage in error message.
Clément Bœsch [Mon, 4 Jun 2012 07:09:13 +0000 (09:09 +0200)]
ffmpeg: add missing return carriage in error message.

6 years agooptions: stop after option is found.
Clément Bœsch [Wed, 30 May 2012 12:40:28 +0000 (14:40 +0200)]
options: stop after option is found.

This reverts 78da04384a6c22820518706d84631006d31a85ea; it is not
required anymore since the previous commit (these extended checks were
for the -timecode option in both muxers and encoders), and reduces the
diff with the fork.

6 years agotimecode: move timecode muxer options to metadata.
Clément Bœsch [Wed, 30 May 2012 08:26:53 +0000 (10:26 +0200)]
timecode: move timecode muxer options to metadata.

Some demuxers set a timecode in the format or streams metadata. The
muxers now make use of this metadata instead of a duplicated private
option.

This makes possible transparent copy of the timecode when transmuxing
and transcoding.

-timecode option for MPEG1/2 codec is also renamed to -gop_timecode. The
global ffmpeg -timecode option will set it anyway so no option change
visible for the user.

6 years agolavfi: use av_default_item_name() as filter private context logger
Stefano Sabatini [Mon, 4 Jun 2012 00:31:49 +0000 (02:31 +0200)]
lavfi: use av_default_item_name() as filter private context logger

avfilter_default_filter_name() is supposed to access an AVFilterContext
struct, if used with a private struct it will cause a crash since it will
access fields which are non defined in the private struct.

6 years agoffv1dec: print more information for -debug 1
Michael Niedermayer [Sun, 3 Jun 2012 23:00:26 +0000 (01:00 +0200)]
ffv1dec: print more information for -debug 1

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffv1: fix log level of FF_DEBUG_PICT_INFO
Michael Niedermayer [Sun, 3 Jun 2012 22:55:02 +0000 (00:55 +0200)]
ffv1: fix log level of FF_DEBUG_PICT_INFO

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agoffmpeg: be more verbose when printing an error in transcode()
Stefano Sabatini [Fri, 1 Jun 2012 16:24:02 +0000 (18:24 +0200)]
ffmpeg: be more verbose when printing an error in transcode()

Helps debuggability.

6 years agoffmpeg: specify more meaningful names for the lavfi buffer sources
Stefano Sabatini [Fri, 1 Jun 2012 12:46:19 +0000 (14:46 +0200)]
ffmpeg: specify more meaningful names for the lavfi buffer sources

6 years agolavfi: add avfilter_default_filter_name()
Stefano Sabatini [Fri, 1 Jun 2012 12:46:54 +0000 (14:46 +0200)]
lavfi: add avfilter_default_filter_name()

The function is modelled after av_default_item_name(), and will print the
name of the instance filter if defined, otherwise the name of the filter.

This allows to show the instance name in the log, which is useful when
debugging complex filter graphs.

6 years agoMerge remote-tracking branch 'qatar/master'
Michael Niedermayer [Sun, 3 Jun 2012 22:33:42 +0000 (00:33 +0200)]
Merge remote-tracking branch 'qatar/master'

* qatar/master:
  librtmp: return AVERROR_UNKNOWN instead of -1.
  librtmp: don't abuse a variable for two unrelated things.
  librtmp: add rtmp_app and rtmp_playpath private options.
  bmv: add stricter checks for invalid decoded length
  avpacket: fix duplicating side data.
  flv: support stream text data as onTextData

Conflicts:
libavcodec/bmv.c
libavformat/flvdec.c
libavformat/flvenc.c

Merged-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolavc/raw: add test utility for listing fourcc/pix_fmt map
Stefano Sabatini [Fri, 25 May 2012 23:23:04 +0000 (01:23 +0200)]
lavc/raw: add test utility for listing fourcc/pix_fmt map

The test program is useful for checking which raw formats are currently
identified by a codec tag.

6 years agolavfi/lut: fix component -> rgba mapping
Stefano Sabatini [Thu, 31 May 2012 08:11:09 +0000 (10:11 +0200)]
lavfi/lut: fix component -> rgba mapping

6 years agoffmpeg: use filter time base as codec time base.
Nicolas George [Wed, 23 May 2012 12:31:30 +0000 (14:31 +0200)]
ffmpeg: use filter time base as codec time base.

6 years agoffmpeg: avoid NULL dereference with filters.
Nicolas George [Wed, 23 May 2012 19:19:16 +0000 (21:19 +0200)]
ffmpeg: avoid NULL dereference with filters.

icodec can be NULL if there is no input stream
clearly associated with the output stream.

6 years agolog: color prefixes according to their source.
Michael Niedermayer [Mon, 28 May 2012 01:09:55 +0000 (03:09 +0200)]
log: color prefixes according to their source.

The use of cyan is droped from the levels to avoid confusion
magenta/cyan/blue is used for muxer/codec/filter layer

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
6 years agolog: add AV_CLASS_CATEGORY_NB
Michael Niedermayer [Sun, 3 Jun 2012 19:57:17 +0000 (21:57 +0200)]
log: add AV_CLASS_CATEGORY_NB

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>