@jonray this transition is looks professional. go ahead.
I totally agree, especially noticeable on the slow demo. I have a plan, though - next time I get time to experiment, I plan to make a diagonal swipe matte (black/white) video using the same HTML file, then apply it to the clips via “mask from file”. Or I could use the mask:simple shape filter. Either way if I can create a diagonal transition which coincides with the blue bar moving across - if it works to plan I should get a perfect transition! If I get success I’l post here.
I’ll sort out the HTML files as soon as possible and post them.
HTML files attached:
JonRay HTML files TRANSPARENT with BLUE swipes.zip (32.4 KB)
I’ve included the webvfx.js file. (This has to be put in the same folder as the .html files. If you would like to know a bit about my style of creating HTML files for use in SC (so that you may understand my code better), you may like to see my recent set of tutorials on this. Part 1 is here:
(although they’re already out of date, since the “Overlay HTML” filter had its name changed to “text:HTML” 2 days before I posted them on YouTube ).
Indeed a clever approach. By contrast, my idea seems a bit too simple: I thought of applying a blur filter during the swipe. This makes is just less obvious, though. An actual diagonal transition behind the swipe is way better.
That would be wonderful.
Your tutorial on YouTube will be helpful for several persons, I am certain. That the parts were over various threads was a bit untidy, so now concentrated in one place is more accessible. And with part 4 published as well, I will rewatch the whole series .
You can change the title of the videos and the descriptions, and hopefully the people will understand what you are referring to.
Try to do it with the keyed mask filter for real transitions!
It WORKS! Woo-HOO! Perfect transitions revealed by the blue diagonal swipe.
First, here’s the result:
How I did it:
I adapted the HTML code to make it black and white (it must start all white and end all black), then applied it to a 4-second colour clip in SC, then exported it as an Mp4. I named it the same as the HTML file but added MATTE PAIR to the file-name for identification.:
Then set the time line up like this:
Step-by step instructions:
- Make 4 video tracks;
- Put clip 1 on V1;
- Put the Matte Pair mp4 on V4. Use this as a template only for guiding where to split clip 2 (hide V4 with the eye icon). Line up the end of this clip with the end of Clip 1.
- Put clip 2 on V2. Overlap it and line it up with Matte clip on V4. Split at position= end of clip 1. This gives clip 2A and 2B.
- Apply a Mask:from file filter to Clip 2A. Select custom and point to the Matte pair MP4.
- Put a transparent colour clip on V3. Make it 4 seconds long. Apply the Text:HTML filter (v.19.06 onwards), select webvfx and point to the original blue sliding HTML file.
Preview - it should work.
Then - move clip [(Edit) 2B] down to V1 and repeat for all other clips in your sequence:
Ta - Dah!
It may look a complex procedure when written out like this, but it didn’t take long once I had prepared the HTML file and the Matte pair MP4. I used the copy feature to copy the transparent clip, and the copy filters feature to ad the “Mask:from file” filter to each clip.
Of course, I would need to make more Matte Mp4s if I wanted to change the angles of the diagonal swipe to add variety.
I also made a FAST matte MP4 to make this demo:
One more point: It’s easy to change the colours of the swipe bar by adapting the original HTML file.
Beautiful, like a real transition.
Yes, it is a bit more difficult than an actual transition. But it isn’t that complex if one is following your instructions.
Adjusting the length of the transparent clip to get a seamless transition is every time necessary. It would be easier if one could just use a PNG like your “Diagonal Rain” transition.
That said, it really isn’t that much work. Thanks for your instructions!
Just a minor comment regarding your files: The body and #fullscreen_box have a background colour defined. Because of the transparent in the name of the folder I thought there was no background.
Also a typo:
I guess it should be 2B instead of 2A.
That is a good idea and quite easy as I noticed.
It unfortunately has one downside: The angle of the diagonal mask is not adjustable so the stripes have to adhere to the given angle.
But if that is the preferred angle, this definitely saves time.
Why don’t you use “Rotate and scale” for the mask?
And how do you apply this filter only to the mask? I tried it with and without Mask: Apply but it affects the whole clip and not only the mask. My basic understanding is not enough, I guess. I probably need a proper introduction into masking.
By the way, if you use the winking smiley too often, it seems condescending and I don’t think you mean it that way.
The HTML file has a “data-control” value of 4 seconds, so if you set the length of the transparent clip in the timeline to 4 seconds it should work as intended. The matte (black and white version) was based on the HTML file so the two should, in theory, work in sync together.
Well spotted! It’s purposefully done, because when I preview in Chrome I remove the “x” from “lightgreyx” and “purplex” so I can see the background colour, otherwise it would just look white. Adding the “x” makes the background transparent, because it forces the browser (or SC) to use the default value, which is transparent.
Ah, yes, you are correct.Thanks!
Yes indeed. It will be quite easy, though, to make several HTML files for varying angles, then produce a corresponding Matte MP4 for each.
Hi @DvS, thank you. I just tried that (had to apply a scale value to zoom in as well as rotate, of course). However I got into a bit of trouble aligning this up with the HTML. I think the rotated Mask MP4 probably travels at a slighly different speed than the original (athough I can’t be 100% sure).
Just to add, personally, I don’t have an issue with your “wink” emoticons"…
I’m going to experiment with using “Mask:simple shape” instead of “Mask: from file” next, when I get some time…
Sorry, in Germany we use that winking smiley often for a hint.
It seems the data-control is only for the browser and in Shotcut the length of the clip is used.
I assumed that was the reason, just wanted to make you aware that you uploaded this version .
Exactly. It needs preparation but only once and then it is fairly fast to do.
And that is my problem because with a zoom I would add another element to the transition which I do not want. Could you perhaps elaborate how you would do it, @DvS?
I read once an article about the differences in perceiving of smileys/emojis among various persons and it seems that is the case now. I am not able to say if my perception is the general perception in Switzerland but personally, it has this connotation of “you know that, right?” if used frequently within few comments/messages. Less frequently used, I perceive it as a friendly nod or also as a hint. It is good to know this, so I will try to remember this possible use. And you do not have to be sorry if I misinterpreted it .
You are from Switzerland? Therefore I must apologise for England beating you 6-5 on penalties in the football last Sunday
Yes, indeed. I am fine with that, I am really not interested in football . So you are a fan of the English team then?
I am currently watching your tutorial so it is funny to receive a message from you.
Yes, I do like to watch all the England matches. Also watching the women’s World Cup at the moment - congratulations USA for your 13-0 victory over Thailand …
Thank you. I hope there are no errors in it…!!
Would it be possible to do the following:
Create an Overlay HTML filter to mirror the Matte MP4 file but in GREEN and apply the CHROMA filter to reveal the slide on V1 gradually (synchronised with the transition). Then apply the “transition” Overlay HTML filter to get the snazzy animation.
This would do away with the multiple MP4 files for different angles.
If this worked I could knock up a proper Filter with various options (angle, colors etc) that would then do away with multiple HTML files as well.
Everything is fine. I just would add to the description that the Overly HTML filter is named differently now.
And the newest part had useful bits to improve my skills, so thanks!
As I understood so far, you don’t want to use the preset “Diagonal”-Transition and lay your stripes over it? Why?
You can fit the stripes motion to the diagonal transition which works fine. So I will use it if I am fine with this angle.
But if you want another angle, though, you have to use this approach. In DEMO 2 the different angles are shown.