diff options
author | Anton Khirnov <anton@khirnov.net> | 2021-04-24 17:49:35 +0200 |
---|---|---|
committer | Anton Khirnov <anton@khirnov.net> | 2021-05-09 10:59:21 +0200 |
commit | 677a030b26045acb50353d7954ae984ceefcd807 (patch) | |
tree | c9701e5a0ba1a198585c3076c79854736c535a83 /fftools/ffprobe.c | |
parent | 544631cab1140044524bf6bc04ec8c5c275627b6 (diff) | |
download | ffmpeg-677a030b26045acb50353d7954ae984ceefcd807.tar.gz |
ffprobe: support printing more packet side data types
Specifically WebVTT subtitle data, CPB properties, audio service type
and mpegts stream id.
Diffstat (limited to 'fftools/ffprobe.c')
-rw-r--r-- | fftools/ffprobe.c | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/fftools/ffprobe.c b/fftools/ffprobe.c index f7c5db8613..88e82a4195 100644 --- a/fftools/ffprobe.c +++ b/fftools/ffprobe.c @@ -2029,6 +2029,23 @@ static void print_pkt_side_data(WriterContext *w, print_int("el_present_flag", dovi->el_present_flag); print_int("bl_present_flag", dovi->bl_present_flag); print_int("dv_bl_signal_compatibility_id", dovi->dv_bl_signal_compatibility_id); + } else if (sd->type == AV_PKT_DATA_AUDIO_SERVICE_TYPE) { + enum AVAudioServiceType *t = (enum AVAudioServiceType *)sd->data; + print_int("type", *t); + } else if (sd->type == AV_PKT_DATA_MPEGTS_STREAM_ID) { + print_int("id", *sd->data); + } else if (sd->type == AV_PKT_DATA_CPB_PROPERTIES) { + const AVCPBProperties *prop = (AVCPBProperties *)sd->data; + print_int("max_bitrate", prop->max_bitrate); + print_int("min_bitrate", prop->min_bitrate); + print_int("avg_bitrate", prop->avg_bitrate); + print_int("buffer_size", prop->buffer_size); + print_int("vbv_delay", prop->vbv_delay); + } else if (sd->type == AV_PKT_DATA_WEBVTT_IDENTIFIER || + sd->type == AV_PKT_DATA_WEBVTT_SETTINGS) { + if (do_show_data) + writer_print_data(w, "data", sd->data, sd->size); + writer_print_data_hash(w, "data_hash", sd->data, sd->size); } writer_print_section_footer(w); } |