Michael Niedermayer
80a3227be6
ffprobe: make function replacement macros behave correctly
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Muhammad Faiz
8893c943a9
ff*: do not use AVFrame accessor
...
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
8 years ago
Marton Balint
1f94197536
ffprobe: only use custom logging callback if -show_log is set
...
The custom callback can cause significant CPU usage on Windows for some large
files with many index entries for some reason.
v2: Move check after parsing options.
Signed-off-by: Marton Balint <cus@passwd.hu>
8 years ago
wm4
2a88ebd096
ffprobe: port to new decode API
...
Not sure if it behaves ideally in presence of decoding errors.
8 years ago
James Almer
2a2854f578
ffprobe: use av_spherical_projection_name() to print spherical projection names
...
Reviewed-by: Vittorio Giovara <vittorio.giovara@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
James Almer
c14b3ea93c
ffprobe: fix printing packet side data information
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Clément Bœsch
549045254c
Fix all -Wformat warnings raised by DJGPP
8 years ago
Clément Bœsch
fa0a8faaa4
ffprobe: fix usage of av_get_codec_tag_string()
8 years ago
James Almer
b613245c97
ffprobe: free log buffer's parent_name during cleanup
...
Fixes memleak.
8 years ago
Michael Niedermayer
bcd7153df3
ffprobe: Support adding av_log output to frames
...
adding demuxer and other logs should be easy
This forces single threaded decoding for simplicity
It also requires pthreads, this could be avoided either with
some lockless tricks or simply by assuming av_log would never be called from
another thread.
Fixes Ticket5521
Previous version reviewed by Stefano
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
James Almer
a044f8df6a
ffprobe: support skip_samples packet side data information
...
Reviewed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Vittorio Giovara
21a8e751ad
fate: Do not report side data size
...
This field is of little value, and interferes with testing side data,
since sizes can be different on multiple architectures.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
wm4
55eab1733b
ffmpeg, ffprobe: don't "merge" side data into packet data by default
...
Preparation for potentially disabling merged side data by default in the
libs. Do this in particular because it affects fate tests.
The changed tests either reflect added packet side data, or the changed
packet size due to merged side data removal reducing the packet size.
8 years ago
Steven Liu
51e3501993
ffprobe: add AVCodecContext help message into ffprobe
...
because the ffprobe can use AVCodecContext parameters
Signed-off-by: Steven Liu <lq@chinaffmpeg.org>
8 years ago
Vittorio Giovara
1b7ffddb3a
spherical: Add tiled equirectangular type and projection-specific properties
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Vittorio Giovara
e7a6f8c972
lavc: Add spherical packet side data API
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Vittorio Giovara
33f7f636ff
ffprobe: Fix displaying side data list only
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
8 years ago
Stefano Sabatini
427a47abcd
ffprobe: fix crash in case -of is specified with an empty string
...
Fix trac issue #5957 .
8 years ago
Rodger Combs
73ead477dd
lavf: add AV_DISPOSITION_TIMED_THUMBNAILS
...
Reviewed-By: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Rodger Combs
54350f06e1
ffprobe: report field order for video streams
8 years ago
James Almer
92de2c23a6
ffprobe: don't use AVStream.codec to set decoder framerate
...
Also don't set time_base. It's deprecated for decoding and avcodec_open2()
will overwrite it
Reviewed-by: Josh de Kock <josh@itanimul.li>
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
James Almer
64545dd600
ffprobe: don't access AVCodecContext.pkt_timebase directly
...
Signed-off-by: James Almer <jamrial@gmail.com>
8 years ago
Sasi Inguva
6a2cbf9014
ffprobe.c: Indicate decode-but-discard packets when doing -show_packets.
...
Signed-off-by: Sasi Inguva <isasi@google.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Hendrik Leppkes
3bf142c773
cmdutils: remove the current working directory from the DLL search path on win32
...
Reviewed-by: Matt Oliver <protogonoi@gmail.com>
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Dmitry Vagin
dc151d138c
ffprobe: add missing PROGRAM_STREAM_TAGS case
...
ffprobe did not show tags with only '-show_entries programs'
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
8 years ago
Clément Bœsch
c8550e8244
ffprobe: print stereo3d information
...
Based on 8e757716c6
See https://github.com/mpv-player/mpv/issues/1045 for mk3d
elektranox.org samples.
9 years ago
Clément Bœsch
ccf942a0c2
ffprobe: refactor pkt side data printing
9 years ago
Derek Buitenhuis
e8373143e1
ffprobe: Don't try and decode things that have no dec_ctx
...
The last instance of a missing dec_ctx check from the merge.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Derek Buitenhuis
9cb1ed5735
ffprobe: Fix missing dec_ctx check
...
Missed it during the merge of ffprobe codecpar conversion.
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Derek Buitenhuis
b62825a480
ffprobe: Deprecate stream timecode field and add frame side data timecode field
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
9 years ago
Ganesh Ajjanagadde
4a44bc5588
ffprobe: avoid unnecessary pow and exp2 calls
...
These are just for prefixes and may be hardcoded easily; see lavu/eval
for this approach.
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
9 years ago
Stefano Sabatini
91c2a33d01
ffprobe: use print_val to print the frame pkt_size value
...
This allows to honour formatting options.
9 years ago
Timothy Gu
9670165cc2
ffprobe: Do not print profile names in -bitexact
...
Instead, print "unknown" if it's unknown, or their numerical values if
they are known.
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Marton Balint
d9611864c2
ffprobe: add support for printing packet strings metadata as packet tags
...
ffprobe.xsd already contains the tag element.
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Marton Balint <cus@passwd.hu>
9 years ago
Michael Niedermayer
057ce755b9
ffprobe: Remove abort()
...
Found-by: Ganesh Ajjanagadde and wm4
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
9 years ago
Ganesh Ajjanagadde
38f4e973ef
all: fix -Wextra-semi reported on clang
...
This fixes extra semicolons that clang 3.7 on GNU/Linux warns about.
These were trigggered when built under -Wpedantic, which essentially
checks for strict ISO compliance in numerous ways.
Reviewed-by: Michael Niedermayer <michael@niedermayer.cc>
Signed-off-by: Ganesh Ajjanagadde <gajjanagadde@gmail.com>
9 years ago
Clément Bœsch
306ff40988
ffprobe: use AV_OPT_TYPE_BOOL for writers options
9 years ago
Hendrik Leppkes
5d8e836d0e
Replace all remaining occurances of step/depth_minus1 and offset_plus1
9 years ago
Michael Niedermayer
a75d22445e
ffprobe: check av_asprintf() for failure
...
Found-by: Daemon404
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Dave Rice
09ec31ce3a
ffprobe: print stream_index with frame data
...
This makes it easier to relate frame data to its associated stream.
10 years ago
Michael Niedermayer
5f0ebe865c
ffprobe: Use av_packet_side_data_name() to find the side data name
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
a72b61a317
ffprobe: support printing AVStream and AVPacket side data
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
08152f2df2
ffprobe: Add Support to print information about AV_FRAME_DATA_DISPLAYMATRIX
...
Idea from 709e1c91ea
by Martin Storsjö
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
2a3270b66c
ffprobe: add writer_print_integers() to allow printing formated 1d and 2d arrays of integers
...
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
fd8c3277c4
ffprobe: Change string_validation to int, its accessed via AVOption as int
...
This fixes depending on implementation defined behavior
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Andreas Cadhalpun
103e4c5863
stop embedding the build date
...
Theis makes the build binary reproducible.
Signed-off-by: Andreas Cadhalpun <Andreas.Cadhalpun@googlemail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
47111d366d
ffprobe: fix memleaks on errors
...
Found-by: Andreas Cadhalpun <andreas.cadhalpun@googlemail.com>
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Michael Niedermayer
eee9b7a673
ffprobe: Support extracting the number of reference frames
...
Fixes Ticket3141
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago
Carl Eugen Hoyos
e971eef8c0
Set -scan_all_pmts 1 in ffmpeg, ffplay and ffprobe if not set by user.
...
Fixes ticket #3762 .
10 years ago
Michael Niedermayer
f63d381387
ffprobe: Add support for color_trc/color_pri/chroma_loc
...
Idea from: a2c00d22e7
Reviewed-by: Stefano Sabatini <stefasab@gmail.com>
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
10 years ago