Stefano Sabatini
3293b1adca
lavc: set bit_rate in the decoder context, just after the init stage
...
Also move the get_bit_rate() function, in order to avoid an undefined
symbol reference in avcodec_open2().
2012-02-20 17:46:18 +01:00
Stefano Sabatini
4538d66010
lavfi/aspect: set default value to 0:1, as stated in the docs
...
Fix regression introduced in commit 70ffda3217 .
2012-02-18 11:41:53 +01:00
Stefano Sabatini
80715c3b23
lavfi/aspect: remove confusing comments
2012-02-18 11:37:34 +01:00
Stefano Sabatini
360218713f
lavfi/aspect: show log info even in case no argument is provided to setdar/setsar
2012-02-18 11:31:28 +01:00
Stefano Sabatini
7bdefc0f12
lavfi/overlay: add logic for avoiding overlaying frames with PTS > main frame PTS
...
Also add debug logging messages for helping tracking down similar
issues.
Fix trac ticket #467 .
2012-02-17 00:28:35 +01:00
Stefano Sabatini
f89f9bdadd
lavfi/ashowinfo: only print checksum for the existing planes
...
Make the output a bit nicer.
2012-02-14 18:01:57 +01:00
Stefano Sabatini
1e6408a18e
lavfi/showinfo: only print checksum for the existing planes
...
Make the output a bit nicer.
2012-02-14 18:01:50 +01:00
Stefano Sabatini
175ab5f9a9
lavfi/*showinfo: use av_ts2* macros in showinfo and ashowinfo
2012-02-14 18:01:43 +01:00
Stefano Sabatini
5d12b83ff1
ffmpeg.c: implement -debug_ts option
...
Mostly useful for debugging purposes.
2012-02-14 18:01:37 +01:00
Stefano Sabatini
c28e7af70d
lavu: add timestamp.h header with convenience timestamp utilities
2012-02-09 18:37:58 +01:00
Stefano Sabatini
0349d61eef
lavfi/aspect: rename field aspect->aspect to aspect->ratio
...
The new name is more sensible.
2012-02-07 15:49:01 +01:00
Stefano Sabatini
d21b82fd3a
lavc: provide aliases to the PCM A-law/mu-law codecs
...
They are also known as G.711 codecs.
2012-02-07 15:48:33 +01:00
Stefano Sabatini
f491f033f5
ffmpeg: document the unit for the -fs option parameter
2012-02-06 20:47:09 +01:00
Stefano Sabatini
b7d45d0b0f
lavfi: add setfield filter
2012-02-06 20:46:58 +01:00
Stefano Sabatini
e8a06b1486
lavf/4xm: use proper error codes
2012-02-06 20:33:06 +01:00
Stefano Sabatini
2cbe9121ac
doc/filters.texi: use multiple @example blocks for distinct examples in setdar docs
2012-02-06 11:30:54 +01:00
Stefano Sabatini
23534d0c4c
doc/filters.texi: prefer @example over the unsupported @math for showing equation
2012-02-06 11:30:54 +01:00
Stefano Sabatini
3fa9ace3d8
doc/filters.texi: merge setdar and setsar documentation
...
Most of the documentation is common to both filters, and I'm going to add
more shared docs. Factorize.
2012-02-06 11:30:54 +01:00
Stefano Sabatini
70ffda3217
lavu: introduce av_parse_ratio() and use it in ffmpeg and lavfi/aspect
...
Factorize code and provide ratio parsing consistency.
2012-02-06 11:30:54 +01:00
Stefano Sabatini
1ca0812d90
ffprobe: fix typo in ESCAPE_CHECK_SIZE
2012-02-06 11:30:45 +01:00
Stefano Sabatini
a9117c755e
lavfi: fix mp and mandelbrot descriptions to make them complete sentences
...
This is consistent with the other filter descriptions.
2012-01-21 14:40:46 +01:00
Stefano Sabatini
23934e5f41
ffprobe: increase precision for the shown float values
2012-01-20 13:27:57 +01:00
Stefano Sabatini
4601ad769d
ffprobe: fix value_string() prefix printing for values with negative logarithm
...
The index for the binary_unit_prefixes array is expected to be positive,
so avoid to use negative indexes for accessing it.
2012-01-20 13:27:52 +01:00
Stefano Sabatini
eef4b70450
ffprobe: reindent after previous commit
2012-01-20 13:27:46 +01:00
Stefano Sabatini
58b10b4c7e
ffprobe: factorize common code in value_string()
2012-01-20 13:27:41 +01:00
Stefano Sabatini
72092188ef
ffmpeg: remove unused and commented variable OutputStream.sync_ipts
2012-01-20 10:58:00 +01:00
Stefano Sabatini
140a9afcf2
ffprobe: add more safe casts in value_string()
...
Second attempt at fixing ticket #921 .
2012-01-18 00:44:28 +01:00
Stefano Sabatini
2c8d37c2fb
ffprobe: use safer type for index variable in value_string()
...
There is no guarantee that the casted double which is assigned to the
variable will be contained in an int (also if it is almost sure for most
non-alien architectures).
2012-01-18 00:43:55 +01:00
Stefano Sabatini
54661219c1
ffprobe: fix printing of unit values which cannot be contained in an int
...
Use long long int to contain such values instead of an int, which is
required to contain at least 64 bits, so it is guaranteed to contain also
int64_t values, which are used by some fields.
In particular, should fix trac ticket #921 .
2012-01-18 00:01:07 +01:00
Stefano Sabatini
6c06868e61
doc/ffmpeg.texi: specify symbolic names for the vsync parameter
2012-01-17 23:50:47 +01:00
Stefano Sabatini
24860a913c
tools: add ffeval tool
...
The tool is useful for testing the internal arithmetic evaluation engine
(indeed I plan to use it in FATE), and provides a handy calculator when
you can't rely on bc ;-).
2012-01-17 12:10:07 +01:00
Stefano Sabatini
e4e291061c
doc/eval.texi: add precisation about the assumption for "trueness" in conditional expressions
2012-01-17 12:03:30 +01:00
Stefano Sabatini
999495734b
lavu/eval: add if() and ifnot() eval functions
...
They allow to implement the if/then/else logic, which cannot be
implemented otherwise.
For example the expression:
A*B + not(A)*C
always evaluates to NaN if B is NaN, even in the case where A is 0.
2012-01-17 12:03:30 +01:00
Stefano Sabatini
a798c20a76
lavfi/testsrc: add "decimals" option to the testsrc filter
2012-01-17 12:03:30 +01:00
Stefano Sabatini
9f7144b44c
lavc/mpegvideo_enc: improve log message in case of too large GOP
...
Change log level from ERROR to WARNING and provide more specific
information in the message itself.
2012-01-17 12:03:30 +01:00
Stefano Sabatini
bb4c0abc7c
ffplay: mark i variable in toggle_full_screen() as unused
...
Fix gcc warning:
ffplay.c: In function ‘toggle_full_screen’:
ffplay.c:2792:9: warning: unused variable ‘i’ [-Wunused-variable]
2012-01-15 14:51:59 +01:00
Stefano Sabatini
4ee03fef53
lavfi/rgbtestsrc: make alpha plane opaque
2012-01-15 14:49:30 +01:00
Stefano Sabatini
4057505e28
doc/bistream_filters.texi: add documentation for the h264_mp4toannexb filter
2012-01-14 12:36:41 +01:00
Stefano Sabatini and Anton Khirnov
b5c2b5af6a
configure: provide libavfilter/version.h header to get_version()
...
Fix libavfilter library version numbers generation, which was broken in
3167dc9515 .
Signed-off-by: Anton Khirnov <anton@khirnov.net >
2012-01-14 07:44:43 +01:00
Stefano Sabatini
e4fa15d156
configure: provide libavfilter/version.h header to get_version()
...
Fix libavfilter library version numbers generation, which was broken in
3167dc9515 .
2012-01-13 16:28:27 +01:00
Stefano Sabatini
0be8e66174
mpegtsenc: do not reference the deprecated ffmpeg option 'vbsf' in a log message
...
Give a more generic advice.
2012-01-13 15:51:30 +01:00
Stefano Sabatini
7efc6f2932
ffmpeg: clarify error message in case of bitstream filter opening failure
2012-01-13 15:51:24 +01:00
Stefano Sabatini
3fcf841ff5
mpegtsenc: fix some typos: aac -> AAC, adts -> ADTS
2012-01-13 15:51:06 +01:00
Stefano Sabatini
9a7f2aa958
mpegtsenc: use more meaningful error codes
2012-01-13 15:50:54 +01:00
Stefano Sabatini
bb4c18881a
ffprobe: reindent after previous commit
2012-01-12 17:35:17 +01:00
Stefano Sabatini
b25c239c7a
ffprobe: add support to audio frame information printing
2012-01-12 17:34:16 +01:00
Stefano Sabatini
58e1de724d
ffprobe: set AV_LOG_SKIP_REPEATED log flag
...
Consistent with ffmpeg and ffplay.
2012-01-12 17:34:07 +01:00
Stefano Sabatini
4fd1e2e432
ffprobe: fix leak in show_packets()
...
Call av_free_packets() at each demuxing loop iteration, not only when
decoding.
X-ColaCount: +10l
2012-01-12 10:39:24 +01:00
Stefano Sabatini
7328c2fc21
ffprobe: replace av_destruct_packet() with av_free_packet()
...
av_destruct_packet() always frees the packet data even when the demuxer
is going to re-use it, thus causing crashes when decoding audio
frames (as implemented in a pending patch).
av_free_packet() is used instead, as it allows each demuxer to set the
right packet data releasing mechanism through the pkt->destruct callback.
2012-01-12 10:39:24 +01:00
Stefano Sabatini
a8b0ece6e5
lavfi/testsrc: add "d" alias for the duration option
2012-01-12 10:39:24 +01:00
Stefano Sabatini
0cc8864687
ffprobe: use av_toupper() in upcase_string()
2012-01-10 22:49:15 +01:00
Stefano Sabatini
93d49cba7f
ffprobe: add compact option to JSON writer
2012-01-10 18:24:18 +01:00
Stefano Sabatini
5226be0dd5
ffprobe: add -show_program_version and -show_library_versions options
2012-01-10 18:24:07 +01:00
Stefano Sabatini
d3e435164b
ffprobe: make upcase_string() ignore non-ASCII characters
...
This is required as some section names may contain non-ASCII characters
(e.g. '_').
2012-01-10 18:19:31 +01:00
Stefano Sabatini
3b1355bb93
ffprobe: change formatting logic in the JSON writer
...
Print a "\n" at the end of each section, also print the section name in
the section print function, print the chapter name only in case the
chapter contains multiple entries.
Increase textual output readability - different sections can be
distinguished more easily.
2012-01-09 13:41:35 +01:00
Stefano Sabatini
48f37b1d21
ffprobe: implement generic reindent logic in the JSON writer
...
Clarify/generalize indent logic.
2012-01-09 13:36:10 +01:00
Stefano Sabatini
5ccdb907c1
ffprobe: use more meaningful names for writer chapter/section header/footer function
...
The passed argument is supposed to be the chapter/section name, rather
than the header/footer. Less confusing.
2012-01-08 11:20:31 +01:00
Stefano Sabatini
ec624d7c5c
ffprobe: use "%*" printf syntax in XML_INDENT() in place of a loop
...
Possibly faster/cleaner.
Suggested-By: Clément Bœsch <ubitux@gmail.com >
2012-01-08 11:19:27 +01:00
Stefano Sabatini
9997d41672
ffprobe: add support to video frame information printing
...
Add -show_frames option to ffprobe.
Partially based on the work of Thomas Kuehnel <kuehnelth@googlemail.com >
for SOCIS 2011.
The wicked idea of creating a special "packets_and_frames" container for
structured formats (JSON and XML) comes from Clément.
2012-01-07 22:26:46 +01:00
Stefano Sabatini
78c47e0a1e
doc/filters.texi: fix typo in volume description
2012-01-07 22:15:31 +01:00
Stefano Sabatini
9ecccd6e5a
ffprobe: move header and trailer print from probe_file() to main()
...
Simplify printing from the main() context, in case probe_file() is not
called, as required by the pending -show_version option.
2012-01-07 11:08:00 +01:00
Stefano Sabatini
fa7d1c39fd
ffprobe: move writer context registration and initialization in main()
...
Simplify pending changes, as the writer context will be used in the
main() routine.
2012-01-07 11:02:13 +01:00
Stefano Sabatini
e869d08cbc
cmdutils: make this_year extern, so it can be referenced from other .o files
...
Required by a pending change in ffprobe.
2012-01-07 11:02:13 +01:00
Stefano Sabatini
ceef1ee767
cmdutils: make show_usage() use av_log()
...
Avoid printing on stdout when show_usage is used in an error message.
2012-01-07 11:02:13 +01:00
Stefano Sabatini
c5f4abf698
ffprobe: exit in case generic options are incompatible with strict XML output
2012-01-06 10:43:34 +01:00
Stefano Sabatini
49c207b820
ffprobe: fix NULL pointer dereference in writer_close()
...
Fix crash.
2012-01-06 10:43:34 +01:00
Stefano Sabatini
9ac58ba133
cmdutils: add print_program_info() used in both show_banner() and show_version()
...
This also make -version show program configuration and compilation
information, which was previously shown only in the banner.
2012-01-06 10:43:30 +01:00
Stefano Sabatini
d6da16dca5
ffprobe: add support to option -show_error
2012-01-04 01:06:28 +01:00
Stefano Sabatini
55ed19bf3b
ffprobe: remove unused variable in show_format()
2012-01-04 01:06:11 +01:00
Stefano Sabatini
4c5c0609c1
ffprobe: reindent after the last commit
2012-01-04 01:06:03 +01:00
Stefano Sabatini
90347dabc8
ffprobe: change order of operations in probe_file()
...
This is required by a pending patch, also fixes a memleak due to the
writer context not being closed in case of open_input_file() failure.
2012-01-04 01:05:56 +01:00
Stefano Sabatini
c972f91d5b
ffprobe: prefer av_log to fprintf(stderr)
2012-01-04 01:05:51 +01:00
Stefano Sabatini
42a8ac94d9
vf_tinterlace: implement interlace mode 5
...
Allow creating interlaced bottom field first video.
2012-01-01 16:16:50 +01:00
Stefano Sabatini
549b53e8cb
lavfi: remove redundant definition of avfilter_copy_frame_props() in avfilter.h
...
Rationale: avfilter_copy_frame_props() was already defined in
libavfilter/avcodec.h, and keeping the lavc/lavfi API glue localized in a
specific file should ease maintainance and help the ones which use
libavfilter without depending on libavcodec.
2011-12-31 11:37:01 +01:00
Stefano Sabatini
440e984b71
lavfi: add asplit filter
2011-12-27 15:21:08 +01:00
Stefano Sabatini
ae21776207
lavfi: add missing check in avfilter_filter_samples()
...
Avoid out-of-buffer data access when nb_channels is 8.
2011-12-27 15:21:00 +01:00
Stefano Sabatini
e9af732a1a
lavfi: fix avfilter_default_get_audio_buffer() after changes in av_samples_alloc()
...
av_samples_alloc() behavior changed in bbb46f3ec , resulting in random
data filling the data[] and linesize[] arrays of the returned
AVFilterBufferRef, which was resulting in wrong behavior in case of code
checking on data[i] nullity.
In particular fixes crash in avfilter_filter_samples():
for (i = 0; samplesref->data[i]; i++)
memcpy(link->cur_buf->data[i], samplesref->data[i], samplesref->linesize[0]);
and correctly fills the linesize[] array for planar data.
2011-12-27 15:20:54 +01:00
Stefano Sabatini
5764301df3
lavfi: don't try to indent words in trace messages
...
The traces end up not indented and ugly anyway, but with the additional
spaces are much more painful to grep/parse.
2011-12-27 12:58:26 +01:00
Stefano Sabatini
20ac5849f8
ffprobe: add XML writer
2011-12-27 12:58:24 +01:00
Stefano Sabatini
f1a4182e8e
ffprobe: add show_private_data option
2011-12-27 12:58:08 +01:00
Stefano Sabatini
93613338fe
ff* tools: move descriptions from copyright header to @file doxy
2011-12-27 12:58:08 +01:00
Stefano Sabatini
c405a22d85
Changelog: move thunbnail filter entry from 0.9 to "next" section
2011-12-27 12:58:04 +01:00
Stefano Sabatini
1858a5c25e
vf_drawtext: select YUV color for drawbox() in case YUV colorspace is used
...
Fix box alpha rendering when a YUV colorspace is selected, in particular
fix trac ticket #763 .
2011-12-24 16:21:40 +01:00
Stefano Sabatini
834f80db22
platform.texi: close @enumerate section in the "Using shared libraries" subsection
2011-12-22 11:08:16 +01:00
Stefano Sabatini
386aee6864
sink_buffer: copy list of provided formats in the context
...
A list of formats may have been dynamically created by the calling code,
and thus should not be referenced by the sink buffer context.
Avoid possible invalid data reference.
2011-12-22 10:09:42 +01:00
Stefano Sabatini
f1622a17fd
lavd/lavfi: reindent block in lavfi_read_header
2011-12-20 13:19:36 +01:00
Stefano Sabatini
4d475f7eb3
lavd/lavfi: add check in case pix_fmts cannot be allocated in lavfi_read_header()
2011-12-20 13:19:26 +01:00
Stefano Sabatini
21dfd1591e
lavd/lavfi: fix incomplete comment
2011-12-18 01:04:02 +01:00
Stefano Sabatini
86b7db616d
lavd/lavfi: fix typo in error message
2011-12-18 01:03:40 +01:00
Stefano Sabatini
6c44ff38d6
lavfi: add cellauto source
2011-12-11 11:55:33 +01:00
Stefano Sabatini
a1c676c248
filters.texi: remove confusing reference to never integrated -af option
2011-12-09 15:53:23 +01:00
Stefano Sabatini
b229485f1a
APIchanges: add entry after av_buffersink_poll_frame() addition
2011-12-08 22:55:33 +01:00
Stefano Sabatini
7ecabc8505
vsrc_life: fix comment in parse_rule()
2011-12-06 15:03:51 +01:00
Stefano Sabatini
3af5ddb24b
vf_scale: give a clue in case of invalid expression self-reference
...
Address trac ticket #706 .
2011-12-06 15:03:51 +01:00
Stefano Sabatini
2f8b6e909d
lavfi: add life source
2011-12-04 21:18:37 +01:00
Stefano Sabatini
6c26fe8b5a
aevalsrc: add duration option
2011-12-04 21:13:22 +01:00
Stefano Sabatini
28338bc2a3
lavfi: add libass based subtitles renderer
2011-11-26 10:42:33 +01:00
Stefano Sabatini
a11eeb9215
configure: sort entries
2011-11-26 00:56:01 +01:00
Stefano Sabatini
65f24858ed
ffprobe: always print int values with print_val()
...
In particular, make the json writer write size values, fix regression
introduced with the addition of the print_val() macro.
2011-11-25 13:25:56 +01:00
Stefano Sabatini
a7e5679054
ffprobe: make writer_print_integer support long long int values
...
This makes possible to use writer_print_integer for printing int64_t
values.
2011-11-18 10:09:26 +01:00