YouTube2Text

IGCSE Computer Science 2023-25 - (1) Data Representation - 1.2(a) Text, Sound and Images — Transcript

by Mr Bulmer's Learning Zone · 2,049 words · 362 segments · language en · Watch on YouTube

Full transcript

  1. 0:00for this next video we're going to
  2. 0:01continue with data representation but
  3. 0:03we're going to move on to part two
  4. 0:05which is all about text sound and images
  5. 0:09um in particular this is broken into
  6. 0:10three specific parts
  7. 0:12character sets
  8. 0:14um working with ascii code and unicode
  9. 0:16and the representation of sound and the
  10. 0:19representation of bitmap images
  11. 0:21all these different file formats text
  12. 0:23sound and images um need to be converted
  13. 0:26into a binary format
  14. 0:28in order for a computer to understand
  15. 0:30and be able to work with it and this um
  16. 0:33this video hopefully will explain all of
  17. 0:36that to you
  18. 0:38so we start off with character sets
  19. 0:40ascii code and unicode but um the
  20. 0:44question is what are character sets well
  21. 0:47these are made up of all the letters the
  22. 0:48numbers and various symbols
  23. 0:51then that can be encoded inside a
  24. 0:52computer as patterns of binary digits
  25. 0:56but what does that mean
  26. 0:58well when you press a key key on your
  27. 1:00keyboard a number is generated that
  28. 1:03represents a symbol for that particular
  29. 1:05key this is called a character code a
  30. 1:08complete collection of characters is
  31. 1:10what's known as a character set now well
  32. 1:13what do i mean by that
  33. 1:14um for example if um we press the a
  34. 1:19the capital a on on your keyboard
  35. 1:22and the number 65 is generated now this
  36. 1:26cost is the idenary number and that is
  37. 1:28converted into binary which would be 0 1
  38. 1:311 lot of 64 0 0 0 0 0 and then 1 being
  39. 1:36the one so 65
  40. 1:38the ascii code system the american
  41. 1:41standard code for information
  42. 1:42interchange was set up um
  43. 1:45a long time ago back in 1963
  44. 1:47and it was used for use in the
  45. 1:49communication systems and in computer
  46. 1:52systems
  47. 1:53as you can see here i've i've
  48. 1:54highlighted the um character capital a
  49. 1:58from the keyboard
  50. 1:59which has a decimal value of 65 and an x
  51. 2:03decimal value of 41 and of course that's
  52. 2:05been converted into binary as you can
  53. 2:08see there
  54. 2:11um the standard ascii code character set
  55. 2:13consists of seven bits
  56. 2:15um seven bit codes
  57. 2:17so any a number from zero to 127 in
  58. 2:21general or
  59. 2:220 0 to 7f in hexadecimal so basically it
  60. 2:27allows for 128 different characters to
  61. 2:30be represented
  62. 2:31and characters that you can find on the
  63. 2:32standard keyboard
  64. 2:34also together with that
  65. 2:36um 32 control codes
  66. 2:39i'm going moving from
  67. 2:410 to 31
  68. 2:44and as you can see there
  69. 2:45um the backspace
  70. 2:47is represented by the
  71. 2:49number eight
  72. 2:51and the escape key on the keyboard is
  73. 2:53represented by the number 27 or a next
  74. 2:55decimal
  75. 2:561b
  76. 2:58now obviously um
  77. 3:00128 characters doesn't give us a lot of
  78. 3:02scope for storing numbers
  79. 3:04um symbols
  80. 3:06um letters etc so in the 1980s a version
  81. 3:11of ascii came out called extended ascii
  82. 3:14um which allowed for not seven bits but
  83. 3:16now eight bit um character sets and uh
  84. 3:19doubling the number from 128 to 256
  85. 3:22different characters
  86. 3:24this enabled um
  87. 3:26the
  88. 3:27storage and storage of such characters
  89. 3:29such as copyright sign
  90. 3:31letters with them certain access accents
  91. 3:33over them and various uh other european
  92. 3:36languages such as the greek alphabet
  93. 3:38including
  94. 3:39alpha beta
  95. 3:41and we have pie and um and omega
  96. 3:45but even with that
  97. 3:47um it wasn't really enough
  98. 3:49so a new system was developed um a
  99. 3:51system called unicode
  100. 3:54which went from a to 16 to 32-bit um
  101. 3:57character sets
  102. 3:59um so you can with 32 bits you can
  103. 4:02you can still rather rather a lot of
  104. 4:05information in fact with 32 bits as you
  105. 4:07can see here
  106. 4:09we can store over 2 billion different
  107. 4:12characters
  108. 4:13with his two bits so with this now all
  109. 4:16the emojis that you're obviously
  110. 4:19familiar with um can be stored as well
  111. 4:21and you can see there i've used the
  112. 4:22website unicode
  113. 4:24table.com
  114. 4:26a great website for finding out all
  115. 4:28about
  116. 4:29um unicode and the various other
  117. 4:31character sets that are available
  118. 4:36moving on
  119. 4:37second part representation of sound
  120. 4:41now remember as we said at the very
  121. 4:42beginning um computers can only work in
  122. 4:45binary
  123. 4:46all data must be converted into binary
  124. 4:49in order for a computer to process it
  125. 4:51sound
  126. 4:52is of no exception
  127. 4:54to do this sound is captured usually by
  128. 4:57a microphone and then converted um into
  129. 5:00a digital signal
  130. 5:02when we speak when we sing or hear
  131. 5:04noises our ears sense vibrations and
  132. 5:07interpret them as sound these are what
  133. 5:09we know as sound waves
  134. 5:11each sound wave has a frequency
  135. 5:14as a wavelength and an amplitude the
  136. 5:16amplitude specifies the loudness of the
  137. 5:19sound
  138. 5:20sound waves vary continuously this means
  139. 5:23that sound is analog
  140. 5:25computers cannot work with analog data
  141. 5:27so sound waves need to be sampled in
  142. 5:29order to be stored in a computer
  143. 5:31sampling means measuring the amplitude
  144. 5:34of a sound wave this is done using an
  145. 5:37analog to digital converter as you can
  146. 5:39see the thing flashing here something
  147. 5:41called an adc
  148. 5:43analog to digital converter
  149. 5:48okay so to convert the analog data to
  150. 5:50digital the sound waves are sampled at
  151. 5:52regular time intervals the amplitude of
  152. 5:55the sound cannot be measured precisely
  153. 5:57so approximate values
  154. 5:59are stored
  155. 6:00what does that mean well if we use this
  156. 6:02graph as an example the graph shows a
  157. 6:04sound wave being sampled the x-axis the
  158. 6:08thing along the bottom shows the time
  159. 6:10intervals when the sound was sampled um
  160. 6:13in this case 1 to 20 to 21
  161. 6:16and the y-axis shows the amplitude of
  162. 6:18the of the sample sound up to zero to
  163. 6:21ten
  164. 6:24um at time interval one you see here the
  165. 6:27approximate amplitude is ten at time
  166. 6:29interval two the approximate amplitude
  167. 6:31is four and so on all 20 time intervals
  168. 6:35because the amplitude range shown is 0
  169. 6:38to 10 then 4-bit binary can be used to
  170. 6:40represent each amplitude value for
  171. 6:42example
  172. 6:449 will be represented
  173. 6:47converted to binary
  174. 6:49with the value 1 0 0 1.
  175. 6:53so increasing the number of possible
  176. 6:54values used to represent sound amplitude
  177. 6:57also increases the accuracy of the
  178. 6:59sample sound for example using a range
  179. 7:02of 0 to 127 gives a much more accurate
  180. 7:05representation
  181. 7:07of the sound sample
  182. 7:09the number of bits per sample is known
  183. 7:11as a sample resolution also known as a
  184. 7:14bit depth
  185. 7:15so in the example on the previous
  186. 7:18slide the sampling resolution is four
  187. 7:21bits
  188. 7:22sampling rate is the number of sound
  189. 7:24samples taken per second this and you
  190. 7:26may be familiar with this term this is
  191. 7:28measured in hertz
  192. 7:30where one hertz means one sample per
  193. 7:33second
  194. 7:35so how is sampling used to record a um a
  195. 7:37sound clip well the amplitude of the
  196. 7:40sound wave is first determined at set
  197. 7:42time intervals the sampling rate
  198. 7:45this gives an approximate representation
  199. 7:47of the sound wave
  200. 7:48and each sample of the sound wave is
  201. 7:51then encoded as a series of binary
  202. 7:53digits
  203. 7:55of course using a
  204. 7:56higher sampling rate or larger
  205. 7:58resolution will result in a more
  206. 8:00faithful faithful representation of the
  207. 8:03original sound source however the higher
  208. 8:06the sampling rate and or sampling
  209. 8:08resolution the greater the file size
  210. 8:12so the benefit there are obviously
  211. 8:14benefits and drawbacks of using a larger
  212. 8:16sampling resolution when recording sound
  213. 8:18the benefits obviously um
  214. 8:21much
  215. 8:22better sound quality larger dynamic
  216. 8:24range and um less sound distortion
  217. 8:28but
  218. 8:29of course it's going to produce larger
  219. 8:30file sizes
  220. 8:32these large files
  221. 8:33are going to take longer to transmit or
  222. 8:35download
  223. 8:37over the internet
  224. 8:39and it potentially would require greater
  225. 8:41processing power
  226. 8:43now there is a standard um used
  227. 8:46generally mp3s and cds and they are
  228. 8:49sampled um using 16-bit sampling
  229. 8:51resolutions and a 44.1 kilohertz
  230. 8:55sampling rate
  231. 8:56that is 44 100 samples every second
  232. 9:00this being standard gives a very high
  233. 9:02quality sound reproduction
  234. 9:06and finally how do we represent bitmap
  235. 9:10images
  236. 9:11um on the computer
  237. 9:13um well bim up images are made up of
  238. 9:15pixels a term you may be familiar with
  239. 9:18and pixels is short for picture elements
  240. 9:22an image stops installing your computer
  241. 9:24is made up of a two-dimensional matrix
  242. 9:27of pixels and pixels can take
  243. 9:30different shapes such as side by side in
  244. 9:32this case under circles um
  245. 9:35join together as so
  246. 9:37so there are pixels in all images that
  247. 9:39are pixels on your iphone um on your tv
  248. 9:42screen on your computer screen
  249. 9:45the more pixels in an image the closer
  250. 9:47you get to the original image
  251. 9:51um each pixel
  252. 9:54each little tiny square can be
  253. 9:56represented as a binary number and so a
  254. 9:59bitmap image is stored in a computer as
  255. 10:01a series of binary numbers so that in
  256. 10:04the example below a black and white
  257. 10:06image only requires
  258. 10:08one bit per pixel
  259. 10:10to store its information this means that
  260. 10:12each pixel
  261. 10:14can be one of two colors corresponding
  262. 10:17to either a one
  263. 10:18or a zero
  264. 10:20so this little black and white face
  265. 10:22which we've got on here um an eight by
  266. 10:26eight pixel grid black and white image
  267. 10:28uses 64 bits to store the bitmap only
  268. 10:32zeros and ones
  269. 10:37now if we want to increase the colors
  270. 10:40um i'm showing an example here i've
  271. 10:43increased it from a one bit two colors
  272. 10:46to a two bit image
  273. 10:49um
  274. 10:50if each pixel is represented by two bits
  275. 10:52then each pixel can be one of four
  276. 10:55colors so two to the two equals four
  277. 10:59corresponding to the value zero zero
  278. 11:01zero one
  279. 11:02one zero or one one
  280. 11:05okay
  281. 11:06obviously this doubles every time so if
  282. 11:09each pixel is represented by three bits
  283. 11:12then each pixel can be one of eight
  284. 11:14colors
  285. 11:15two to the three equals eight different
  286. 11:17colors as you can see there they would
  287. 11:19be the corresponding numbers
  288. 11:22the number of bits used to represent
  289. 11:23each color is called the color depth an
  290. 11:278-bit color depth means that each pixel
  291. 11:29can be one of 256
  292. 11:32different colors
  293. 11:34modern computers your macbooks
  294. 11:37or pc laptops
  295. 11:39modern computers have a 24-bit color
  296. 11:42depth which means over 60 million
  297. 11:44different colors can be represented
  298. 11:47represented
  299. 11:49with x pixels 2 to the x colors
  300. 11:52can be represented as a generalization
  301. 11:54increasing the color depth also
  302. 11:56increases the size of the file when
  303. 11:58storing an image basically like with
  304. 12:01sound the better the quality
  305. 12:03the the
  306. 12:04bigger the file you're gonna need to
  307. 12:06store
  308. 12:09image resolution refers to the number of
  309. 12:10pixels that make up an image for example
  310. 12:13an image could contain 4096 by 3072
  311. 12:17pixels so we basically multiplied those
  312. 12:19two together the sort of the grid matrix
  313. 12:22and we would in this case end up with 12
  314. 12:24over 12 million
  315. 12:26um
  316. 12:27different picks 12 million pixels
  317. 12:29with each one being
  318. 12:31a potentially different color
  319. 12:33three
  320. 12:34um
  321. 12:36sorry five different pictures or five
  322. 12:39five images all of the same car wheel
  323. 12:43image a has the highest resolution the
  324. 12:46most number of pixels
  325. 12:48um and imagee is a lower quality and far
  326. 12:51fewer pixels
  327. 12:53image e has become pixelated or fuzzy
  328. 12:57um this is a result of changing the
  329. 12:59number of pixels per centimeter used to
  330. 13:01store the image
  331. 13:03that is it's reducing um the picture
  332. 13:05resolution
  333. 13:09so there are drawbacks the main drawback
  334. 13:11of using high resolution images
  335. 13:13live with sound is it increases the file
  336. 13:16size
  337. 13:17as the number of pixels used to
  338. 13:18represent the image is increased the
  339. 13:20size of the file will also increase
  340. 13:23this impacts on how many images can be
  341. 13:26stored on for example hard drive on your
  342. 13:28computer it also impacts on the time to
  343. 13:30download an image from the internet all
  344. 13:32the time to transfer the image from one
  345. 13:34device to another
  346. 13:36a certain amount of reduction in
  347. 13:37resolution of an image is possible
  348. 13:40before the loss of the quality can or
  349. 13:42will become noticeable
  350. 13:46now that is it for this next part we
  351. 13:50will be moving on into in the next video
  352. 13:52into more detail about file compressions
  353. 13:55and how we can look at lossy and lost
  354. 13:57lossless compression to come to compress
  355. 14:00these files before we send them on
  356. 14:03to other computers
  357. 14:05but
  358. 14:06for now i'd like to thank you very much
  359. 14:07for watching and thank you so much for
  360. 14:09subscribing to this channel and i will
  361. 14:11see you in the next video thank you very
  362. 14:14much indeed bye for now

About this transcript

This page contains the full transcript of IGCSE Computer Science 2023-25 - (1) Data Representation - 1.2(a) Text, Sound and Images by Mr Bulmer's Learning Zone, generated from the public captions YouTube serves with the video. The transcript has 2,049 words across 362 segments, with the original timestamps preserved so you can click any line to jump to that moment in the embedded player.

What you can do with it

Use the transcript to take notes, quote the speaker, build a study guide, generate a summary with ChatGPT or Claude via the YouTube Summary tool, or export it as a timed subtitle file with YouTube to SRT. You can also re-open it in the transcriber to translate the transcript into 100+ languages.

Free YouTube transcript tool

YouTube2Text is a free YouTube transcript generator — no signup, no daily limit. Paste any YouTube link and get the full transcript instantly, with timestamps, click-to-jump, translation to 100+ languages, AI prompts for ChatGPT, Claude, and Gemini, and exports to TXT, SRT, VTT, or Markdown.