Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering

How Video Players work

By shingaridavesh

Clicking on Michael Jackson video or Mission Impossible movie leads to…
Video display, but what is so special about these files? What is the data present in these files and how a player plays these files? The answer is Codec.
A codec is a software (at times also considered as hardware unit as set-top box attached with video conferencing system) which encodes or/and decodes a signal or digital media file such as song or video. Player use codecs to play and create digital media files.
CODEC = COder + DECoder
Codec is also referred as amalgamation of compression (encoding) function or/and decompression (decoding) function. But it is not necessary that a codec include both, some codecs only include one of them. 
 
How Video Player works
A codec is a critical component in the process of digital audio and video signal transmission.
 

Video Codec

A video codec is a combination of hardware (eg. our video players) and/or software which represents the video and audio captured by camera as digital stream of data (generally binary -0 & 1 data). 
 
How Video Players work2
Encoders have different functionality in different capturing devices because output format is functionality of a specific system. But capture devices and encoders are different things example a capture card will create a binary stream of data which will be stored as s file whereas encoder creates a stream of data which is transferred to a second device. The second device is generally termed as decoder, and its task is to decode the stream of data and recreate the video and audio captured by camera.
 
Process:
To start the process, video and audio should be present and this is shot by camera (Digicam, pan tilt zoom camera etc.). The camera has a sensor (CMOS sensor for eg.) which scans the scene left to right, so as to create lines and then vertically making a grid of 480 lines per scene. This creates video frames, shot at rate of 30 frames per sec. In standard definition TV samples are taken at 720 points on the line and each point corresponds to 1 pixel. To generate the original scene these pixel points are energized. In present day television brightness parameter along with color (chroma value – amount of Red, Blue, Green) of the sampled position is passed. But today Y, Cr, and Cb – as brightness, the red signal, and the blue signal parameters are passed, as they can generate the 4th parameter automatically.
The functionality of video codecs can be roughly divided into 3 categories:
1.       Camera captures the video and audio in form of signal, which is analog in nature. Codec samples the output signal. The rate at which sampling is done is known as the sampling rate. But the data related to brightness is sampled more than color because our eyes are more sensitive to brightness then color.
2.       Then the analog to digital conversion takes place and each sample is converted into 8 bits generally. This stage is called quantization.
How VIdeo Players work3
3.       3. In the last phase codec compresses the binary data stream to transmit the data efficiently, as there is lot of information related to video. Compression can be done in two ways: lossless and lossy. Lossless compression is the optimized mechanism as it uses fewer bits and also allows recovery of the original data stream. For example ziipping a file and disk compression. But lossless compression rarely allows more than an 80 % reduction in the number of data stream bits. So, in most of the cases it is never used for audio or video compression.  Lossy compression is generally preferred for audio and video compression. In this technique sampled values of brightness and other parameters are stored on the base how much they vary from average value.

Filed Under: How to

 

Questions related to this article?
👉Ask and discuss on EDAboard.com and Electro-Tech-Online.com forums.



Tell Us What You Think!! Cancel reply

You must be logged in to post a comment.

HAVE A QUESTION?

Have a technical question about an article or other engineering questions? Check out our engineering forums EDABoard.com and Electro-Tech-Online.com where you can get those questions asked and answered by your peers!


Featured Tutorials

  • Introduction to Brain Waves & its Types (Part 1/13)
  • Understanding NeuroSky EEG Chip in Detail (Part 2/13)
  • Performing Experiments with Brainwaves (Part 3/13)
  • Amplification of EEG Signal and Interfacing with Arduino (Part 4/13)
  • Controlling Led brightness using Meditation and attention level (Part 5/13)
  • Control Motor’s Speed using Meditation and Attention Level of Brain (Part 6/13)

Stay Up To Date

Newsletter Signup

Sign up and receive our weekly newsletter for latest Tech articles, Electronics Projects, Tutorial series and other insightful tech content.

EE Training Center Classrooms

EE Classrooms

Recent Articles

  • What is a loop calibrator? 
  • What are the battery-selection criteria for low-power design?
  • Key factors to optimize power consumption in an embedded device
  • EdgeLock A5000 Secure Authenticator
  • How to interface a DS18B20 temperature sensor with MicroPython’s Onewire driver

Most Popular

5G 555 timer circuit 8051 ai Arduino atmega16 automotive avr bluetooth dc motor display Electronic Part Electronic Parts Fujitsu ic infineontechnologies integratedcircuit Intel IoT ir lcd led maximintegratedproducts microchip microchiptechnology Microchip Technology microcontroller microcontrollers mosfet motor powermanagement Raspberry Pi remote renesaselectronics renesaselectronicscorporation Research samsung semiconductor sensor software STMicroelectronics switch Technology vishayintertechnology wireless

RSS EDABOARD.com Discussions

  • Measure AC current accurateley (100mA to 10A)
  • 74HC595 creating Fake output
  • What was before microcontrollers ?
  • NEED HELP FOR OP-AMP IN BGR
  • Check undesired substrate mode...

RSS Electro-Tech-Online.com Discussions

  • Control Bare LCD With ATmega328p
  • Need a ducted soldering fan for solder smoke extraction
  • Sla ir li ion
  • Question about ultrasonic mist maker
  • Best way to reduce voltage in higher wattage system?
Engineers Garage
  • Analog IC TIps
  • Connector Tips
  • DesignFast
  • EDABoard Forums
  • EE World Online
  • Electro-Tech-Online Forums
  • Microcontroller Tips
  • Power Electronic Tips
  • Sensor Tips
  • Test and Measurement Tips
  • 5G Technology World
  • About Us
  • Contact Us
  • Advertise

Copyright © 2022 WTWH Media LLC. All Rights Reserved. The material on this site may not be reproduced, distributed, transmitted, cached or otherwise used, except with the prior written permission of WTWH Media
Privacy Policy | Advertising | About Us

Search Engineers Garage

  • Projects and Tutorials
    • Electronic Projects
      • 8051
      • Arduino
      • ARM
      • AVR
      • PIC
      • Raspberry pi
      • STM32
    • Tutorials
    • Circuit Design
    • Project Videos
    • Components
  • Articles
    • Tech Articles
    • Insight
    • Invention Stories
    • How to
    • What Is
  • News
    • Electronic Products News
    • DIY Reviews
    • Guest Post
  • Forums
    • EDABoard.com
    • Electro-Tech-Online
    • EG Forum Archive
  • Digi-Key Store
    • Cables, Wires
    • Connectors, Interconnect
    • Discrete
    • Electromechanical
    • Embedded Computers
    • Enclosures, Hardware, Office
    • Integrated Circuits (ICs)
    • Isolators
    • LED/Optoelectronics
    • Passive
    • Power, Circuit Protection
    • Programmers
    • RF, Wireless
    • Semiconductors
    • Sensors, Transducers
    • Test Products
    • Tools
  • EE Resources
    • DesignFast
    • LEAP Awards
    • Oscilloscope Product Finder
    • White Papers
    • Webinars
  • EE Learning Center
    • Design Guides
      • WiFi & the IOT Design Guide
      • Microcontrollers Design Guide
      • State of the Art Inductors Design Guide
  • Women in Engineering