Page 2 of 2
Re: Video AND Photo resolution column
Posted: 03 Oct 2020 22:42
by TMProjection
highend wrote: ↑29 Sep 2020 07:44
but to me it looks like it will give a false count of the audio tracks, if for example you have a file with a AAC, AC3, DTS tracks, currently it would be listed as AAC x 3 I think, another thing is that if you had say 3+ AAC tracks in a row the AACAAC replacement would fail to produce the desired return I assume
Quite possible. But I neither have such video files to test and not the time to mux them (apart from the multitude of possible combinations).
subtitles are excluded currently, but were requested, although you may be leaving it up to the OP to add that part themselves.
That's the intention, because he said:
And say i also wanted to include video codec, and any subtitles if a file has any, i understand how you would include these parameters in the .txt file
I just wanted to show how my comments from the previous post can be implemented scripting wise...
Thanks again for all your time, i donated a little more.
Having some weird outcome though, I used the exact script and info in .txt file
I have attached an image of how my columns look, its the first column that were discussing which is currently outputting odd results
Re: Video AND Photo resolution column
Posted: 03 Oct 2020 22:55
by highend
Show the setup for that "all streams" column and provide a full output of mediainfo.exe "some path\one of that files.<whatever extension>...
Re: Video AND Photo resolution column
Posted: 03 Oct 2020 23:04
by TMProjection
Here you go, attached an image
Also i seen you post that in other posts but Im not sure how to do what youre asking:
provide a full output of mediainfo.exe "some path\one of that files.<whatever extension>
Could you explain what you mean by this please?
Re: Video AND Photo resolution column
Posted: 03 Oct 2020 23:10
by highend
You open a command prompt and navigate to the folder where your mediainfo.exe is (cd "C:\Program Files\MediaInfo_CLI_20.08_Windows_x64") and enter what I've posted into the command prompt (with a real path and file ofc)...
Re: Video AND Photo resolution column
Posted: 03 Oct 2020 23:29
by TMProjection
ah cheers, attached
Re: Video AND Photo resolution column
Posted: 03 Oct 2020 23:36
by highend
Select that file again and execute this as an XYplorer script
Code: Select all
$mediaInfo = "C:\Program Files\MediaInfo_CLI_20.08_Windows_x64\MediaInfo.exe";
text trim(runret("""$mediaInfo"" --Inform=""file://C:/Program Files/MediaInfo_CLI_20.08_Windows_x64/stream_format.txt"" ""<curitem>""", , 65001), <crlf>, "R")
and show it's output again
The stream_format.txt file still contains only these lines:
Code: Select all
General;%AudioCount%\r\n
Video;%Width%x%Height%:%Format%%Encoded_Library_Name%\r\n
Audio;%Format%\r\n
?
Re: Video AND Photo resolution column
Posted: 04 Oct 2020 00:18
by TMProjection
Yup the .txt file is still exactly the same as that:
General;%AudioCount%\r\n
Video;%Width%x%Height%:%Format%%Encoded_Library_Name%\r\n
Audio;%Format%\r\n
did you want me to do that in CMD?
i have very basic knowledge of CMD, what would be the full code to select the file then execute that code?
Re: Video AND Photo resolution column
Posted: 04 Oct 2020 09:34
by highend
did you want me to do that in CMD?
Select that file again and execute this as an XYplorer script