Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

enc_avc_pull

Encode raw YUV video file to AVC / H.264 Annex B video file using Transcoder::pull.

Command Line

./enc_avc_pull --frame <width>x<height> --rate <fps> --color <COLOR> --input <file.yuv> --output <file.h264> [--colors]	[--help]

Examples

List options:

./bin/x64/enc_avc_pull --help
enc_avc_pull --frame <width>x<height> --rate <fps> --color <COLOR> --input <file.yuv> --output <file.h264> [--colors]
  -h,    --help
  -i,    --input    input YUV file
  -o,    --output   output H264 file
  -r,    --rate     input frame rate
  -f,    --frame    input frame sizes <width>x<height>
  -c,    --color    input color format. Use --colors to list all supported color
                    formats
         --colors   list COLOR constants

Encode a raw YUV video from ./assets/vid/foreman_qcif.yuv to a H.264 video in ./output/enc_avc_pull/foreman_qcif.h264:

mkdir -p ./output/enc_avc_pull

./bin/x64/enc_avc_pull \
  --input ./assets/vid/foreman_qcif.yuv \
  --output ./output/enc_avc_pull/foreman_qcif.h264 \
  --frame 176x144 \
  --rate 30 \
  --color yuv420