Vittorio Giovara
c31f6b1d61
avprobe: Print a user-friendly version of the display matrix
Shift fixed point numbers to be actual decimal numbers.
7 years ago
Vittorio Giovara
f821b2ea27
avprobe: Support printing strings with empty keys
7 years ago
James Almer
c7bf98d437
avprobe: use av_spherical_projection_name() to print spherical projection names
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Luca Barbato
c55f2ae2b8
avprobe: Handle unknown values for the color description
print_str() cannot print NULL.
Bug-Id: 1040
CC: libav-stable@libav.org
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
8 years ago
Vittorio Giovara
6bce6aa17d
spherical: Add tiled equirectangular type and projection-specific properties
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Diego Biurrun
c95169f0ec
build: Move cli tool sources to a separate subdirectory
This unclutters the top-level directory and groups related files together.
8 years ago
Anton Khirnov
6f554521af
Use the new AVIOContext destructor.
8 years ago
Diego Biurrun
122de16dd8
Replace cmdutils_common_opts.h by a macro
14 years ago
Vittorio Giovara
68f8db6108
avprobe: Allow specifying multiple stream entries to be shown
9 years ago
Vittorio Giovara
2fb6acd9c2
lavc: Add spherical packet side data API
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Vittorio Giovara
7d308bf84b
avprobe: Add -show_stream_entry to get a single stream property
This is needed for improved fate testing and it is modeled after
-show_format_entry. The main behavioral difference is that when a print
function is called with an empty key, rather than discarding it, the
closes key in the hierarchy is used instead.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Vittorio Giovara
95f8029345
avprobe: Fix memory leak
After init_opts() there needs to be an uninit_opts() call
to free the swscale context and other buffers.
Signed-off-by: Luca Barbato <lu_zero@gentoo.org>
9 years ago
Vittorio Giovara
6135c3b61e
Revert "avprobe: Zero the allocated avio buffer memory"
This reverts commit 0e0538aefc .
The valgrind warning was a false positive due to OSX implementation of
printf (invoking a strnlen), while this code is actually fine, since the
format specifier %.*s guarantes that no more than buf_size bytes from
buf will be read.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
9 years ago
Vittorio Giovara
0e0538aefc
avprobe: Zero the allocated avio buffer memory
Fixes valgrind warning "Conditional jump or move depends on
uninitialised value(s)." from avio_flush().
9 years ago
Vittorio Giovara
8e757716c6
avprobe: Print stereo3d information
9 years ago
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
10 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
11 years ago
Vittorio Giovara
b1306823d0
check memory errors from av_strdup()
11 years ago
Luca Barbato
aeb23fc454
avprobe: Remove a pointless check
The element is always valid.
CC: libav-stable@libav.org
Bug-Id: CID 732276
11 years ago
Vittorio Giovara
a2c00d22e7
avprobe: print color properties for show_streams
11 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>
13 years ago
Janne Grunau
89a4465bd9
avprobe: report per stream bit rate if set by the decoder
13 years ago
Anton Khirnov
b7f1010c8f
tools: do not use av_pix_fmt_descriptors directly.
13 years ago
Anton Khirnov
716d413c13
Replace PIX_FMT_* -> AV_PIX_FMT_*, PixelFormat -> AVPixelFormat
13 years ago
Diego Biurrun
8be5b0d6d5
avconv/avprobe: Add missing 'void' to exit_program() definition
13 years ago
Diego Elio Pettenò
5e3f9979fa
Use atexit() instead of defining a custom exit_program() interface.
13 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).
13 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>
13 years ago
Anton Khirnov
f9fada2704
avconv: split printing "main options" into global and per-file.
13 years ago
Anton Khirnov
a3ad68d36c
cmdutils: extend -h to allow printing codec details.
13 years ago
Anton Khirnov
dc4c24a3d3
avtools: move some newlines to show_help_options().
Don't require every caller to supply them.
13 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*).
13 years ago
Mans Rullgard
8b13445791
avprobe: add const to AVCodec pointer
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Martin Storsjö
0af85d57c1
avprobe: Include libm.h for the log2 fallback
Signed-off-by: Martin Storsjö <martin@martin.st>
13 years ago
Mans Rullgard
d752509b74
Use log2(x) instead of log(x) / log(2)
Signed-off-by: Mans Rullgard <mans@mansr.com>
13 years ago
Anton Khirnov
36ef5369ee
Replace all CODEC_ID_* with AV_CODEC_ID_*
13 years ago