Media Networks - Audio and Video
Media Networks - Audio and Video
Media Networks - Audio and Video
• Framerate
− Number of
images per
second
• Aspect ratio
− Ratio between
height and
width
CAPTURING VIDEO
• Optical cmos or ccd sensor
• Red, green, blue
• Rgb values stored per pixel = chroma
• Lumanance stored per pixel = luma
• Stored digitaly with specified Color Depth
− describes the amount of information stored in each pixel
of data (RGB)
− increase bit depth, also increase the number of colors
that can be represented
• 8-bit RGB image, each pixel has 8-bits of data per color
(RGB), so for each color channel the pixel has 28 = 256
possible variations = 16 777 216 colors
• 10-bit RGB image, each color channel would have 210 = 1024
variations = 1 073 741 824 colors
• 12-bit … 4096 variations = 70 billion colors
CHROMA SUB-SAMPLING
• Sampling color to a
lower rate than luma
• a:b:c
• https://toolstud.io/video/filesize.php?imagewidth=1920
&imageheight=1080&framerate=25&timeduration=60&ti
meunit=seconds
REDUCING REQUIRED BANDWITH
• Interlaced vs progressive video
− 1080p vs 1080i
• Reference frame
• Devide frame in macroblocks
• Move blocks using vector
• Treshhold to big: reset block
BLOCK DIFFERENCE BETWEEN H.264 AND
H.265
VARIABLE AND CONSTANT BIT RATES
• CBR (Constant Bit Rate)
− Constant and predefined bit rate
− image quality will vary
− quality will remain relatively high when there is
no motion
− will significantly decrease with increased motion
• H.264
− MPEG-4 part 10 or MPEG-4 AVC or MPEG-4 Advanced Video Coding
− industry standard for video compression
− international standards bodies ITU-T (International Telecommunication
Union) and ISO/IEC (International Organisation for Standardisation /
International Electrotechnical Commission)
− Profiles
• Baseline: use this with iOS devices.
• Main: this is mostly an historic profile used on standard definition (SD) (4:3
Aspect Ratio) TV broadcasts.
• High: use this for Web, SD, and HD (high definition) video publishing.
− License fee if you want to distribute paid content
COMMON VIDEO CODECS
• H.265
− High Efficiency Video Coding (HEVC) or MPEG-H Part 2
− up to twice the data compression with the same level of
video quality.
− support future resolutions up to 8K UHD (8192x4320)
compared to the 4K (4092x2160) for H.264
− H.265 encoding and decoding requires much more
processing power over H.264
• H.266
− Versatile Video Coding (VVC) or MPEG-H Part 3
− finalized on 6 July 2020
− Can reduce filesize up to 50% over H.265 (HEVC) for
similar quality
− Supports 4K, 8K and even 16K UHD, 360° video
COMMON VIDEO CODECS
• VP8
− open and royalty free video compression format owned by Google and created
by On2 Technologies
− up to 2160p (4k) resolution
• VP9
− open and royalty-free video coding format developed by Google
− successor to VP8 and competes mainly with MPEG's High Efficiency Video
Coding (HEVC/H.265)
− combination of VP9 video and Opus audio in the WebM container
− Used by youtube
• AV1
− Successor of VP9
WHICH CODEC TO USE
− volume=volume=0.5
• https://www.ostechnix.com/20-ffmpeg-commands-
beginners/
• https://ffmpeg.org/ffmpeg-filters.html
• http://randombio.com/linuxsetup141.html
HTML PROGRESSIVE DOWNLOAD