[XYScript] MediaSheet: MediaInfo and Syntax Highlighting

Discuss and share scripts and script files...
Post Reply
WirlyWirly
Posts: 331
Joined: 21 Oct 2020 23:33
Location: XY 64-Bit | Win 11 @ 100% (3440x1440)

[XYScript] MediaSheet: MediaInfo and Syntax Highlighting

Post by WirlyWirly »

MediaSheet
syntaxHighlighting.webp
MediaSheet.png
fullMediaInfo.png
fullScreenshot.webp
Introduction
This XYScript will display a preview window for code files with Syntax Highlighting, a custom MediaInfo + Screenshots window for video files, and the full MediaInfo text for everything else.

Features
  • SyntaxHighlighting: A window displaying full syntax highlighting using the highlight.js script.
  • MediaSheet: A custom window for video files that will display a MediaInfo overview and grid of screenshots. Clicking the filename will open the video in your default player, clicking the MediaInfo overview will open the full MediaInfo text, and clicking the screenshots will generate even more screenshots and open them in your default image viewer
  • MediaInfo: Display the full MediaInfo text for the selected file.
Dependencies
This script relies on 4 external programs, 3 of which are already bundled with the download...

Instructions
Download the attached MediaSheet.7z file and extract it to anywhere on your computer.

I have included 3/4 of the required programs that MediaSheet uses, but you will have to source MovieThumbnailer yourself from the link above, as it is a bit too large to include with the download. After you have downloaded it, place the contents in the folder listed below...

:info: If you already have these programs on your system, you can edit the MediaSheet.ini file so that it points to their absolute paths, but this will of course break portability.

Code: Select all

MediaSheet\resources\programs\jq\jq.exe
MediaSheet\resources\programs\mediainfo\MediaInfo.exe
MediaSheet\resources\programs\movieThumbnailer\mtn.exe
MediaSheet\resources\programs\quickjs\qjs.exe
After you have placed MovieThumbnailer in the appropriate folder, simply select a file and then run the script.

If it is code-type file that has been specified in the MediaSheet.ini file, then you will be presented with a window displaying the Syntax highlighting. Video extensions will display the MediaSheet window and anything else will display the full MediaInfo text.

Various options can be configured in the MediaSheet.ini file. I have specified the more common code-type files so they'll work out of the box, but highlighter.js supports a lot more than what I've included, so you can add more code-type files yourself. Keep in mind that large code files and generating more\larger screenshots will introduce delays.

If you're running MediaSheet on a potato, you may want to adjust some of the default settings :whistle:

Download
MediaSheet.7z
To see the attached files, you need to log into the forum.

WirlyWirly
Posts: 331
Joined: 21 Oct 2020 23:33
Location: XY 64-Bit | Win 11 @ 100% (3440x1440)

Re: [XYScript] MediaSheet: MediaInfo and Syntax Highlighting

Post by WirlyWirly »

Bumped to v2.5 because I did bunch of refactoring, switched one of the dependencies around, and added a Syntax Highlighting window for code-type files :o

It's pretty cool, now I kinda wanna extend this to do more stuff with other filetypes :ninja:

Post Reply