i.MX27 ADS Board Video GST Encode

Document created by jesseg Employee on Aug 17, 2012Last modified by Jodi Paul on May 14, 2013
Version 3Show Document
  • View in full screen mode

Encode

 

From YUV to H.264

gst-launch-0.10 filesrc location=file_in.yuv blocksize=w*h*1.5 ! \ mfw_vpuencoder codec type=std_avc framerate=fr ! filesink location=file_out.mpg 

Where:

  • file_in.yuv: is the input file, a raw file.
  • w*h*1.5: is the blocksize, it's calculated from input file dimensions: width * height * 1.5
  • mfw_vpuencoder: is the encoder with hardware acceleration for iMX27
  • std_avc: chooses the codec type for output file
  • fr: indicates the framerate in that input file was created
  • file_out.mpg: is the output file encoded in H.264

 

From Camera to H.264

gst-launch-0.10 mfw_v4lsrc ! mfw_vpuencoder codec-type=std_avc \ width=176 height=144 framerate=25 ! filesink location=test.video 


Attachments

    Outcomes