Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

17.06 - check not respond with Force parameter #607

Open
PhilGourgand opened this issue Jul 24, 2017 · 4 comments
Open

17.06 - check not respond with Force parameter #607

PhilGourgand opened this issue Jul 24, 2017 · 4 comments
Assignees

Comments

@PhilGourgand
Copy link

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>
@JeromeMartinez
Copy link
Member

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
Copy link
Member

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

@g-maxime
Copy link
Contributor

@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

@JeromeMartinez
Copy link
Member

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants