Skip to content

This repo contains several application or tools related to H264 standard

Notifications You must be signed in to change notification settings

archersmind/H264Experiment

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 

Repository files navigation

H264Experiment

This repo contains several application or tools related to H264 standard

Hello264.c

This maybe the smallest H264 encoder sample in the world.

You can visit here for details.

How to

  1. Build the code

    gcc -Wall -ansi Hello264.c -o hello264

  2. Perpare the necessary input(YUV rawdata)

    ffmpeg -i <input_compressed_clip> -s sqcif -pix_fmt yuv420p angel.yuv

    For a convenient, I already upload a yuv pic with 16 sqcif frames.

  3. Run it

    hello264 < angel.yuv > angel.264

Result

After step 3, you can got your encoded file angle.264 which is larger than the input. Cause in this Encoder, we don't compress anything at all.

RoundTo.c

This is a simple method to calculate the aligned width/height

How to

  1. Build the code

    gcc RoundTo.c -o RoundTo

  2. Run the binary

    ./RounTo

    Please input the parameters as: ori_width ori_height width_alignment height_alignment 
    <User Input>176 144 64 32
    <Output>aligned_width = 192 aligned_height = 160 

About

This repo contains several application or tools related to H264 standard

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages