Video AND Photo resolution column

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
TMProjection
Posts: 79
Joined: 26 Sep 2020 10:10

Re: Video AND Photo resolution column

Post 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
To see the attached files, you need to log into the forum.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Video AND Photo resolution column

Post 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>...
One of my scripts helped you out? Please donate via Paypal

TMProjection
Posts: 79
Joined: 26 Sep 2020 10:10

Re: Video AND Photo resolution column

Post 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?
To see the attached files, you need to log into the forum.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Video AND Photo resolution column

Post 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)...
One of my scripts helped you out? Please donate via Paypal

TMProjection
Posts: 79
Joined: 26 Sep 2020 10:10

Re: Video AND Photo resolution column

Post by TMProjection »

ah cheers, attached
To see the attached files, you need to log into the forum.

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Video AND Photo resolution column

Post 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
?
One of my scripts helped you out? Please donate via Paypal

TMProjection
Posts: 79
Joined: 26 Sep 2020 10:10

Re: Video AND Photo resolution column

Post 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?

highend
Posts: 15016
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Video AND Photo resolution column

Post by highend »

did you want me to do that in CMD?
Select that file again and execute this as an XYplorer script
One of my scripts helped you out? Please donate via Paypal

Post Reply