Work at SourceForge, help us to make it a better place! We have an immediate need for a Support Technician in our San Francisco or Denver office.

Close

Wrong output using template file on MediaInfo Cli, but with command template it works

SaintTDI
2013-01-08
2013-01-14
  • SaintTDI
    SaintTDI
    2013-01-08

    Hi all,

    I downloaded today MediaInfoCLI and I'm try to retrive some informations on .mkv files on my HDD.

    I'm a Win7x64 user, but i'm using the x32 exe.

    this is the command line that I use:

    C:\Users\Stefano\Downloads\MediaInfo.2012-04-10>MediaInfo.i386.exe "--Inform=file///template.txt" "G:\Serie\Da portare\Blitz.mkv"

    this is the template file that I use (in the folder C:\Users\Stefano\Downloads\MediaInfo.2012-04-10)

    General;File is:%FileName%\r\n
    Video;Resolution is:%Width%x%Height%\r\nAspect %DisplayAspectRatio/String%\r\n
    Audio;Codec = %Format%\r\n

    I tried with all kind of template file, also only:

    General;File is:%FileName%\r\n

    And also the command line I tried in different ways:

    MediaInfo.i386.exe --Inform=file///template.txt "G:\Serie\Da portare\Blitz.mkv"
    MediaInfo.i386.exe --Inform=file//template.txt "G:\Serie\Da portare\Blitz.mkv"
    MediaInfo.i386.exe "--Inform=file//template.txt" "G:\Serie\Da portare\Blitz.mkv"
    MediaInfo.i386.exe "--Inform=file///template.txt" "G:\Serie\Da portare\Blitz.mkv"

    but the output is always:

    General
    Unique ID : 211708459506373134201985953893279980059 (0x9F4590F02573958B92D7BBEF7021DA1B)
    Complete name : G:\Serie\Da portare\Blitz.mkv
    Format : Matroska
    Format version : Version 2
    File size : 5.73 GiB
    Duration : 1h 38mn
    Overall bit rate : 8 361 Kbps
    Encoded date : UTC 2011-10-08 13:47:17
    Writing application : mkvmerge v5.0.0 ('Die Wahre Liebe') built on Sep 25 2011 20:33:49
    Writing library : libebml v1.2.2 + libmatroska v1.3.0

    Video
    ID : 1
    Format : AVC
    Format/Info : Advanced Video Codec
    Format profile : High@L4.1
    Format settings, CABAC : Yes
    Format settings, ReFrames : 4 frames
    Codec ID : V_MPEG4/ISO/AVC
    Duration : 1h 38mn
    Bit rate : 6 594 Kbps
    Width : 1 920 pixels
    Height : 816 pixels
    Display aspect ratio : 2.35:1
    Frame rate : 24.000 fps
    Color space : YUV
    Chroma subsampling : 4:2:0
    Bit depth : 8 bits
    Scan type : Progressive
    Bits/(Pixel*Frame) : 0.175
    Stream size : 4.41 GiB (77%)
    Title : TbZ
    Writing library : x264 core 116 r2057 0ba8a9c
    Encoding settings : cabac=1 / ref=4 / deblock=1:-2:-1 / analyse=0x3:0x133 / me=umh / subme=10 / psy=1 / psy_rd=1.00:0.00 / mixed_ref=1 / me_range=32 / chroma_me=1 / trellis=2 / 8x8dct=1 / cqm=0 / deadzone=21,11 / fast_pskip=0 / chroma_qp_offset=-2 / threads=12 / sliced_threads=0 / nr=0 / decimate=1 / interlaced=0 / bluray_compat=0 / constrained_intra=0 / bframes=5 / b_pyramid=2 / b_adapt=2 / b_bias=0 / direct=3 / weightb=1 / open_gop=0 / weightp=2 / keyint=240 / keyint_min=24 / scenecut=40 / intra_refresh=0 / rc_lookahead=60 / rc=2pass / mbtree=1 / bitrate=6594 / ratetol=1.0 / qcomp=0.60 / qpmin=0 / qpmax=69 / qpstep=4 / cplxblur=20.0 / qblur=0.5 / vbv_maxrate=50000 / vbv_bufsize=50000 / nal_hrd=none / ip_ratio=1.40 / aq=1:1.00
    Language : English
    Default : Yes
    Forced : No

    Audio #1
    ID : 2
    Format : DTS
    Format/Info : Digital Theater Systems
    Codec ID : A_DTS
    Duration : 1h 38mn
    Bit rate mode : Constant
    Bit rate : 1 510 Kbps
    Channel(s) : 6 channels
    Channel positions : Front: L C R, Side: L R, LFE
    Sampling rate : 48.0 KHz
    Bit depth : 24 bits
    Compression mode : Lossy
    Stream size : 1.03 GiB (18%)
    Language : Italian
    Default : Yes
    Forced : No

    Audio #2
    ID : 3
    Format : AC-3
    Format/Info : Audio Coding 3
    Mode extension : CM (complete main)
    Format settings, Endianness : Big
    Codec ID : A_AC3
    Duration : 1h 38mn
    Bit rate mode : Constant
    Bit rate : 256 Kbps
    Channel(s) : 2 channels
    Channel positions : Front: L R
    Sampling rate : 48.0 KHz
    Bit depth : 16 bits
    Compression mode : Lossy
    Stream size : 180 MiB (3%)
    Language : English
    Default : No
    Forced : No

    Text
    ID : 4
    Format : VobSub
    Muxing mode : zlib
    Codec ID : S_VOBSUB
    Codec ID/Info : The same subtitle format used on DVDs
    Language : Italian
    Default : Yes
    Forced : No

    Instead if I try with this command line without file:

    MediaInfo.i386.exe "--Inform=Video;width is: %Width% Height is: %Height%" "G:\Serie\Da portare\Blitz.mkv"

    the outputs is:

    width is: 1920 Height is: 816

    so its right.

    Can somebody please can help me?

    Thank you very much
    Stefano

    Menu
    00:00:00.000 : en:00:00:00.000
    00:05:14.792 : en:00:05:14.792
    00:09:45.625 : en:00:09:45.625
    00:13:51.958 : en:00:13:51.958
    00:18:30.750 : en:00:18:30.750
    00:24:24.750 : en:00:24:24.750
    00:30:07.292 : en:00:30:07.292
    00:37:24.375 : en:00:37:24.375
    00:43:23.583 : en:00:43:23.583
    00:47:15.833 : en:00:47:15.833
    00:54:36.625 : en:00:54:36.625
    01:00:33.458 : en:01:00:33.458
    01:07:53.458 : en:01:07:53.458
    01:15:58.375 : en:01:15:58.375
    01:19:16.417 : en:01:19:16.417
    01:24:38.000 : en:01:24:38.000

     
    • Replace "file///" by "file://" (like "http://")

       
  • SaintTDI
    SaintTDI
    2013-01-08

    Instead if I try with this command line without file:

    MediaInfo.i386.exe "--Inform=Video;width is: %Width% Height is: %Height%" "G:\Serie\Da portare\Blitz.mkv"

    the outputs is:

    width is: 1920 Height is: 816

    so its right.

    Can somebody please can help me?

    Thank you very much
    Stefano

     
  • Albert
    Albert
    2013-01-14

    Use:
    MediaInfo.i386.exe "--Inform=file://template.txt" "G:\Serie\Da portare\Blitz.mkv"
    There are standard 2x '/', if you have Linux your path starts mostly with '/' so than you have file:///