Stefano Sabatini
3f345290dc
lavf/segment: sort options
2012-07-08 17:38:24 +02:00
Stefano Sabatini
8dc31f8da8
lavf/segment: make use of av_parse_time() when parsing the -segment_time value
...
Increase flexibility/consistency.
Also rename recording_time field to time, for enhanced
consistency/readability.
2012-07-08 17:38:04 +02:00
Stefano Sabatini
0a7b8effbb
doc/muxers: sort options for the segment muxer
2012-07-08 17:08:56 +02:00
Stefano Sabatini
7f08bfae6e
lavf/segment: add segment_list_type option, extend format for the segment list file
...
Add list extended format which specifies in the list file the start and
ending time for each segment. This is required to make it available this
information to external tools, avoiding the need to perform file analysis
in the output segments.
2012-07-08 17:08:56 +02:00
Stefano Sabatini
b010d9b586
lavf/nutenc: provide meaningful error message and error code in case of invalid pts
2012-07-08 17:08:56 +02:00
Stefano Sabatini
abb0a9982f
lavfi: do not pass opaque field to init functions
...
Fix signature mismatch warnings.
2012-07-08 01:18:15 +02:00
Stefano Sabatini
3e3e414fe4
lavfi/buffersink: fix doxy, remove "video" reference
...
The file contains the code for the audio buffersink as well.
2012-07-06 01:11:45 +02:00
Stefano Sabatini
776a4e42a7
doc/muxers/segment: apply minor documentation updates and adjustements
...
Update documentation to match code behavior after previous changes, also
reword the examples section.
2012-07-04 01:17:58 +02:00
Stefano Sabatini
af392efe51
lavf/segment: rename SegmentContext.pb to list_pb
...
The new name is more auto-explicative, as the pb is used for the segment
list file.
2012-07-04 00:02:56 +02:00
Stefano Sabatini
d8013f38ab
lavf/segment: add error log in case of invalid filename template
...
Better rather than silently exit.
2012-07-03 23:26:07 +02:00
Stefano Sabatini
a1e092ccd3
lavf/segment: fix logic for segmenting audio-only inputs
...
Also add a comment for clarifying the logic.
Fix trac ticket #1290 .
2012-07-03 23:23:36 +02:00
Stefano Sabatini
4e2899dd31
lavf/segment: add more information in log message in seg_write_packet()
2012-07-03 23:23:29 +02:00
Stefano Sabatini
fd0e6ef99a
lavf/segment: remove unused offset variable
2012-07-03 21:48:50 +02:00
Stefano Sabatini
77dcae5d74
lavf/segment: apply misc fixes to the private options internal documentation
...
Option help message tell what the option *does*, not what the set field
represents.
2012-07-03 21:48:50 +02:00
Stefano Sabatini
a5af29336a
lavf/segment: slightly simplify fail logic in seg_write_packet()
2012-07-03 21:48:50 +02:00
Stefano Sabatini
4ad17bc76b
lavf/segment: move list filename printing logic from segment_end() to segment_start()
...
Allow to deal with the list file printing only in a single point, thus
simplifying logic, and allow a bit of factorization (no special case
needed when printing the first file name of the list).
2012-07-03 21:48:50 +02:00
Stefano Sabatini
bb6effe059
lavfi: remove vsrc_buffer.h API
...
The vsrc_buffer.h is not installed since commit 0b3b958135 , so there is
no point into keeping it around.
The buffersrc.h API, which is more powerful, should be used instead.
2012-07-03 01:32:16 +02:00
Stefano Sabatini
ab7dbdc92c
lavc/rawdec: add assertion check in raw_decode()
...
Check on an implicit assumption done on the number of coded bits for
paletted rawvideo with coded bits == 2.
2012-07-03 01:25:02 +02:00
Stefano Sabatini
17a54f5de8
lavc/rawdec: prefer constant AVPALETTE_SIZE over 256*4
...
Improve readability.
2012-07-03 01:24:56 +02:00
Stefano Sabatini
aa1cceb5eb
lavf/segment: rename variable "size" to "list_size"
...
The new name is more meaningful/less confusing.
2012-07-01 18:35:15 +02:00
Stefano Sabatini
3bee286ad2
lavf/segment: pass the top level chained muxer format context to segment_end()
...
Consistent with segment_start() and less confusing.
2012-07-01 18:35:06 +02:00
Stefano Sabatini
b12e61ac7f
ffplay: factorize expression in audio_decode_frame()
...
Possibly improve readability.
2012-06-30 15:01:51 +02:00
Stefano Sabatini
94a00ec8af
ffplay: group together and vertically align correlated parameters in log function
...
Possibly improve readability.
2012-06-29 23:15:45 +02:00
Stefano Sabatini
8179660222
ffplay: vertially align complex if condition in audio_decode_frame()
...
Possibly improve readability.
2012-06-29 23:15:45 +02:00
Stefano Sabatini
347ecfdc63
ffplay: move assignment in else block in audio_decode_frame()
...
Avoid confusing and pointless double assignment of variable
resampled_data_size.
2012-06-29 23:15:45 +02:00
Stefano Sabatini
0d3ffde64f
ffplay: split overly long line in audio_decode_frame()
2012-06-29 23:15:45 +02:00
Stefano Sabatini
c1abfbc47c
lavf/segment: rename segment private context from "c" to "seg" in segment_start()
...
Consistent with the rest of the file, less confusing.
2012-06-29 17:04:19 +02:00
Stefano Sabatini
a9a7e215e5
lavf/segment: add stream_segment variant of the segment muxer
...
This simplifies usage for segment streaming formats with no global
headers, tipically MPEG 2 transport stream "ts" files.
The seg class duplication is required in order to avoid an infinite loop
in libavformat/utils.c:format_child_next_class().
2012-06-29 17:03:25 +02:00
Stefano Sabatini
3cd4f9fd76
lavf: allow multiple names in output devices selected by av_guess_format()
...
Consistent with av_find_input_format().
2012-06-29 16:54:18 +02:00
Stefano Sabatini
0692d4c890
lavf/segment: add some debugging logs
2012-06-29 14:50:27 +02:00
Stefano Sabatini
567eb9d344
lavf/segment: fix command with missing -list option
...
Replace -list with the correct option -segment_list.
2012-06-29 14:50:27 +02:00
Stefano Sabatini
d9355a03f2
lavf/applehttp: add log message in case of applehttp_read_header() failure
...
Improve error reporting.
2012-06-29 14:50:27 +02:00
Stefano Sabatini
4fd07b9366
ffplay: avoid useless NULL checks in swr_free()
...
swr_free() already checks for nullness, no need to add the check in
calling code.
2012-06-29 13:24:57 +02:00
Stefano Sabatini
4674718203
ffplay: fix wrong reference to function in audio_decode_frame() comment
...
The comment now references swr_convert(), rather than audio_convert(),
which was deprecated and/or dropped.
2012-06-29 13:24:43 +02:00
Stefano Sabatini
7877b50d18
ffplay: simplify code by using avfilter_unref_bufferp()
2012-06-28 22:27:05 +02:00
Stefano Sabatini
b0fdd3489a
lavfi: deprecate av_buffersrc_buffer() function
...
Favor av_buffersrc_add_ref() instead, which is more powerful.
2012-06-28 22:27:05 +02:00
Stefano Sabatini
e6674e46ec
lavu/imgutils: create misc functions for dealing with buffers
...
Move the lavc/imgconvert functions and rename them as follows:
avpicture_get_size -> av_image_get_buffer_size()
avpicture_fill -> av_image_fill_arrays()
avpicture_layout -> av_image_copy_to_buffer()
The new functions have an align parameter, which allows to define the
linesize alignment assumed in the buffer (which is set or read).
The names of the functions are consistent with the lavu/samples API
(av_samples_get_buffer_size(), av_samples_fill_arrays()).
2012-06-26 13:12:12 +02:00
Stefano Sabatini
79a7451d06
ffplay: add configure_filtergraph() helper
...
Will help factorization with the pending -af patch, and add some checks
missing in the original code.
2012-06-26 11:42:51 +02:00
Stefano Sabatini
720ec62012
lavfi: drop deprecated and disabled packing API
...
It was deprecated and removed after the recent 2->3 major bump.
2012-06-26 11:40:21 +02:00
Stefano Sabatini
8dd0e87d7b
lavfi: remove old video sink API
...
It was deprecated since a long time and removed after the 2->3 major
bump.
2012-06-26 11:40:08 +02:00
Stefano Sabatini
f054dbee6c
tools/graph2dot: make dot graph representation a bit more compact
2012-06-26 11:34:38 +02:00
Stefano Sabatini
9b41ec4b9e
lavfi/drawtext: use av_opt_free() to free private context
...
Simplify code.
2012-06-25 22:49:16 +02:00
Stefano Sabatini
6be8cfa034
lavfi/abuffer: increase logging level of the log showing initial parameters
...
Also show them in a more parsable/consistent fashion.
2012-06-25 22:49:16 +02:00
Stefano Sabatini
8a3544149f
lavfi/avfilter.h: reorganize headers disposition
...
Group lavfi headers together, slightly improve readability.
2012-06-25 22:49:09 +02:00
Stefano Sabatini
fec512a52c
ffplay: give more meaningful names to the buffersink instances
2012-06-25 13:42:53 +02:00
Stefano Sabatini
43583fb85c
lavfi/avcodec: deprecate avfilter_fill_frame_from_*_buffer_ref API
...
Deprecate functions:
avfilter_fill_frame_from_buffer_ref
avfilter_fill_frame_from_audio_buffer_ref
avfilter_fill_frame_from_video_buffer_ref
and schedule to drop them at the next API major bump.
The function avfilter_copy_buf_props() should be used instead.
2012-06-25 13:42:47 +02:00
Stefano Sabatini
972cad77fa
lavfi: remove unnecessary inclusion of libavcodec/avcodec.h in avfilter.h
...
libavfilter API was designed in order to be clarly distinguished from the
libavcodec API, including avcodec.h in avfilter.h is not going to help to
stick to this principle.
The inclusion of libavutil/audioconvert.h in many files was required
because avcodec.h includes audioconvert.h.
libavfilter/avcodec.h is where the lavc/lavfi interface should be
entirely placed.
2012-06-25 13:42:37 +02:00
Stefano Sabatini
a31ab50712
lavfi: move some FF_API_ definitions from avfilter.h to version.h
...
version.h seems the right place for FF_API_ definitions.
2012-06-25 13:42:29 +02:00
Stefano Sabatini
c0ca840837
lavfi/buffer: remove unused function av_vsrc_buffer_add_frame_alt()
2012-06-23 00:42:51 +02:00
Stefano Sabatini
39e019e8c1
ffplay: add cast to fix warning in configure_video_filters()
...
Fix warning:
ffplay.c:1578:40: warning: passing argument 5 of ‘avfilter_graph_create_filter’ discards ‘const’ qualifier from pointer target type [enabled by default]
libavfilter/avfiltergraph.h:84:5: note: expected ‘void *’ but argument is of type ‘const enum PixelFormat *’
2012-06-23 00:42:51 +02:00
Stefano Sabatini
1dce2368bb
lavfi/buffer: apply misc consistency nits
2012-06-23 00:42:51 +02:00
Stefano Sabatini
201b409da0
lavc/pcm: clarify error message from pcm_decode_frame()
...
Extend/clarify an error message in case of invalid packet size, and
return a proper error message instead of -1.
Improve debuggability.
2012-06-23 00:42:51 +02:00
Stefano Sabatini
c17808cebd
lavfi: define macro AVFILTER_DEFINE_CLASS
...
The macro can be used to define consistently the internal class of a
filter, save some typing and factorize.
2012-06-22 23:11:43 +02:00
Stefano Sabatini
012aa12a6b
lavfi/drawtext: remove unnecessary parentheses in init()
2012-06-22 23:11:43 +02:00
Stefano Sabatini
1bb30d0295
lavfi/deshake: fix crash in uninit()
...
Add NULL check on avctx before calling avcodec_close() on it.
Fix trac ticket #1472 .
2012-06-21 17:01:44 +02:00
Stefano Sabatini
cb08b6efc9
lavfi/scale: remove unused variable out_link
...
Fix warning:
libavfilter/vf_scale.c: In function ‘start_frame’:
libavfilter/vf_scale.c:284:23: warning: unused variable ‘out_link’ [-Wunused-variable]
2012-06-21 12:47:48 +02:00
Stefano Sabatini
c0b3c0ffb7
lavfi/audio: remove unused variable in ff_filter_samples()
...
Fix warning:
libavfilter/audio.c: In function ‘ff_filter_samples’:
libavfilter/audio.c:193:13: warning: unused variable ‘size’ [-Wunused-variable]
2012-06-21 12:47:48 +02:00
Stefano Sabatini
065851ffac
lswr/rematrix: specify explicitly the name of the unsupported channel layouts
...
Help debugging.
2012-06-21 12:47:47 +02:00
Stefano Sabatini
98701be356
lavfi/ass: update use of deprecated functions, fix warnings
2012-06-21 11:11:56 +02:00
Stefano Sabatini
eda4500866
lavfi/blackdetect: add logic for handling stream termination
...
Add request_frame() which checks the black duration when the end of the
stream is signalled. Allow to detect black video segments at the end of
the stream.
Note that the reported last black video segment duration is not very
accurate, since we still miss the duration information in the video
buffer.
Address trac ticket #1470 .
2012-06-21 11:11:50 +02:00
Stefano Sabatini
5bc87f1cd6
lavfi/blackdetect: fix pts time debug printing
2012-06-21 11:00:20 +02:00
Stefano Sabatini
3ea3e32e03
lavfi: add showwaves filter
2012-06-20 12:37:57 +02:00
Stefano Sabatini
93bbe53c44
lavfi/asplit: fix memleak
...
The input samples buffer must be unreferenced after it is propagated to
the output links.
2012-06-20 12:37:50 +02:00
Stefano Sabatini
db142a8395
lavfi/avcodec: make avfilter_fill_frame_from*() functions use avfilter_copy_buf_props()
...
The code in avfilter_copy_buf_props() is more generic, allow code
factorization.
2012-06-19 16:44:36 +02:00
Stefano Sabatini
8f8d8b9538
lavfi/avcodec: always use av_frame* accessors in avfilter_copy_buf_props()
...
Use av_frame_* accessors for the newly added fields in AVFrame (for which
we are supposed to use such accessors), and group the istructions
accordingly.
2012-06-19 16:44:35 +02:00
Stefano Sabatini
d5761fe47d
lavfi/avcodec: copy pos field from AVFilterBuffer to AVFrame pkt_pos
2012-06-19 16:44:35 +02:00
Stefano Sabatini
208c5a08da
lavc/qtrlenc: return proper error codes from qtrle_encode_init()
2012-06-19 16:44:35 +02:00
Stefano Sabatini
5793a6d9f9
lavc/libschroedinger: add missing failure checks in ff_create_schro_frame()
2012-06-19 16:44:34 +02:00
Stefano Sabatini
c90e8054af
lavc/avcodec.h: fix reference to nonexistent function in av_picture_copy() doxy
...
Mention av_image_copy() instead.
2012-06-19 01:36:39 +02:00
Stefano Sabatini
18b4404dc3
lavc/imgconvert: fix check on av_image_check_size() return code in avpicture_get_size()
...
The documentation states that av_image_check_size() will return a
negative value in case of error, while the check is done on ret != 0.
Also return a proper error code rather than -1 in case the check fails.
2012-06-19 01:36:30 +02:00
Stefano Sabatini
0b2ecf8224
lavc/imgconvert: remove pointless switch block from avpicture_fill()
2012-06-19 01:36:23 +02:00
Stefano Sabatini
b583ccc3db
lavc/rawdec: propagate duration from packet to frame
2012-06-19 01:36:17 +02:00
Stefano Sabatini
8f45c3141c
ffplay: rename buffer source instance from "src" to "ffplay_buffer"
...
The new name is more descriptive.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-06-17 20:32:24 +02:00
Stefano Sabatini
251f398798
ffplay: use key=val syntax for the buffersrc args
...
Fix warning:
[src @ ...] Flat options syntax is deprecated, use key=value pairs.
Signed-off-by: Marton Balint <cus@passwd.hu >
2012-06-17 20:32:20 +02:00
Stefano Sabatini
d70a1a507d
MAINTAINERS: reorganize entries in the libavfilter section
2012-06-17 22:17:44 +02:00
Stefano Sabatini
2b1fc5621d
lavfi: add asetnsamples audio filter
...
This filter changes the number of samples on single output operation.
Based on a patch by Andrey Utkin <andrey.krieger.utkin@gmail.com >.
2012-06-16 00:54:20 +02:00
Stefano Sabatini
e20530add7
lavfi/split: give a more accurate description to split
...
The filter now supports a configurable number of outputs.
2012-06-16 00:46:58 +02:00
Stefano Sabatini
a1411eec21
ffprobe: add writer_print_rational()
...
Improve overall consistency, allow some factorization.
2012-06-16 00:42:54 +02:00
Stefano Sabatini
b6131ac5d3
doc/filters: prefer @itemize environment for frei0r examples
2012-06-16 00:31:03 +02:00
Stefano Sabatini
eb732b2ade
doc/filters: update Frei0r website link
...
Frei0r recently changed website host.
2012-06-16 00:30:54 +02:00
Stefano Sabatini
b2bcbcd999
lavfi/super2xsai: simplify code updating the color matrix at each y iteration
...
Remove duplicated out-of-loop init code, and do color matrix
initialization at the beginning of each y iteration.
Allow factorization and avoid an useless matrix update in the last
iteration.
2012-06-16 00:30:48 +02:00
Stefano Sabatini
4ebb46eb14
lavfi/super2xsai: fix table used to update color matrix at the end of each y loop
...
The previous table appears to be wrong (it was copied from the original
MPlayer super2xsai filter in order to keep binary compatibility).
The new table is consistent with the init code and apparently fixes a
combing artifact on the left edge of the generated image.
2012-06-16 00:30:42 +02:00
Stefano Sabatini
ef255642d5
fate/lavfi: add lavfi-pixfmts_super2xsai test
2012-06-16 00:30:33 +02:00
Stefano Sabatini
635a25954e
lavfi/video: set output frame w/h properties in default_start_frame()
...
Use the same values of the video output link.
Avoid the need to override the default_start_frame() with an ad-hoc
start_frame() callback.
In particular, fix the super2xsai filter which was setting the
input w/h values in the output.
2012-06-16 00:30:27 +02:00
Stefano Sabatini
f0394f28c3
lavfi/avcodec: add consistency checks in avfilter_copy_buf_props()
...
The function will abort through an assert if the source is not defined,
or if the internal state of the source is inconsistent (e.g. type = AUDIO
&& !src->audio).
2012-06-16 00:30:13 +02:00
Stefano Sabatini
6808759a58
lavc/rawdec: fix various bogus error codes and add some logs
...
Help debugging.
2012-06-16 00:30:05 +02:00
Stefano Sabatini
3cc1a89881
lavc/utils: in avcodec_decode_video2() return proper error code instead of -1
...
Return AVERROR(EINVAL) in case of invalid coded size.
2012-06-16 00:29:59 +02:00
Stefano Sabatini
465a72b4b4
lavfi: move definition of avfilter_copy_buf_props() from buffer.c to avcodec.c
...
avcodec.c is where it is defined the lavc/lavfi interface code, so seems
a more adequate location (and doesn't force the inclusion of
libavcodec/avcodec.h where it is not required).
2012-06-13 10:51:33 +02:00
Stefano Sabatini
134815a030
lavfi: change name of tracing functions and of the macro which enables them
...
The enabling symbol is renamed FF_AVFILTER_TRACE. Avoid conflicts with
the DEBUG macro, which may be defined for different purposes.
2012-06-13 10:51:15 +02:00
Stefano Sabatini
359abb18cf
lavu/error: add av_make_error_string() and av_err2str() convenience utilities
...
These functions are modeled after the corresponding utilities in
libavutil/timestamp.h.
2012-06-11 23:57:01 +02:00
Stefano Sabatini
5683de00e9
lavu/error: fix sign error in av_sterror() error code
...
The value returned by strerror_r may be positive depending on the system,
so it is necessary to use AVERROR() in order to get a negative
number. This way the successive negative check will not fail, and the
function will print a meaningful error message on the buffer.
2012-06-11 23:56:31 +02:00
Stefano Sabatini
4299fd23d3
lavu/error: use a table to store error codes and strings, add test
...
The table is mostly useful to enumerate the available AVERROR* in the
test output.
2012-06-11 23:35:32 +02:00
Stefano Sabatini
3ecaba677e
tests/parseutils: change test to make it platform independent
...
Make the test independent from the actual error string used to describe a
certain error code.
2012-06-11 23:35:31 +02:00
Stefano Sabatini
ee1748ab53
lavfi: fix signature for default_filter_name()
...
Return a const char *, fix warnings:
libavfilter/avfilter.c: In function ‘default_filter_name’:
libavfilter/avfilter.c:414:5: warning: return discards ‘const’ qualifier from pointer target type [enabled by default]
libavfilter/avfilter.c: At top level:
libavfilter/avfilter.c:419:5: warning: initialization from incompatible pointer type [enabled by default]
libavfilter/avfilter.c:419:5: warning: (near initialization for ‘avfilter_class.item_name’) [enabled by default]
2012-06-10 17:23:58 +02:00
Stefano Sabatini
53dfc38452
lavu/timestamp: remove duplicate definition of AV_TS_MAX_STRING_SIZE
2012-06-10 00:37:02 +02:00
Stefano Sabatini
8d1de449f0
ffprobe: show packet duration in frame
2012-06-06 23:26:04 +02:00
Stefano Sabatini
9083d09ebb
ffprobe: honour special value for duration
...
A duration value is undefined when is 0, take into consideration this
fact when printing optional fields.
2012-06-06 23:26:04 +02:00
Stefano Sabatini
ad347bf459
lavfi: remove avfilter_default_item_name() from public API
...
The function was introduced in 4d6a8a2bdb 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.
2012-06-06 23:25:33 +02:00
Stefano Sabatini
fe16ca1b91
lavfi/ocv: fix compilation after internalization of public functions
...
Include missing required internal headers.
2012-06-06 23:22:13 +02:00
Stefano Sabatini
ce7266c66a
tools/graph2dot: factorize code printing non-media specific link information
2012-06-06 23:20:02 +02:00