Hey.
So in this video, we are going to deal with the P.D.A fight, a kind of you can see a binary fight.
And for illustration purposes, let me upload one video file.
So flawed.
And that is a one sample file has been kept here.
Let me open this file and I will show you what is there inside this file.
So let me open with this head of economic read and you can see it has just a two page and a very simple
tax has been written.
So sometimes the data is available as a part of such a kind of very close form format.
And this is a proprietary format by this Haddo corporation.
So let me upload this simple.
Not really a file.
OK.
All right.
Now, to read this and playing with this file from the python, we are going to use the library by PDAF
to let us important.
And let's check whether this library's available or not.
By p e f.
Let's.
And you can see that it came like module, not phone data, so we can easily install it with Delp installation
and to execute all those cell scribbly.
Well, come on, you have to start with the explanation, Mark.
They installed.
Q Space and I thank you by EDF.
So it will download this by Pudi of two package from the central repository and install on a local machine.
Now, let's do the same thing.
We are going to import this by PDAF to as let's say.
Saada Cronin was named Space Will Give like a PDAF.
Next, this same simple dot video file.
We are going to read it.
So we are just going to create a 5.0 and those file points will be creating from this open function.
So let me give the name like sample.
Not PDA.
And I want to open this particular file into binary Villamor.
So no more in this case, one V, a simple remote.
But it will be a hot beat that indicates that this is the binary file.
Hopes it will be open.
Let me assign it to some failed pointer file object file, very bad.
If you see the type of this file video, it won't be like a tax.
Are you a rapper?
We got it.
It is a more friendly to because here we are dealing with the binary file.
Now, let's read this fine.
So for reading purposes, we are going to use this PDAF not.
BDA file that he.
And let me posit this fight point objects, let's say PDAF on this, quote it.
So it will return as this EDF.
By pdaf to over you, very the kind of objects.
Let's say we want to know how many total number of pages are there inside this video of the object.
So we can just simply use, like.
Numb piece on this PDA for that.
So that will be a two.
That means there are total two pages available.
Let's say if you want to grab the content of very a speech.
So we can use PDAF in the school that he did.
Now this is a central object and to this object on Libya are going to get all those main information
associated with this Arab ruler file.
And all those my information also.
So let's say get.
There will be lots of gang related trails that that get paid.
We are going to use it and to get which particular page number you want to read.
Right.
So you can use it like zero.
So zero indexing here refers to a very first page.
Page one.
Let's put into what is there inside this page one.
All right.
So you can see it's kind of like snooty kind of objects.
Suppose we want to grab what is the text inside this page one, page one not.
We can use, like extract tax.
And let me add any and you can see exit the same tax or what is written inside this, a fight we help
write the same way.
You can grab the page, too, or so.
So, yeah, that's cool.
You did not get.
Speech.
Let's hear first one.
And beach to.
Not extract X.
So this is the Texel Beach to.
All right, so let us close this fight now.
So all those reading related information, we help Danny.
Now, let's see how well we can get right into some kind of pdaf fine.
So far that.
We hope to create a media for that object.
So that will be a right writer variable will be created from PDA stored PDA writer.
All right.
Now.
Let's say inside this PDAF, right, that we are going to add a very first page.
What we have created so this first page we got from this sample DOT P.D.A, fine.
So same page we can edit here also.
So like add pages or one matter, these are relevant.
And we can pass on here.
Page one.
Let me run it.
Now let's open one file a right binary more so that will be open.
Let's say new.
Simply not to DFI.
And I want to open it in to write more.
And this is the binary file.
So it will be a WB, right.
Binary more.
Let me say to some of it, one classmate, our idea really of file.
And No.
We can use video writer.
Right.
Matter and where we're going to light it so everything will be returned to this output file stream.
Let me run it and let's just close this output, not close, because when something got written, you
have to close that file.
So.
All right, now, let's just verify from here.
And you can see another file, but a new one, this goes empl.
Just click on it.
And open with this economic read.
And you can see new file, new unnice coast sample or PDA got created and now you'll be able to observe
that it has just a one page because the same one page we have extricated from this simple DOT PDA file
and we'll just return inside this new underscore separate.
OK, PDA, fine.
All right.
So that is how if the data available in some kind of textual format and those data is available in such
a kind of close form format of PDA format, you can use this by PDA to library and you can deal with
this text.
All right.
Let's all about this video.