Michael Niedermayer
837cb4325b
ffprobe: Fix null pointer dereference with color primaries
...
Found-by: AD-lab of venustech
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-08-24 11:31:03 +02:00
Zhao Zhili
7fb4b0368d
ffprobe: fix use of uninitialized variable
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-08-18 03:02:11 +02:00
James Almer
5e4e9afaa1
ffprobe: add support for ICC Profile frame side data
...
Print the name metadata entry and the buffer size.
Reviwed-by: Rostislav Pehlivanov <atomnuker@gmail.com>
Signed-off-by: James Almer <jamrial@gmail.com>
2017-07-26 11:31:17 -03:00
Vittorio Giovara
d24a82d2e2
ffprobe: Print color properties from show_frames
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2017-07-21 20:19:07 +02:00
Clément Bœsch
dad54e3c29
ffprobe: reindent after previous commit
2017-07-18 10:39:46 +02:00
Clément Bœsch
8e0d5b354e
ffprobe: add -(no)find_stream_info expert option
2017-07-18 10:39:45 +02:00
Vittorio Giovara
2ef9fc997d
ffprobe: Use pixdesc API to provide color space names
...
This API is more up-to-date, provides names compatible with filters
and external encoders, and is consistent with the other color
property variables.
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2017-06-05 12:18:27 -04:00
Vittorio Giovara
2934a10f2e
ffprobe: Print AVContentLightMetadata side data contents
2017-06-01 15:07:16 -04:00
Vittorio Giovara
88521a7537
ffprobe: Print AVMasteringDisplayMetadata side data contents
2017-06-01 15:07:16 -04:00
Clément Bœsch
8ba1fc2a4a
ffprobe: discard non-selected streams
2017-05-11 11:21:26 +02:00
Michael Niedermayer
80a3227be6
ffprobe: make function replacement macros behave correctly
...
Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
2017-05-08 03:25:17 +02:00
Clément Bœsch
b010843594
Merge commit '122de16dd8108a59a55d30543c9f28b5f61b02d1'
...
* commit '122de16dd8108a59a55d30543c9f28b5f61b02d1':
Replace cmdutils_common_opts.h by a macro
Merged-by: Clément Bœsch <cboesch@gopro.com>
2017-05-05 14:04:30 +02:00
Muhammad Faiz
8893c943a9
ff*: do not use AVFrame accessor
...
Reviewed-by: wm4 <nfxjfg@googlemail.com>
Signed-off-by: Muhammad Faiz <mfcc64@gmail.com>
2017-04-23 14:43:31 +07:00
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>
2017-04-12 20:21:11 +02:00
wm4
2a88ebd096
ffprobe: port to new decode API
...
Not sure if it behaves ideally in presence of decoding errors.
2017-04-04 07:47:28 +02:00
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>
2017-03-31 13:27:09 -03:00
James Almer
c14b3ea93c
ffprobe: fix printing packet side data information
...
Signed-off-by: James Almer <jamrial@gmail.com>
2017-03-29 21:20:06 -03:00
Clément Bœsch
549045254c
Fix all -Wformat warnings raised by DJGPP
2017-03-29 14:49:29 +02:00
Clément Bœsch
fa0a8faaa4
ffprobe: fix usage of av_get_codec_tag_string()
2017-03-29 14:49:29 +02:00
James Almer
b613245c97
ffprobe: free log buffer's parent_name during cleanup
...
Fixes memleak.
2017-03-27 20:37:29 -03:00
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>
2017-03-28 00:13:47 +02:00
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>
2017-03-25 22:42:57 -03:00
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>
2017-03-17 13:12:25 -04:00
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.
2017-03-14 23:37:28 +01:00
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>
2017-03-11 11:12:23 +08:00
Vittorio Giovara
1b7ffddb3a
spherical: Add tiled equirectangular type and projection-specific properties
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2017-03-07 11:19:37 -05:00
Vittorio Giovara
e7a6f8c972
lavc: Add spherical packet side data API
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2016-12-07 14:40:06 -05:00
Vittorio Giovara
33f7f636ff
ffprobe: Fix displaying side data list only
...
Signed-off-by: Vittorio Giovara <vittorio.giovara@gmail.com>
2016-11-30 12:19:14 -05:00
Stefano Sabatini
427a47abcd
ffprobe: fix crash in case -of is specified with an empty string
...
Fix trac issue #5957 .
2016-11-17 20:28:45 +01:00
Rodger Combs
73ead477dd
lavf: add AV_DISPOSITION_TIMED_THUMBNAILS
...
Reviewed-By: Michael Niedermayer <michael@niedermayer.cc>
2016-10-24 05:47:05 -05:00
Rodger Combs
54350f06e1
ffprobe: report field order for video streams
2016-10-24 01:24:23 -05:00
Hendrik Leppkes
6f74e3cde6
Merge commit 'beb62dac629603eb074a44c44389c230b5caac7c'
...
* commit 'beb62dac629603eb074a44c44389c230b5caac7c':
Use AVFrame.pts instead of deprecated pkt_pts.
Merged-by: Hendrik Leppkes <h.leppkes@gmail.com>
2016-10-07 13:16:36 +02:00
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>
2016-09-27 21:21:42 -03:00
James Almer
64545dd600
ffprobe: don't access AVCodecContext.pkt_timebase directly
...
Signed-off-by: James Almer <jamrial@gmail.com>
2016-09-26 22:45:39 -03:00
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>
2016-09-23 23:09:23 +02:00
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>
2016-08-08 18:36:55 +02:00
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>
2016-07-26 19:22:47 +02:00
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.
2016-06-23 13:48:14 +02:00
Clément Bœsch
ccf942a0c2
ffprobe: refactor pkt side data printing
2016-06-23 13:48:14 +02:00
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>
2016-04-12 17:24:07 +01:00
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>
2016-04-12 16:50:01 +01:00
Derek Buitenhuis
9080dc7f07
Merge commit 'ba357e98691ee4fe1a503b8830c0050be4127475'
...
* commit 'ba357e98691ee4fe1a503b8830c0050be4127475':
avprobe: switch to codecpar
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-12 15:38:03 +01:00
Derek Buitenhuis
48fb5294d0
Merge commit '567d6d5f9d1400f00445183b3477391f58979aa3'
...
* commit '567d6d5f9d1400f00445183b3477391f58979aa3':
avprobe: add local per-stream state
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-11 16:46:30 +01:00
Derek Buitenhuis
9d48aa6d7d
Merge commit 'c9478410c68c04261f9cfcd80474607e50bd1852'
...
* commit 'c9478410c68c04261f9cfcd80474607e50bd1852':
avprobe: add local per-file state
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-11 16:33:13 +01:00
Derek Buitenhuis
6614214ece
Merge commit '168a443d43b10ef6a3545d64b2f8bc90144ce4b7'
...
* commit '168a443d43b10ef6a3545d64b2f8bc90144ce4b7':
avprobe: print information from the codec descriptor
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-11 16:01:22 +01:00
Derek Buitenhuis
80195236c8
Merge commit 'e7188a1a84817b8d4337340c21c552ad0b6cb2fd'
...
* commit 'e7188a1a84817b8d4337340c21c552ad0b6cb2fd':
avprobe: remove a pointless condition and a dead branch
Merged-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-04-11 15:30:55 +01:00
Derek Buitenhuis
b62825a480
ffprobe: Deprecate stream timecode field and add frame side data timecode field
...
Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
2016-02-01 18:19:30 +00:00
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>
2015-12-29 08:59:16 -08:00
Stefano Sabatini
91c2a33d01
ffprobe: use print_val to print the frame pkt_size value
...
This allows to honour formatting options.
2015-12-16 18:59:23 +01:00
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>
2015-12-06 14:37:40 +01:00