Menu

Miss amount of video frames and audio samples

Help
dos386
2011-11-05
2012-12-11
  • dos386

    dos386 - 2011-11-05

    By default MI doesn't display amount of video frames and audio samples, and the duration has limited precision.

    Using the "-f" switch resolves those 3 problems, but it causes a huuuuge list full of redundant info.

    Is there a way to "fix" this myself (some hidden option) or could this behavior be changed ? Is there a special reason to omit this info if "-f" is not specified?

    PS: very useful and otherwise well working program … thank you :-)

     
  • Jerome Martinez

    Jerome Martinez - 2011-11-05

    th -f switch is planned for automation. You can create your own template, e.g.:
    mediainfo "-Inform=Video;"%FrameCount%" YourFile
    mediainfo -Inform=file://template.csx

    Some examples are there:
    http://mediainfo.svn.sourceforge.net/viewvc/mediainfo/MediaInfo/trunk/Source/Ressource/Plugin/Custom/

    mediainfo -Language=raw -f for the internal name of each field.

     
  • dos386

    dos386 - 2011-11-05

    Thanks …

    mediainfo -Inform=Video;"%FrameCount%"
    mediainfo -Inform=Audio;"%SamplingCount%"
    mediainfo -Inform=Video;"%Duration/String3%"

    do give the result … one result per call …

    Is there a special reason for not giving those 2 and full time precision by default ?

     
  • Jerome Martinez

    Jerome Martinez - 2011-11-05

    > do give the result … one result per call …

    Look at the template examples… You can do it in one call.

    > Is there a special reason for not giving those 2 and full time precision by default ?

    Most people are not interested in milliseconds for a 2 hours movie (do you have the count of milliseconds in htedescription of a movie?). Precision is two numbers by default (you have full precision for <1 minute clip)

    Some people want something different, and for this there are templates. You can create you own output, you're free.

     

Log in to post a comment.