From 54350f06e11727f255e3d1829cb1afde49931d8b Mon Sep 17 00:00:00 2001 From: Rodger Combs Date: Mon, 3 Oct 2016 23:49:09 -0500 Subject: ffprobe: report field order for video streams --- ffprobe.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'ffprobe.c') diff --git a/ffprobe.c b/ffprobe.c index 662137c704..7cd003482c 100644 --- a/ffprobe.c +++ b/ffprobe.c @@ -2268,6 +2268,19 @@ static int show_stream(WriterContext *w, AVFormatContext *fmt_ctx, int stream_id else print_str_opt("chroma_location", av_chroma_location_name(par->chroma_location)); + if (par->field_order == AV_FIELD_PROGRESSIVE) + print_str("field_order", "progressive"); + else if (par->field_order == AV_FIELD_TT) + print_str("field_order", "tt"); + else if (par->field_order == AV_FIELD_BB) + print_str("field_order", "bb"); + else if (par->field_order == AV_FIELD_TB) + print_str("field_order", "tb"); + else if (par->field_order == AV_FIELD_BT) + print_str("field_order", "bt"); + else + print_str_opt("field_order", "unknown"); + #if FF_API_PRIVATE_OPT if (dec_ctx && dec_ctx->timecode_frame_start >= 0) { char tcbuf[AV_TIMECODE_STR_SIZE]; -- cgit v1.2.3