|
|
|
@ -34,6 +34,7 @@ |
|
|
|
|
#include "libavutil/replaygain.h" |
|
|
|
|
#include "libavutil/spherical.h" |
|
|
|
|
#include "libavutil/stereo3d.h" |
|
|
|
|
#include "libavutil/timecode.h" |
|
|
|
|
|
|
|
|
|
#include "avformat.h" |
|
|
|
|
|
|
|
|
@ -407,6 +408,22 @@ static void dump_dovi_conf(void *ctx, const AVPacketSideData *sd) |
|
|
|
|
dovi->dv_bl_signal_compatibility_id); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void dump_s12m_timecode(void *ctx, const AVPacketSideData *sd) |
|
|
|
|
{ |
|
|
|
|
const uint32_t *tc = (const uint32_t *)sd->data; |
|
|
|
|
|
|
|
|
|
if ((sd->size != sizeof(uint32_t) * 4) || (tc[0] > 3)) { |
|
|
|
|
av_log(ctx, AV_LOG_ERROR, "invalid data\n"); |
|
|
|
|
return; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
for (int j = 1; j <= tc[0]; j++) { |
|
|
|
|
char tcbuf[AV_TIMECODE_STR_SIZE]; |
|
|
|
|
av_timecode_make_smpte_tc_string(tcbuf, tc[j], 0); |
|
|
|
|
av_log(ctx, AV_LOG_INFO, "timecode - %s%s", tcbuf, j != tc[0] ? ", " : ""); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
static void dump_sidedata(void *ctx, const AVStream *st, const char *indent) |
|
|
|
|
{ |
|
|
|
|
int i; |
|
|
|
@ -473,6 +490,10 @@ static void dump_sidedata(void *ctx, const AVStream *st, const char *indent) |
|
|
|
|
av_log(ctx, AV_LOG_INFO, "DOVI configuration record: "); |
|
|
|
|
dump_dovi_conf(ctx, sd); |
|
|
|
|
break; |
|
|
|
|
case AV_PKT_DATA_S12M_TIMECODE: |
|
|
|
|
av_log(ctx, AV_LOG_INFO, "SMPTE ST 12-1:2014: "); |
|
|
|
|
dump_s12m_timecode(ctx, sd); |
|
|
|
|
break; |
|
|
|
|
default: |
|
|
|
|
av_log(ctx, AV_LOG_INFO, |
|
|
|
|
"unknown side data type %d (%d bytes)", sd->type, sd->size); |
|
|
|
|