Alex Converse
503f2feb14
avprobe: Identify codec probe failures rather than calling them unsupported codecs.
13 years ago
Luca Barbato
43b50e62c4
avprobe: correctly set the default formatter
13 years ago
Luca Barbato
528995589f
avprobe: move formatter functions in the context
...
Avoid possible clashes.
13 years ago
Anton Khirnov
8271f55bd7
avprobe: restore pseudo-INI old style format for compatibility.
13 years ago
Anton Khirnov
d30acfa94c
avprobe: fix formatting.
13 years ago
Christian Schmidt
b1d22dc52f
avprobe: display the codec profile in show_stream()
...
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
13 years ago
Luca Barbato
70026be8e5
avprobe: fix function prototype
...
Make opt_output_format return the correct value.
13 years ago
Luca Barbato
0d242a7713
avprobe: provide JSON output
...
JSON usage is quite widespread.
13 years ago
Luca Barbato
3a8c95f730
avprobe: output proper INI format
...
Make the output valid INI serialization.
13 years ago
Luca Barbato
beb33fca69
avprobe: improve formatting
...
Do not use decimals if not needed.
13 years ago
Anton Khirnov
d894752387
avprobe: don't print format entry name when only one was requested
...
This is easier to parse with automated tools.
13 years ago
Janne Grunau
31f2c0231f
avprobe: free options at the end of main()
13 years ago
Janne Grunau
093c50a4f6
avprobe: close opened codecs after use
...
Fixes "memleak" on closing avprobe to make valgrind happy.
13 years ago
Ronald S. Bultje
08354bf458
avprobe: allow showing only one container/stream property.
...
This is useful for writing unit tests.
Signed-off-by: Anton Khirnov <anton@khirnov.net>
13 years ago
Alex Converse
b0f29db5c2
Mark mutable static data const where appropriate.
13 years ago
Gaurav Narula
0184bbe2d1
avprobe, cmdutils: K&R formatting cosmetics
13 years ago
Anton Khirnov
136ee32da3
avprobe: use avio_size() instead of deprecated AVFormatContext.file_size.
13 years ago
Anton Khirnov
cd3716b9aa
Replace all uses of av_close_input_file() with avformat_close_input().
13 years ago
Martin Storsjö
776f2bb91a
Call avformat_network_init/deinit in the programs
...
Calling the init function will become mandatory at some later
point. By calling it, more heavy network init (such as SSL/TLS
library init) can be done once at startup, instead of implicitly
when used (which could lead to it being done a number of times).
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Anton Khirnov
7a6cd9957d
cmdutils/avtools: simplify show_help() by using av_opt_child_class_next()
13 years ago
Anton Khirnov
182cbe433a
avtools: parse loglevel before all the other options.
...
This way it can be applied to cmdutils too -- e.g. showing the banner
and printing startup messages.
13 years ago
Anton Khirnov
7cc8d6385a
cmdutils: add support for caller-provided option context.
...
This is the first step to removing the globals plague from avtools.
14 years ago
Anton Khirnov
dad09ff93f
cmdutils: move exit_program() declaration to cmdutils from avconv
...
Allows cmdutils to call each tool's own cleanup function.
14 years ago
Anton Khirnov
20c21f8b75
cmdutils: get rid of dummy contexts for examining AVOptions.
...
Replace it with newly introduced libavutil API.
14 years ago
Diego Biurrun
c960e67ad0
Replace deprecated av_find_stream_info() by avformat_find_stream_info().
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
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
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
Mans Rullgard
2912e87a6c
Replace FFmpeg with Libav in licence headers
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
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