Skip to main content

whats up video formats

 

https://en.wikipedia.org/wiki/Comparison_of_video_container_formats

container video format

containers refer to the file that contained encoded audio and video , with metadata, subtitle , chapter etc

MP4 (MPEG-4 Part 14) Patent encumbered Codecs: H.264, H.265 (HEVC), AAC

MKV (Matroska Video) Freely licensed Codecs: H.264, H.265, VP9.

AVI (Audio Video Interleave) Proprietary Codecs: DivX, Xvid, MPEG-4. no streaming

MOV (Apple QuickTime Movie) Codecs: H.264, ProRes.

FLV (Flash Video) Codecs: Sorenson Spark, VP6.

WebM(google) Royalty-free Codecs: VP8, VP9, AV1.

MPEG (Moving Picture Experts Group) MPEG-1, MPEG-2.

MPEG-2 is considered outdated but its simplicity for modern hardware and widespread adoption in distribution standards make it difficult to phase out completely. However, its licensing fees and costs often lead device manufacturers to avoid supporting it when possible which is why many portable and embedded devices lack MPEG-2 compatibility.

Interlaced Video Supported Intraframe compression Supported, but extremely uncommon outside MPEG-IMX Subsampling Ratios 4:2:0 or 4:2:2 Color bit depth 8-bit Common containers MPEG-PS, MPEG-TS, MXF, VOB, MOV in some Final Cut workflows, MKV possible but exceedingly rare Alpha channel : Not supported Stereoscopy : Not officially supported

Ogg (ogg,ogv) Open source

Intraframe vs. Interframe compression

Intraframe compression treats each frame as an independent image, compressing it individually without relying on other frames, similar to how frames on a film reel are stored separately. interframe compression encodes multiple frames together in a structure called a Group of Pictures (GoP). A typical GoP represents half a second to a second of video but can vary depending on its intended use. There are also Open GoPs, which lack fixed boundaries and conclude arbitrarily when encoding stops. Despite the term, Open GoPs are essentially variable-length GoPs.

Each GoP begins with an I-frame (or "keyframe"), a fully self-contained image compressed independently. Following the I-frame are P-frames and B-frames, which only store changes from preceding or succeeding frames. These changes are captured using macroblocks, which include new visual data, and motion vectors, which describe the movement of macroblocks within the frame.

As P-frames and B-frames depend on other frames within the GoP, decoding any frame (except the I-frame) requires processing the entire GoP. This reliance makes interframe compression computationally intensive to encode and decode. However, by reducing redundancy across frames, interframe compression achieves a higher compression ratio, making it efficient for storage and streaming. Still, due to the loss of visual data deemed redundant, it is unsuitable for archival purposes.

Profiles and Levels

Profiles specify the range of encoding features available, while levels indicate the amount of data and performance requirements. By combining profiles and levels, a decoder can outline its maximum computational capacity and data-handling capability. This information allows video to be encoded in a way that ensures compatibility with the target decoder.

codecs

HEVC(High Efficiency Video Coding) / H.265/ MPEG-H Part 2 Patent encumbered , MPEG LA license sucessor to Advanced Video Coding (AVC, H.264, or MPEG-4 Part 10) max resolution 8192×4320

MPEG-4 AVC (H.264) Patent encumbered

Comments

Popular posts from this blog

xdm linux merge incomplete download parts

 some download stuck at 99.99% , merge them regardless got to ~/.xdm-app-data/Data/*.state cat dec.py import os import re # Define the pattern to extract the segment number pattern = re.compile(r'seg-(\d+)-v1-a1\.ts') # Get the current working directory current_directory = os.getcwd() # List to hold tuples of (segment_number, filename) files_with_segments = [] # Iterate through files in the current directory for filename in os.listdir(current_directory): match = pattern.search(filename) if match: # Extract the segment number as an integer segment_number = int(match.group(1)) # Add the tuple (segment_number, filename) to the list files_with_segments.append((segment_number, filename)) # Sort the list by the segment number (numerical sort) files_with_segments.sort(key=lambda x: x[0]) # Open the filelist.txt for writing with open('filelist.txt', 'w') as filelist: for _, filename in files_with_segments: file...

kde on debian

https://wiki.debian.org/KDE sudo apt install   xserver-xorg-input-libinput xserver-xorg-video-intel  sudo apt install plasma-desktop plasma-workspace-wayland  sddm  issue  file:///usr/share/plasma/plasmoids/org.kde.plasma.kickoff/contents/ui/Kickoff.qml:157:34: Type FullRepresentat ion unavailable file:///usr/share/plasma/plasmoids/org.kde.plasma.kickoff/contents/ui/FullRepresentation.qml:80:22: Type Norma lPage unavailable file:///usr/share/plasma/plasmoids/org.kde.plasma.kickoff/contents/ui/NormalPage.qml:43:13: Type Footer unavai lable file:///usr/share/plasma/plasmoids/org.kde.plasma.kickoff/contents/ui/Footer.qml:155:5: Type LeaveButtons unav ailable file:///usr/share/plasma/plasmoids/org.kde.plasma.kickoff/contents/ui/LeaveButtons.qml:14:1: module "org.kde.k itemmodels" is not installed # upower , it is installed by powerdevil though sudo apt install kde-config-gtk-style  kde-config-gtk-style-preview   breeze-gtk-theme  sudo apt i...

rsa encryption

 choose two large  prime number p (prime 1) and q (prime 2)   n = p x q , where n is called the modulus for encryption and decryption   φ = ( p - 1) x ( q -1) is called Euler's totient function for n= pq For a given positive integer n, Euler's totient function ϕ(n) is defined as the number of positive integers less than or equal to n that are coprime (i.e., share no common factors) with n. ϕ( n ) = n ∏ p ∣ n ( 1 − 1 p )     \phi(n) = n \prod_{p \mid n} \left(1 - \frac{1}{p}\right)   p ∣ n means that p p divides n , and is a prime factor greater than 1  i  n    example , n=2*3=6 with factors f=1 , 2 , 3 , 4 , 5,6 factors Two numbers are coprime if their greatest common divisor (GCD) is 1 here find gcd(f,n)=1  only 1 and 5 are coprime with 6  φ =1*2 =2   choose e less  than φ , such that  e is co prime with φ , ie  e has no common factor with φ except 1 mathematically : gcd ( e , φ ...