MediaConch_SourceCode icon indicating copy to clipboard operation
MediaConch_SourceCode copied to clipboard

17.06 - check not respond with Force parameter

Open PhilGourgand opened this issue 8 years ago • 4 comments

Hi, On my ubuntu server, I installed MediaConch cli 17.06 for ubuntu but on my local machine (macos), I got MediaConch cli 17.05 installed with brew

I got noticed a weird behavior on the last version 17.06 for ubuntu with my command :

mediaconch --Policy=Mediaconch_MXF_PAD.xml --Format=xml --Force /Test_file.mxf

This command works well on local macos MediaConch cli 17.05 but on MediaConch cli 17.06 I have to ask twice to get a report

Behavior :

  • First time nothing Mediaconch doesn’t respond
  • Second time, I got the report

On Local files, distant files (HTTP/S & S3)

But when I remove the —Force parameter, media conch answer every request, but if I change anything on the policy The report is not refresh

Exemple:

ubuntu@:~/Checker$ mediaconch --Policy=Mediaconch_MXF_PAD.xml --Format=xml --Force https://s3-eu-west-1.amazonaws.com/test_bucket/Bande_Demo.mxf

ubuntu@:~/Checker$ mediaconch --Policy=Mediaconch_MXF_PAD.xml --Format=xml --Force https://s3-eu-west-1.amazonaws.com/test_bucket/Bande_Demo.mxf
<?xml version="1.0" encoding="UTF-8"?>
<MediaConch xmlns="https://mediaarea.net/mediaconch" xmlns:mmt="https://mediaarea.net/micromediatrace" xmlns:mi="https://mediaarea.net/mediainfo" version="0.3">
  <media ref="https://s3-eu-west-1.amazonaws.com/test_bucket/Bande_Demo.mxf">
    <policy name="is this a MXF file ?" type="and" rules_run="19" fail_count="19" pass_count="0" outcome="fail">
      <description>is this a MXF file ?</description>
      <rule name="conteneur = MXF" value="Format" tracktype="General" occurrence="*" operator="=" xpath="mi:MediaInfo/mi:track[@type='General'][*]/mi:Format='MXF'" actual="" outcome="fail"/>
      <rule name="profil = OP-1a" value="Format_Profile" tracktype="General" occurrence="*" operator="=" xpath="mi:MediaInfo/mi:track[@type='General'][*]/mi:Format_Profile='OP-1a'" actual="" outcome="fail"/>
      <rule name="Global Bitrate " value="OverallBitRate" tracktype="General" occurrence="*" operator="&gt;=" xpath="mi:MediaInfo/mi:track[@type='General'][*]/mi:OverallBitRate&gt;='50000000'" actual="" outcome="fail"/>
      <rule name="Video codec" value="Format" tracktype="Video" occurrence="*" operator="=" xpath="mi:MediaInfo/mi:track[@type='Video'][*]/mi:Format='MPEG Video'" actual="" outcome="fail"/>
      <rule name="Video codec version" value="Format_Version" tracktype="Video" occurrence="*" operator="=" xpath="mi:MediaInfo/mi:track[@type='Video'][*]/mi:Format_Version='2'" actual="" outcome="fail"/>
      <rule name="Video Bitrate mode" value="BitRate_Mode" tracktype="Video" occurrence="*" operator="=" xpath="mi:MediaInfo/mi:track[@type='Video'][*]/mi:BitRate_Mode='CBR'" actual="" outcome="fail"/>
      <rule name="Video Bitrate" value="BitRate" tracktype="Video" occurrence="*" operator="=" xpath="mi:MediaInfo/mi:track[@type='Video'][*]/mi:BitRate='50000000'" actual="" outcome="fail"/>
      <rule name="framerate" value="FrameRate" tracktype="Video" occurrence="*" operator="=" xpath="mi:MediaInfo/mi:track[@type='Video'][*]/mi:FrameRate='25.000'" actual="" outcome="fail"/>
      <rule name="resolution : width" value="Width" tracktype="Video" occurrence="*" operator="=" xpath="mi:MediaInfo/mi:track[@type='Video'][*]/mi:Width='1920'" actual="" outcome="fail"/>
      <rule name="resolution : height" value="Height" tracktype="Video" occurrence="*" operator="=" xpath="mi:MediaInfo/mi:track[@type='Video'][*]/mi:Height='1080'" actual="" outcome="fail"/>
      <rule name="video sampling" value="ChromaSubsampling" tracktype="Video" occurrence="*" operator="=" xpath="mi:MediaInfo/mi:track[@type='Video'][*]/mi:ChromaSubsampling='4:2:2'" actual="" outcome="fail"/>
      <rule name="Timecode source" value="TimeCode_Source" tracktype="Video" occurrence="*" operator="=" xpath="mi:MediaInfo/mi:track[@type='Video'][*]/mi:TimeCode_Source='Group of pictures header'" actual="" outcome="fail"/>
      <rule name="Audio codec" value="Format" tracktype="Audio" occurrence="*" operator="=" xpath="mi:MediaInfo/mi:track[@type='Audio'][*]/mi:Format='PCM'" actual="" outcome="fail"/>
      <rule name="Audio Bitrate" value="BitRate" tracktype="Audio" occurrence="*" operator="=" xpath="mi:MediaInfo/mi:track[@type='Audio'][*]/mi:BitRate='2304000'" actual="" outcome="fail"/>
      <rule name="Audio bitrate mode" value="BitRate_Mode" tracktype="Audio" occurrence="*" operator="=" xpath="mi:MediaInfo/mi:track[@type='Audio'][*]/mi:BitRate_Mode='CBR'" actual="" outcome="fail"/>
      <rule name="Audio channel" value="Channels" tracktype="Audio" occurrence="*" operator="=" xpath="mi:MediaInfo/mi:track[@type='Audio'][*]/mi:Channels='2'" actual="" outcome="fail"/>
      <rule name="Audio Samplerate" value="SamplingRate" tracktype="Audio" occurrence="*" operator="=" xpath="mi:MediaInfo/mi:track[@type='Audio'][*]/mi:SamplingRate='48000'" actual="" outcome="fail"/>
      <rule name="Number of audio track" value="ID" tracktype="Audio" occurrence="*" operator="starts with" xpath="starts-with(mi:MediaInfo/mi:track[@type='Audio'][*]/mi:ID,'3')" actual="" outcome="fail"/>
      <rule name="Number of audio track_copy" value="ID" tracktype="Audio" occurrence="*" operator="starts with" xpath="starts-with(mi:MediaInfo/mi:track[@type='Audio'][*]/mi:ID,'3')" actual="" outcome="fail"/>
    </policy>
  </media>
</MediaConch>

PhilGourgand avatar Jul 24 '17 13:07 PhilGourgand

Wow, several issues in one shot :(.

--force is expected to be used only for forcing again the analysis of a file after e.g. bug fixed in the tool. Policy timestamp change should be caught a cache cleared in that case. We need to fix that.

I need to try to reproduce the issue for the main issue, it is not expected.

JeromeMartinez avatar Jul 26 '17 13:07 JeromeMartinez

@g-maxime can you reproduce the issue in our environment?

JeromeMartinez avatar Jul 26 '17 13:07 JeromeMartinez

@JeromeMartinez Same output, mediaconch return an empty line one time on two (Ubuntu Server 16.04)

user@ubuntu:~$ mediaconch --Force Standards_Mismatch.mkv
pass! Standards_Mismatch.mkv

user@ubuntu:~$ mediaconch --Force Standards_Mismatch.mkv

user@ubuntu:~$ mediaconch --Force Standards_Mismatch.mkv
pass! Standards_Mismatch.mkv

user@ubuntu:~$ mediaconch --Force Standards_Mismatch.mkv

user@ubuntu:~$ mediaconch --Force Standards_Mismatch.mkv
pass! Standards_Mismatch.mkv

g-maxime avatar Jul 26 '17 21:07 g-maxime

but on MediaConch cli 17.06 I have to ask twice to get a report

This is expected to be fixed, please test latest snapshots (at least 20170803).

but if I change anything on the policy The report is not refresh

We can not reproduce this issue, we see the report refreshed if the policy file has changed (timestamp of the file).

JeromeMartinez avatar Aug 03 '17 10:08 JeromeMartinez