
Required_storage = tis * fps * toppf * cpp Suppose we are creating a video with a resolution of 1080 x 1920 (height x width) and that we'll spend 3 bytes per pixel (the minimal point at a screen) to encode the color (or 24 bit color, what gives us 16,777,216 different colors) and this video runs at 24 frames per second and it is 30 minutes long. It converts raw (uncompressed) digital audio/video to a compressed format or vice versa.īut if we chose to pack millions of images in a single file and called it a movie, we might end up with a huge file. In a digital audio system, a microphone converts sound to an analog electrical signal, then an analog-to-digital converter (ADC) - typically using pulse-code modulation (PCM) - converts the analog signal into a digital signal.ĬODEC is an electronic circuit or software that compresses or decompresses digital audio/video. Sound is the vibration that propagates as a wave of pressure, through the air or any other transmission medium, such as a gas, liquid or solid. Zeitgenössische Illustration (1886) audio - what you listen!Īlthough a muted video can express a variety of feelings, adding sound to it brings more pleasure to the experience. In summary this is the very basic idea behind a video: a series of pictures / frames running at a given rate. If you have a sequence series of images and change them at a given frequency (let's say 24 images per second), you will create an illusion of movement.

Unfortunately it was deprecated, so I decided to write this one. libav) and then I found the "How to write a video player in less than 1k lines" tutorial.


I was looking for a tutorial/book that would teach me how to start to use FFmpeg as a library (a.k.a.
