So now let's take a look at the turd of exercise in this working with video section.
We are we're going to save and record videos using open TV, so I know you would have seen that before.
Previously in collab, however, it's going to be a bit more explicit and go through this in a bit more
detail.
So remember when we're creating the video right to object, we're firstly, we're loading a video like
normal here and we're not doing any.
We actually we all agree scaling this image here.
So that's the output of image here.
So we're going to use this virtual video writer, which is a very cool function that OpenSea provides.
What it allows us to do is this is the output name here to save this image file, and we specify the
source type file type of file that's going to create using the MJ peg, which is MPEG.
It's really short for something else.
But is it in motion JPEGs that actually what is with the shortfall and this is the MPEG file format
of what we're storing it as this is a frame rate, this is a width and height and falls indicates,
but it's a color or not.
So because we're writing a grayscale image.
We use it.
We use falls here.
Normally it's true by default, so it doesn't really matter what you put there.
However, you need to have a color, but it should be true.
It's true by default, so it's not really specific.
So it's not really that important.
So for CC is a full byte code.
That's what was MGP g like this?
So for byte code is used to specified a codec that we use and we can.
There are many other codecs that are available.
However, this one works quite well and reliably and quickly in open TV.
So I would encourage you to use this one.
But there are others that are available here and actually and gives a very good is not super large,
mega-sized to be fair, but it does give a very big video size.
So just be careful if your memory hard drive space is a limiting factor, so you can just check out
the other options here and we can use.
So simply, let's run this.
This is just going to create an output video and it's done already.
That was quite fast.
And let's go to find her to see the output video of that.
So let's bring that window here and drummer that I was to video see, we got a nice, skilled video
from the original video, so it's pretty cool that we are manipulating videos now and open TV and it
looks and it works quite well.
You see how quickly that this function run in a matter of seconds and just converted all the frames
quickly to grayscale and wrote the video file.
So that's it for this lesson.
This lesson is actually quite important.
When and what?
When using color of the cloud environment like that where you can't actually bring up a live video player
like we do when we're running it locally.
So this allows you to run some intense GPU type computer vision, work on the cloud free one collab
without having to, and allows you to easily just review the video outputs that you create.
So the thank you, I will now move on to the two video of the section.