WEBVTT

00:00.890 --> 00:01.100
Hey.

00:01.850 --> 00:07.700
So in this video, we are going to deal with the P.D.A fight, a kind of you can see a binary fight.

00:08.180 --> 00:12.380
And for illustration purposes, let me upload one video file.

00:13.160 --> 00:13.870
So flawed.

00:14.780 --> 00:18.100
And that is a one sample file has been kept here.

00:18.320 --> 00:22.370
Let me open this file and I will show you what is there inside this file.

00:23.180 --> 00:30.500
So let me open with this head of economic read and you can see it has just a two page and a very simple

00:30.500 --> 00:31.550
tax has been written.

00:31.910 --> 00:37.300
So sometimes the data is available as a part of such a kind of very close form format.

00:38.240 --> 00:41.870
And this is a proprietary format by this Haddo corporation.

00:42.530 --> 00:44.070
So let me upload this simple.

00:44.120 --> 00:45.170
Not really a file.

00:45.840 --> 00:46.160
OK.

00:47.150 --> 00:47.540
All right.

00:47.990 --> 00:54.130
Now, to read this and playing with this file from the python, we are going to use the library by PDAF

00:54.140 --> 00:55.930
to let us important.

00:56.170 --> 00:59.630
And let's check whether this library's available or not.

01:01.140 --> 01:03.180
By p e f.

01:04.740 --> 01:05.140
Let's.

01:06.640 --> 01:14.440
And you can see that it came like module, not phone data, so we can easily install it with Delp installation

01:14.890 --> 01:19.120
and to execute all those cell scribbly.

01:19.180 --> 01:22.690
Well, come on, you have to start with the explanation, Mark.

01:23.710 --> 01:25.510
They installed.

01:27.590 --> 01:32.580
Q Space and I thank you by EDF.

01:34.010 --> 01:40.190
So it will download this by Pudi of two package from the central repository and install on a local machine.

01:43.200 --> 01:44.430
Now, let's do the same thing.

01:44.990 --> 01:52.410
We are going to import this by PDAF to as let's say.

01:54.150 --> 01:58.100
Saada Cronin was named Space Will Give like a PDAF.

02:00.880 --> 02:03.070
Next, this same simple dot video file.

02:03.120 --> 02:04.120
We are going to read it.

02:05.050 --> 02:14.470
So we are just going to create a 5.0 and those file points will be creating from this open function.

02:15.040 --> 02:18.190
So let me give the name like sample.

02:20.060 --> 02:20.750
Not PDA.

02:21.700 --> 02:26.900
And I want to open this particular file into binary Villamor.

02:27.410 --> 02:31.400
So no more in this case, one V, a simple remote.

02:31.550 --> 02:36.440
But it will be a hot beat that indicates that this is the binary file.

02:38.430 --> 02:39.940
Hopes it will be open.

02:41.940 --> 02:47.040
Let me assign it to some failed pointer file object file, very bad.

02:49.820 --> 02:54.870
If you see the type of this file video, it won't be like a tax.

02:54.930 --> 02:55.680
Are you a rapper?

02:56.220 --> 02:57.710
We got it.

02:58.290 --> 03:03.150
It is a more friendly to because here we are dealing with the binary file.

03:04.320 --> 03:06.090
Now, let's read this fine.

03:06.210 --> 03:11.190
So for reading purposes, we are going to use this PDAF not.

03:13.330 --> 03:14.850
BDA file that he.

03:15.980 --> 03:24.000
And let me posit this fight point objects, let's say PDAF on this, quote it.

03:25.320 --> 03:27.990
So it will return as this EDF.

03:29.720 --> 03:32.910
By pdaf to over you, very the kind of objects.

03:34.040 --> 03:39.960
Let's say we want to know how many total number of pages are there inside this video of the object.

03:40.670 --> 03:42.400
So we can just simply use, like.

03:44.340 --> 03:48.180
Numb piece on this PDA for that.

03:48.700 --> 03:49.760
So that will be a two.

03:49.980 --> 03:52.640
That means there are total two pages available.

03:54.690 --> 03:58.260
Let's say if you want to grab the content of very a speech.

03:59.940 --> 04:02.780
So we can use PDAF in the school that he did.

04:03.390 --> 04:09.600
Now this is a central object and to this object on Libya are going to get all those main information

04:09.630 --> 04:12.090
associated with this Arab ruler file.

04:12.570 --> 04:14.390
And all those my information also.

04:15.450 --> 04:16.410
So let's say get.

04:17.750 --> 04:21.780
There will be lots of gang related trails that that get paid.

04:21.860 --> 04:26.870
We are going to use it and to get which particular page number you want to read.

04:26.970 --> 04:27.170
Right.

04:27.740 --> 04:30.140
So you can use it like zero.

04:30.410 --> 04:33.710
So zero indexing here refers to a very first page.

04:34.880 --> 04:35.480
Page one.

04:36.590 --> 04:40.760
Let's put into what is there inside this page one.

04:41.770 --> 04:42.190
All right.

04:42.230 --> 04:45.590
So you can see it's kind of like snooty kind of objects.

04:47.230 --> 04:53.590
Suppose we want to grab what is the text inside this page one, page one not.

04:54.820 --> 04:57.150
We can use, like extract tax.

05:00.120 --> 05:08.040
And let me add any and you can see exit the same tax or what is written inside this, a fight we help

05:08.230 --> 05:09.960
write the same way.

05:09.990 --> 05:12.170
You can grab the page, too, or so.

05:13.110 --> 05:14.820
So, yeah, that's cool.

05:16.040 --> 05:18.780
You did not get.

05:20.910 --> 05:21.410
Speech.

05:22.000 --> 05:22.990
Let's hear first one.

05:24.630 --> 05:26.760
And beach to.

05:27.890 --> 05:30.860
Not extract X.

05:33.750 --> 05:35.880
So this is the Texel Beach to.

05:37.690 --> 05:39.930
All right, so let us close this fight now.

05:41.660 --> 05:45.630
So all those reading related information, we help Danny.

05:48.170 --> 05:53.130
Now, let's see how well we can get right into some kind of pdaf fine.

05:53.870 --> 05:54.530
So far that.

05:55.660 --> 05:58.120
We hope to create a media for that object.

05:59.200 --> 06:08.110
So that will be a right writer variable will be created from PDA stored PDA writer.

06:11.370 --> 06:11.840
All right.

06:12.710 --> 06:13.040
Now.

06:14.180 --> 06:19.940
Let's say inside this PDAF, right, that we are going to add a very first page.

06:20.180 --> 06:26.430
What we have created so this first page we got from this sample DOT P.D.A, fine.

06:27.080 --> 06:29.680
So same page we can edit here also.

06:30.060 --> 06:33.710
So like add pages or one matter, these are relevant.

06:34.340 --> 06:35.740
And we can pass on here.

06:36.260 --> 06:37.190
Page one.

06:37.820 --> 06:38.870
Let me run it.

06:39.410 --> 06:45.260
Now let's open one file a right binary more so that will be open.

06:46.310 --> 06:47.540
Let's say new.

06:48.050 --> 06:50.760
Simply not to DFI.

06:51.390 --> 06:54.590
And I want to open it in to write more.

06:54.830 --> 06:56.640
And this is the binary file.

06:56.690 --> 06:59.050
So it will be a WB, right.

06:59.150 --> 06:59.810
Binary more.

07:02.090 --> 07:08.270
Let me say to some of it, one classmate, our idea really of file.

07:10.460 --> 07:11.020
And No.

07:12.860 --> 07:14.530
We can use video writer.

07:16.890 --> 07:17.150
Right.

07:17.510 --> 07:25.920
Matter and where we're going to light it so everything will be returned to this output file stream.

07:27.130 --> 07:38.710
Let me run it and let's just close this output, not close, because when something got written, you

07:38.710 --> 07:40.060
have to close that file.

07:40.170 --> 07:40.420
So.

07:41.740 --> 07:44.190
All right, now, let's just verify from here.

07:44.750 --> 07:48.430
And you can see another file, but a new one, this goes empl.

07:49.100 --> 07:49.850
Just click on it.

07:51.690 --> 07:53.700
And open with this economic read.

07:54.960 --> 08:03.060
And you can see new file, new unnice coast sample or PDA got created and now you'll be able to observe

08:03.060 --> 08:09.690
that it has just a one page because the same one page we have extricated from this simple DOT PDA file

08:10.050 --> 08:13.960
and we'll just return inside this new underscore separate.

08:13.970 --> 08:14.810
OK, PDA, fine.

08:15.750 --> 08:16.110
All right.

08:16.500 --> 08:23.970
So that is how if the data available in some kind of textual format and those data is available in such

08:23.970 --> 08:32.370
a kind of close form format of PDA format, you can use this by PDA to library and you can deal with

08:32.370 --> 08:33.350
this text.

08:34.400 --> 08:34.770
All right.

08:35.020 --> 08:36.210
Let's all about this video.
