Clément Bœsch
b70fd6fa8b
ffprobe: use av_get_pix_fmt_name() instead of accessing av_pix_fmt_descriptors.
13 years ago
Clément Bœsch
03d0ea0cf0
ffprobe: remove media_type_string() by inlining av_x_if_null().
13 years ago
Clément Bœsch
8af64e1a67
ffprobe: fix crash with -h.
13 years ago
Clément Bœsch
5ad01decef
ffprobe: rename print_{int,str}_f callbacks to print_{integer,string}.
...
Renamed for consistency. Also, since print_int() and print_str() are
already defined as macros, the long name version is preferred.
13 years ago
Clément Bœsch
3fdf519e4b
ffprobe: add JSON output printing format.
13 years ago
Clément Bœsch
afbeb49456
ffprobe: replace fmt callback with str callback.
...
Having a string callback is much more simpler than a variable args
one for writers to deal with, especially when dealing with escaping.
This patch also introduces a local fast_asprintf() function which is
similar to av_asprintf() but avoids reallocating at each print (leading
to a performance issue).
13 years ago
Clément Bœsch
88fddd0bcc
ffprobe: replace specific ## GNU cpp extension with __VA_ARGS__.
13 years ago
Clément Bœsch
5241bc2773
ffprobe: replace simple string printing with the appropriate helper.
13 years ago
Clément Bœsch
d5d7de7671
ffprobe: directly use va args in print fmt callbacks.
14 years ago
Clément Bœsch
0629b1ff35
ffprobe: introduce output format writers.
14 years ago
Clément Bœsch
8af9366e2f
ffprobe: fix deprecated call to av_find_stream_info.
14 years ago
Stefano Sabatini
9a15146768
ffprobe: use av_get_media_type_string() in media_type_string(), simplify
14 years ago
Stefano Sabatini
7c94740b84
ffprobe: in value_string(), do not print trailing space in case of no suffix
14 years ago
Anton Khirnov
9e12f0bf5f
Rename ffprobe to avprobe.
14 years ago
Thierry Foucu
364d64275c
ffprobe: display bitstream level.
...
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Anton Khirnov
0b950fe240
lavc: introduce avcodec_open2() as a replacement for avcodec_open().
...
Adds support for decoder-private options and makes setting other options
simpler.
14 years ago
Gavin Kinsey
c558122e4e
Fix segmentation fault in ffprobe
14 years ago
Nicolas George
25119a7f08
ffprobe: flush stdout after each group.
14 years ago
Stefano Sabatini
46edd3a01b
ffprobe: fix opt_pretty() signature
...
This is required after the OPT_FUNC2 removal.
14 years ago
Jeff Downs
a09918335f
Make all option parsing functions match the function pointer type through which they are called.
...
All option parsing functions now match the function pointer signature through
which they are called (int f(const char *, const char *), thereby working
reliably on all platforms.
Prefix all option processing functions with opt_
14 years ago
Michael Niedermayer
06724c5f5d
ffprobe: remove duplicate avformat_alloc_context()
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
14 years ago
Gavin Kinsey
df1768d0a2
Fix segmentation fault in ffprobe
14 years ago
Anton Khirnov
e0518705c8
ffprobe: use new avformat_open_* API.
14 years ago
Anton Khirnov
d2d67e424f
Remove all uses of now deprecated metadata functions.
14 years ago
Stefano Sabatini
cea87fb2c3
ffprobe: implement -i FILE option
...
Useful for mimicking the ffmpeg -i FILE syntax.
14 years ago
Stefano Sabatini
96f931adf7
cmdutils: change the signature of the function argument in parse_options()
...
This is required for a pending simplification.
14 years ago
Stefano Sabatini
eb8bc57240
cmdutils: remove OPT_FUNC2
...
Make ff* tools only accept opt_* functions taking two arguments.
The distinction between functions with one and two arguments is quite
pointless. Simplify parse_options() code.
14 years ago
Stefano Sabatini
26513856d6
cmdutils: remove OPT_FUNC2
...
Make ff* tools only accept opt_* functions taking two arguments.
The distinction between functions with one and two arguments is quite
pointless. Simplify parse_options() code.
Signed-off-by: Ronald S. Bultje <rsbultje@gmail.com>
14 years ago
Stefano Sabatini
9c3f5ef663
ffprobe: tweak error message in open_input_file()
...
Replace "codec (id=%d)" with "codec with id %d", slightly more
readable.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
14 years ago
Diego Biurrun
89b503b55f
Lowercase all ff* program names.
14 years ago
Anton Khirnov
41d0eb1c81
lavc: remove the FF_API_SET_STRING_OLD cruft.
14 years ago
Stefano Sabatini
98ac192b4e
ffprobe: provide format parameters to av_open_input_file()
...
Provide a non-NULL AVFormatParameters structure to
av_open_input_file() in open_input_file().
This is required because otherwise av_open_input_file() will allocate
and use a new format context, discarding the options set in the
provided format context.
14 years ago
Stefano Sabatini
038566a5ed
ffprobe: tweak error message in open_input_file()
...
Replace "codec (id=%d)" with "codec with id %d", slightly more
readable.
14 years ago
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
0ebf475494
lavf: add av_ prefix to dump_format()
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
(cherry picked from commit 610219a598
)
14 years ago
Anton Khirnov
610219a598
lavf: add av_ prefix to dump_format()
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
14 years ago
Anton Khirnov
4712ed26ee
Make ffprobe print stream language only once, also remove usage of the
...
deprecated field AVStream.language.
Patch by Anton Khirnov %name%@%surname% dot net.
Originally committed as revision 25507 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Anton Khirnov
a7e5a832c4
ffmpeg.c/ffprobe.c: remove all uses of av_metadata_conv()
...
patch by Anton Khirnov anton _at_ khirnov _dot_ net
Originally committed as revision 25503 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Michael Niedermayer
0093ebc20a
User application side of Codec specific parameters.
...
Originally committed as revision 25266 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
6afd569e1d
Make ffprobe able to set AVFormatContext options.
...
Originally committed as revision 25187 to svn://svn.ffmpeg.org/ffmpeg/trunk
14 years ago
Stefano Sabatini
530bbe96c7
Implement ffprobe -show_packets.
...
Originally committed as revision 24577 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
7e566bbe6c
Implement av_get_codec_tag_string() and use it in ffprobe.
...
Originally committed as revision 23421 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
441881b4f9
Reindent after the last commit.
...
Originally committed as revision 22984 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
8280e2bd45
Make ffprobe show sample_aspect_ratio and display_aspect_ratio only if
...
sample_aspect_ratio is known.
Avoid to show bogus values, which may confuse both the human and the
machine reader.
Based on a patch by Robert Krüger $(echo lsvfhfs@tjhobm7.ef | tr "b-za" "a-z").
Originally committed as revision 22983 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Robert Krüger
0a6a282a51
Make ffprobe show stream->nb_frames if that info is known.
...
Patch by Robert Krüger $(echo kru3g3r@signal7.d3 | sed -e 's/3/e/g').
Originally committed as revision 22964 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Robert Krüger
d21b227818
Fix computation of the display aspect ratio.
...
Previously ffprobe was wrongly outputting the sample aspect ratio as
display aspect ratio.
Patch by Robert Krüger $(echo k-r-u-e-g-e-r@s-i-g-n-a-l-7.d-e | sed s/-//g).
Originally committed as revision 22880 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
72415b2adb
Define AVMediaType enum, and use it instead of enum CodecType, which
...
is deprecated and will be dropped at the next major bump.
Originally committed as revision 22735 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
4bfe67da24
Implement -convert_tags option, which converts showed tag names to the
...
FFmpeg generic tag names.
Originally committed as revision 22708 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Stefano Sabatini
efe8bb095b
10l: Initialize tag to NULL in show_stream, fix metadata showing in
...
streams.
Originally committed as revision 22698 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago
Måns Rullgård
6580d5e377
Remove hacks not required since HAVE_AV_CONFIG_H was unset for the apps
...
Originally committed as revision 22295 to svn://svn.ffmpeg.org/ffmpeg/trunk
15 years ago