Menu

#921 Erroneous output. Video height differs with style of invocation. Also corruption of unit.

Incorrect_result
open
nobody
None
5
2015-05-06
2015-05-06
No

This is a report of some strange behavior with Mediainfo 0.7.73.0 on Windows 7.

I try to use command output redirection with the FOR statement to capture the output from Mediainfo. However parameter %Height% returns wrong value.
Also just letting Mediainfo output it's info to the console shows another quirk. the unit "pixels" becomes "pixel3".

info.cmd

@echo off
mediainfo --Language=raw "--InForm=Video;%%Height%%,%%Height_String%%" "%~1"
for /f "tokens=1-2 delims=," %%i in ('^
mediainfo --Language=raw "--InForm=Video;%%Height%%,%%Height_String%%" "%~1"') do ( set "h1=%%i" & set "h2=%%j" )
echo %h1%,%h2%

result (test.mkv is attached)

prompt> info.cmd test.mkv
480,480 pixel3
504,480 pixels

prompt> 
2 Attachments

Discussion


Log in to post a comment.

MongoDB Logo MongoDB