From patchwork Wed Oct 19 12:35:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tobias Rapp X-Patchwork-Id: 1074 Delivered-To: ffmpegpatchwork@gmail.com Received: by 10.103.140.133 with SMTP id o127csp188707vsd; Wed, 19 Oct 2016 05:35:42 -0700 (PDT) X-Received: by 10.194.148.7 with SMTP id to7mr4292293wjb.31.1476880542329; Wed, 19 Oct 2016 05:35:42 -0700 (PDT) Return-Path: Received: from ffbox0-bg.mplayerhq.hu (ffbox0-bg.ffmpeg.org. [79.124.17.100]) by mx.google.com with ESMTP id f10si38835415wjl.93.2016.10.19.05.35.41; Wed, 19 Oct 2016 05:35:42 -0700 (PDT) Received-SPF: pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) client-ip=79.124.17.100; Authentication-Results: mx.google.com; spf=pass (google.com: domain of ffmpeg-devel-bounces@ffmpeg.org designates 79.124.17.100 as permitted sender) smtp.mailfrom=ffmpeg-devel-bounces@ffmpeg.org Received: from [127.0.1.1] (localhost [127.0.0.1]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTP id 7A399689B16; Wed, 19 Oct 2016 15:35:28 +0300 (EEST) X-Original-To: ffmpeg-devel@ffmpeg.org Delivered-To: ffmpeg-devel@ffmpeg.org Received: from p1002.netstorage.at (p1002.netstorage.at [89.207.146.186]) by ffbox0-bg.mplayerhq.hu (Postfix) with ESMTPS id 94B4D680D29 for ; Wed, 19 Oct 2016 15:35:20 +0300 (EEST) Received: from mailix (noaport.de [46.237.252.213]) by p1002.netstorage.at (Postfix) with ESMTPA id 0280E81A37 for ; Wed, 19 Oct 2016 14:35:22 +0200 (CEST) Received: from frogstar-a.kuhnle.local (frogstar-a.kuhnle.local [192.168.0.26]) by mailix with ESMTPA ; Wed, 19 Oct 2016 14:35:22 +0200 From: Tobias Rapp To: ffmpeg-devel@ffmpeg.org Date: Wed, 19 Oct 2016 14:35:22 +0200 Message-Id: <1476880522-28419-4-git-send-email-t.rapp@noa-archive.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1476880522-28419-1-git-send-email-t.rapp@noa-archive.com> References: <1476880522-28419-1-git-send-email-t.rapp@noa-archive.com> Subject: [FFmpeg-devel] [PATCH 3/3] fate: Add MXF D10/DV25 probe tests X-BeenThere: ffmpeg-devel@ffmpeg.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: FFmpeg development discussions and patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: FFmpeg development discussions and patches MIME-Version: 1.0 Errors-To: ffmpeg-devel-bounces@ffmpeg.org Sender: "ffmpeg-devel" Signed-off-by: Tobias Rapp --- tests/fate/mxf.mak | 19 ++++++++++++++++++- tests/ref/fate/mxf-probe-d10 | 3 +++ tests/ref/fate/mxf-probe-dv25 | 4 ++++ 3 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 tests/ref/fate/mxf-probe-d10 create mode 100644 tests/ref/fate/mxf-probe-dv25 +format_name=mxf|duration=1.000000|bit_rate=30679040|tag:uid=a741d0c7-244a-bc4a-bd36-3323d04f8954|tag:generation_uid=c1d7a0ee-89d6-754d-bd52-cdf42b53de9f|tag:company_name=AVID|tag:product_name=TRMG|tag:product_version=2.97|tag:product_uid=00000000-0000-0000-0000-000000000000|tag:modification_date=2006-06-22T16:37:36.000000Z|tag:material_package_umid=0x060A2B340101010501010D431300000008DC3900972905800000080046B1E89C|tag:timecode=01:00:00:00 diff --git a/tests/fate/mxf.mak b/tests/fate/mxf.mak index e95c0b5..27d30e5 100644 --- a/tests/fate/mxf.mak +++ b/tests/fate/mxf.mak @@ -8,7 +8,24 @@ fate-mxf-essencegroup-demux: CMD = framecrc -i $(TARGET_SAMPLES)/mxf/opatom_esse FATE_MXF += fate-mxf-multiple-components-demux fate-mxf-multiple-components-demux: CMD = framecrc -i $(TARGET_SAMPLES)/mxf/multiple_components.mxf -vcodec copy +# +# Tests probing MXF format and stream properties +# +PROBE_FORMAT_STREAMS_COMMAND = \ + ffprobe$(PROGSSUF)$(EXESUF) -show_entries format=format_name,duration,bit_rate:format_tags:streams:stream_tags \ + -print_format compact=p=0 -bitexact -v 0 + +FATE_MXF_PROBE-$(call ENCDEC2, MPEG2VIDEO, PCM_S16LE, MXF) += fate-mxf-probe-d10 +fate-mxf-probe-d10: SRC = $(TARGET_SAMPLES)/mxf/Sony-00001.mxf +fate-mxf-probe-d10: CMD = run $(PROBE_FORMAT_STREAMS_COMMAND) -i "$(SRC)" + +FATE_MXF_PROBE-$(call ENCDEC2, DVVIDEO, PCM_S16LE, MXF) += fate-mxf-probe-dv25 +fate-mxf-probe-dv25: SRC = $(TARGET_SAMPLES)/mxf/Avid-00005.mxf +fate-mxf-probe-dv25: CMD = run $(PROBE_FORMAT_STREAMS_COMMAND) -i "$(SRC)" + FATE_MXF-$(CONFIG_MXF_DEMUXER) += $(FATE_MXF) FATE_SAMPLES_AVCONV += $(FATE_MXF-yes) -fate-mxf: $(FATE_MXF-yes) +FATE_SAMPLES_FFPROBE += $(FATE_MXF_PROBE-yes) + +fate-mxf: $(FATE_MXF-yes) $(FATE_MXF_PROBE-yes) diff --git a/tests/ref/fate/mxf-probe-d10 b/tests/ref/fate/mxf-probe-d10 new file mode 100644 index 0000000..2efdb9a --- /dev/null +++ b/tests/ref/fate/mxf-probe-d10 @@ -0,0 +1,3 @@ +index=0|codec_name=mpeg2video|profile=0|codec_type=video|codec_time_base=1/25|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|width=720|height=608|coded_width=0|coded_height=0|has_b_frames=0|sample_aspect_ratio=152:135|display_aspect_ratio=4:3|pix_fmt=yuv422p|level=5|color_range=tv|color_space=unknown|color_transfer=unknown|color_primaries=unknown|chroma_location=topleft|field_order=tt|timecode=N/A|refs=1|id=N/A|r_frame_rate=25/1|avg_frame_rate=25/1|time_base=1/25|start_pts=0|start_time=0.000000|duration_ts=4|duration=0.160000|bit_rate=50000000|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=N/A|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|tag:file_package_umid=0x060A2B340101010501010D1313000000AE86B200913105800000080046A54011 +index=1|codec_name=pcm_s16le|profile=unknown|codec_type=audio|codec_time_base=1/48000|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=48000|channels=8|channel_layout=unknown|bits_per_sample=16|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/48000|start_pts=0|start_time=0.000000|duration_ts=8562|duration=0.178375|bit_rate=6144000|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=N/A|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|tag:file_package_umid=0x060A2B340101010501010D1313000000AE86B200913105800000080046A54011 +format_name=mxf|duration=0.178375|bit_rate=56419744|tag:uid=0086b200-9131-0580-0000-080046a54011|tag:generation_uid=b486b200-9131-0580-0000-080046a54011|tag:company_name=SONY|tag:product_name=eVTR|tag:product_version=1.00|tag:product_uid=060e2b34-0401-0106-0e06-012001010100|tag:modification_date=2004-07-05T21:39:00.000000Z|tag:material_package_umid=0x060A2B340101010501010D1313000000A886B200913105800000080046A54011|tag:timecode=07:12:10:00 diff --git a/tests/ref/fate/mxf-probe-dv25 b/tests/ref/fate/mxf-probe-dv25 new file mode 100644 index 0000000..6ea541e --- /dev/null +++ b/tests/ref/fate/mxf-probe-dv25 @@ -0,0 +1,4 @@ +index=0|codec_name=dvvideo|profile=unknown|codec_type=video|codec_time_base=1/25|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|width=720|height=576|coded_width=720|coded_height=576|has_b_frames=0|sample_aspect_ratio=16:15|display_aspect_ratio=4:3|pix_fmt=yuv420p|level=-99|color_range=N/A|color_space=unknown|color_transfer=unknown|color_primaries=unknown|chroma_location=topleft|field_order=bb|timecode=N/A|refs=1|id=N/A|r_frame_rate=25/1|avg_frame_rate=25/1|time_base=1/25|start_pts=0|start_time=0.000000|duration_ts=25|duration=1.000000|bit_rate=N/A|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=N/A|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|tag:file_package_umid=0x060A2B340101010501010D4313000000F2E2FCE98722F14F947F08DE1EF7 A8DA +index=1|codec_name=pcm_s16le|profile=unknown|codec_type=audio|codec_time_base=1/48000|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=48000|channels=1|channel_layout=unknown|bits_per_sample=16|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/48000|start_pts=0|start_time=0.000000|duration_ts=48000|duration=1.000000|bit_rate=768000|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=N/A|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|tag:file_package_umid=0x060A2B340101010501010D4313000000F2E2FCE98722F14F947F08DE1EF7A8DA +index=2|codec_name=pcm_s16le|profile=unknown|codec_type=audio|codec_time_base=1/48000|codec_tag_string=[0][0][0][0]|codec_tag=0x0000|sample_fmt=s16|sample_rate=48000|channels=1|channel_layout=unknown|bits_per_sample=16|id=N/A|r_frame_rate=0/0|avg_frame_rate=0/0|time_base=1/48000|start_pts=0|start_time=0.000000|duration_ts=48000|duration=1.000000|bit_rate=768000|max_bit_rate=N/A|bits_per_raw_sample=N/A|nb_frames=N/A|nb_read_frames=N/A|nb_read_packets=N/A|disposition:default=0|disposition:dub=0|disposition:original=0|disposition:comment=0|disposition:lyrics=0|disposition:karaoke=0|disposition:forced=0|disposition:hearing_impaired=0|disposition:visual_impaired=0|disposition:clean_effects=0|disposition:attached_pic=0|tag:file_package_umid=0x060A2B340101010501010D4313000000F2E2FCE98722F14F947F08DE1EF7A8DA