i.MX27 ADS Board Video GST Encode

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

i.MX27 ADS Board Video GST Encode

i.MX27 ADS Board Video GST Encode

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 


Labels (1)
No ratings
Version history
Last update:
‎09-10-2020 02:59 AM
Updated by: