Fade in Fade Out animation between Videos (AVPlayer) - avplayer

I want do play different videos according to selected button and I want to make a smooth transition between the videos with a fade in fade out transition.
Every time when I change the video, a black background appears and the video start.

Related

Stop the svg animation on a certain frame

I have an svg animation file. I want to stop this animation at a certain frame, for example frame 3. How to do it?

How to stretch the width of mpv/mplayer by keeping the height of the video same

I have a screen which is in portrait mode and want to play some videos on it using mpv or mplayer on just lower 70% of the screen area. But since the screen is in portrait mode the video (which is also landscape) isnt getting stretched fully width wise and only occupies the width area according to resolution of the video.
The command I tried was
└──╼ $ mplayer -vf scale -zoom -xy 500 out.mp4
The video should fill the entire width os the screen, keeping the height of the video same. The video of course would get stretched but thats ok. Im getting blue area for video, but I want orange area for the video.
Got the answer from this post :-
FFmpeg - Change resolution of the video with aspect ratio
Had to flip aspect ratio for my project from 16/9 to 9/16
ffmpeg -i <input> -vf "scale=100:-1,setdar=9/16" <output>

How to play gif with Fabricjs?

I know fabricjs can play Video and sprite sheet, But I have a lot of gif files, can I play these gif directly with fabricjs? I am not able to find method in Fabricjs website.
According to specs about the Canvas 2DRenderingContext drawImage method,
Specifically, when a CanvasImageSource object represents an animated image in an
HTMLImageElement, the user agent must use the default image of the animation (the one
that the format defines is to be used when animation is not supported or is
disabled), or, if there is no such image, the first frame of the animation, when
rendering the image for CanvasRenderingContext2D APIs.
This means that only the first frame of our animated canvas will be drawn on the canvas.
This is because we don't have any control on animations inside an img tag.
And fabricjs is based on canvas API, thus regulated by the same rules.
The solution is you need to parse all the still-images from your animated gif and to export it as a sprite-sheet. You can then easily animate it in fabricjs thanks to the sprite class.

mlt double tent fade in and fade out

Yesterday I saw the wonderfull screen transition effect of a samsung smartphone, where the fade out and fade in was not just all screen getting black and coming back, butthe black color is arriving troug h2 lateral "tents" that arriving are making the screen black and the opposite. How to do it with melt?
PS.
the tents are blur and not just black blocks coming to blacking all the screen.
MLT has a transitions module named "luma" that takes a grayscale image to define the reveal of the second image or clip. There are some examples in this video.
Most of those examples are hard edge, but there is also a softness parameter. As for the blur, you can attach a blur filter to either clips and/or the transition as well. In addition, the blurriness parameter can be animated over time.

Animation with jQuery and HTML 5 — play sound, touch sensitive

I have a circle I divided it into 16 parts (4 segments in each of 4 quarters) and name each part by numbers 1,2,2,2 / 1,2,2,2 / 1,2,2,2 / 1,2,2,2.
I want to write an HTML5 and jQuery code to animate outline stork of circle by clicking on yellow part (1 piece of 16 parts is yellow; the others are gray). The program starts animation from where the yellow part is. The code should animate numbers around circle by changing its color and at the same time play a sound with each number. For example, if the animation receives part 1, its color changes to orange and plays the sound "hello"; and if the animation receives number 2, it plays sound "welcome" and changes its color to orange.
After each quarter of the circle, I want to have a little delay. For example, after playing quarter 1, the program should stop playing for 50sc and then start quarter 2 and so on. At the end of the process, the yellow part animates with glow light and stops playing.

Resources