STEP 3 : Testing and application on your gst element
Last updated
Last updated
Assoc. Prof. Wiroon Sriborrirux, Founder of Advance Innovation Center (AIC) and Bangsaen Design House (BDH), Electrical Engineering Department, Faculty of Engineering, Burapha University
we found print command on 244 and 245 that we found on latest testing and comment those line for define new process working on element.
2. We will create frame counter for mesure framnum on this element plugin.
a. The first define the Global variable for add on every loop, That’s mean when frame data pass throught this element is add 1 to counter and save file.
b. Rebuild this element and inspect the data from gst-inspect
The name of this gstremer element is videodatagst.
3. Run the gst-element for watching the frame number
We can lock framnum with declare framenum on gst-luanch-1.0 command
4. Next, We will check size buffer when working.
declare GstMapInfo. for get buffer data. but it can’t readable cause the data on buffer is similar like number of string. (can’t read directly)
we will create data on 8 bit unsigned int for sort data on buffersize and print that data.
save file.
5. Build the gst element and run it.
6. Next, we will check input data video of our element pad and print it.
The first we will add GstCaps for declare variable get data on pad
print caps.
save file.
7. Re-build and run gst element
8. Adjust the resolution of video to 4k and look and size buffer will increase and data on pad will change resolution.
From data log we found the changing is buffersize 326 → 4682 and resolution of video from 320x240 → 4096x2160(4k).