Go here for the latest official version of Shotcut.
This is what you need to click on to see all of the video filters. You actually need to have something in the source, or something selected in the timeline (or playlist) to see the filters.
Make a copy of your project (.mlt file), just in case. Open the copy in an editor, such as Notepad++ (Windows). Find all occurrences of the string “shotcut:filter”, et voilà.
It would be a simple matter to create an “App” to just drag and drop a mlt file into it
and get a list of filters used.
I know how to do it using Applescript for Mac or Bash+GTKdialog for Linux, but no idea on Windows.
Since most users will be using Windows, it would be pretty useless.
Perhaps someone on the forum can write something using C/C++ and Qt (since it’s already installed with SC) or even a batch(bat) file, although the latter would have no GUI.
Thanks Neil, didn’t know about “findstr”, I suppose it descriptive enough.
I’m assuming that Windows Batch files support drag and drop.
Thinking about it, they should as the OS will push any cmd line parameters along with the actual batch file when it calls cmd.exe
I still prefer the GUI aspect of Notepad++. It has so many options for the “find” command: “text”, “regular expression”, search only in highlighted text, search in only 1 file, search in all files open in Notepad++, search in files within a directory, match case, match words, wraparound etc… see below where I search for the text “<fe” (filter effect) within <SVG> tags (the results, including line-numbers, are shown at the bottom):
You have a point there, NP++ is very good with that sort of thing.
Just thinking about the whole procedure of having to open NP++,
if you haven’t made a quick link (short cut to it).
You may also find that some users will be scared off by all the other XML.
A cut-down “App” would just list the filters used, less intimidating to some.
When you install Notepad++ it creates an option in the context menu of Windows Explorer “Edit with Notepad++”. This will appear on the menu whenever you right-click a file in Windows Explorer.
If you have XML-phobia, just increase the size of the find sub-window to fit the whole window. Out of sight, out of mind, as my old mum used to say. But be careful, it’s sometimes not so easy to grab the handle to decrease the size.
I suspect more Windows users would be worried about getting a terminal window pop up that they’ve probably never experienced before.
Regarding cross-platform, it is simple to create an HTML/javascript file to grep lines from one or more files and display them. That way users click on an HTML file and are immediately faced with the comfortable familiarity of a browser window, with the options laid out before them. I may have a go myself at doing this.
Good point, plus you will find that those that have XML-phobia, will probably suffer from CLI-Phobia as well.
All things considered, your idea of using a Web browser is probably the most cross-platform and “friendly” way to approach this.
The added benefit of being html+js, it would be rather simple to modify it to display other parameters, like clips used, project settings (video mode), etc.
Could actually be very handy to solve many queries on the forum.
Thanks for the insight.
My concern was the listing of filters in the Shotcut GUI, to review or edit in place. The filter icon (triangular flag) disappeared from the Timeline panel on the left, and I couldn’t find a way to get it back.
The set of filters had appeared in the filter panel as I was building it. I want to get back to that view.
I’d rather not have to edit the mlt file, but I see the information there, using N++.
If so it means that the filters were applied to the TRACK not to the CLIPs. If the icon is no longer there it would mean that you have somehow deleted the filters.
The first thing I would do would be to make a copy of the project file (.mlt). If you have deleted the filters then when you close Shotcut, the MLT will by default be overwritten and the filters will be permanently lost.
If you open the copy, the filters should magically reappear, but of course you will lose any editing you had done since you last saved the original file. Editing the XML (MLT) file could re-instate the filters, but it is fraught with risk and you’d have to be very careful you didn’t totally screw up the file. If you do do any editing use copies and keep the originals
Change the extension from .txt to .html
Double click on it, it will prompt for a file, browse to a mlt file and open it.
It will list any filters used, plus the video mode of that project.
You can then select/copy all the text and post it on this forum.
Might be useful to some.
Please note that it’s still very crude, no error checking etc.
Maybe a starting point for others to improve on.
Thanks for making it available on your server.
One thing I would change, is add an “accept” filter on the file types to restrict it to .mlt.
This way, people don’t accidentally try and analyze other file types.
Other changes would definitely be in order like you say, formatting of the output and making the page look a bit nicer.