Vittorio Giovara
41ed7ab45f
cosmetics: Fix spelling mistakes
...
Signed-off-by: Diego Biurrun <diego@biurrun.de>
9 years ago
Anton Khirnov
ba357e9869
avprobe: switch to codecpar
9 years ago
Anton Khirnov
567d6d5f9d
avprobe: add local per-stream state
...
This will be useful in the following commits.
9 years ago
Anton Khirnov
c9478410c6
avprobe: add local per-file state
...
Do not pass just a bare AVFormatContext pointer around, wrap it in
struct. This will be useful in the following commits.
9 years ago
Anton Khirnov
168a443d43
avprobe: print information from the codec descriptor
...
avprobe is not doing any decoding, so this is more correct than printing
information from a random codec implementation.
9 years ago
Anton Khirnov
e7188a1a84
avprobe: remove a pointless condition and a dead branch
...
AVStream.codec is always non-NULL
9 years ago
Anton Khirnov
5efd91284e
avprobe: do not call avio_close() on a custom context
...
avio_close() can only be called on AVIOContexts created by avio_open(2).
9 years ago
Luca Barbato
f0ca6ffa0a
avprobe: Unref the packet once it is used
...
Make sure it does not leak packets.
CC: libav-stable@libav.org
9 years ago
Martin Storsjö
709e1c91ea
avprobe: Print the display matrix from per-stream sidedata
...
This is printed in a separate subgroup "displaymatrix" inside a
new group named "sidedata". The subgroup has got two values,
"rotation" (which is the parsed rotation from the matrix) and
"matrix" containing the full actual values.
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago
Martin Storsjö
3080b0497d
avprobe: Support writing arrays of integers without keys
...
Signed-off-by: Martin Storsjö <martin@martin.st>
10 years ago
Vittorio Giovara
7b9cb7b365
avprobe: Export coded_{width,height} in -show_streams
10 years ago
Diego Biurrun
bf704132a5
Don't anonymously typedef structs
10 years ago
Vittorio Giovara
b1306823d0
check memory errors from av_strdup()
10 years ago
Luca Barbato
aeb23fc454
avprobe: Remove a pointless check
...
The element is always valid.
CC: libav-stable@libav.org
Bug-Id: CID 732276
10 years ago
Vittorio Giovara
a2c00d22e7
avprobe: print color properties for show_streams
10 years ago
Luca Barbato
636ced8e1d
cmdutils: wrap exit explicitly
...
Some C runtime implementations deadlock when calling threading functions
on the atexit() handler.
Use a simpler wrapper similar to av_log to call the cleanup function
before exit.
Bug-Id: 523
12 years ago
Luca Barbato
a4baf96abd
avprobe: rename the prettyprint structures
12 years ago
Anton Khirnov
e19e8aeeaa
avtools: move media_type_string() from avprobe to cmdutils.
...
It will be useful outside of avprobe.
12 years ago
Reimar Döffinger
efa7f42020
Use the avstring.h locale-independent character type functions
...
Make sure the behavior does not change with the locale.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Anton Khirnov
dda20a6e2c
avprobe: also output dar/par if only defined in stream
...
Based on a patch by Jan Gerber <j@v2v.cc>
12 years ago
Janne Grunau
89a4465bd9
avprobe: report per stream bit rate if set by the decoder
12 years ago
Anton Khirnov
b7f1010c8f
tools: do not use av_pix_fmt_descriptors directly.
12 years ago
Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
12 years ago
Diego Biurrun
8be5b0d6d5
avconv/avprobe: Add missing 'void' to exit_program() definition
12 years ago
Diego Elio Pettenò
5e3f9979fa
Use atexit() instead of defining a custom exit_program() interface.
12 years ago
Anton Khirnov
11d957fbd8
avtools: remove the distinction between func_arg and func2_arg.
...
func2_arg is the same as func_arg, except it has one additional
parameter. Change all func_arg callbacks to take that parameter (and
ignore it).
12 years ago
Martin Storsjö
b42be2d56a
avprobe: Get rid of ugly casts in the options table
...
This also makes sure the function pointers are stored via the same
union member as they are accessed via.
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Anton Khirnov
f9fada2704
avconv: split printing "main options" into global and per-file.
12 years ago
Anton Khirnov
a3ad68d36c
cmdutils: extend -h to allow printing codec details.
12 years ago
Anton Khirnov
dc4c24a3d3
avtools: move some newlines to show_help_options().
...
Don't require every caller to supply them.
12 years ago
Anton Khirnov
f617135bc9
avtools: fix show_foo() signatures.
...
show_foo() functions are declared as void show_foo(void), but called as
int show_foo(const char*, const char*).
12 years ago
Mans Rullgard
8b13445791
avprobe: add const to AVCodec pointer
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Martin Storsjö
0af85d57c1
avprobe: Include libm.h for the log2 fallback
...
Signed-off-by: Martin Storsjö <martin@martin.st>
12 years ago
Mans Rullgard
d752509b74
Use log2(x) instead of log(x) / log(2)
...
Signed-off-by: Mans Rullgard <mans@mansr.com>
12 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
12 years ago
Anton Khirnov
aba232cfa9
lavf: deprecate r_frame_rate.
...
According to its description, it is supposed to be the LCM of all the
frame durations. The usability of such a thing is vanishingly small,
especially since we cannot determine it with any amount of reliability.
Therefore get rid of it after the next bump.
Replace it with the average framerate where it makes sense.
FATE results for the wtv and xmv demux tests change. In the wtv case
this is caused by the file being corrupted (or possibly badly cut) and
containing invalid timestamps. This results in lavf estimating the
framerate wrong and making up wrong frame durations.
In the xmv case the file contains pts jumps, so again the estimated
framerate is far from anything sane and lavf again makes up different
frame durations.
In some other tests lavf starts making up frame durations from different
frame.
12 years ago
Ronald S. Bultje
dcb7ef5483
avprobe/avconv: fix tentative declaration compile errors on MSVS.
12 years ago
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