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)
%3CLINGO-SUB%20id%3D%22lingo-sub-1123674%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3Ei.MX27%20ADS%20Board%20Video%20GST%20Encode%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1123674%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CH1%20id%3D%22toc-hId-382427377%22%20id%3D%22toc-hId-382427377%22%20id%3D%22toc-hId-1297723982%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EEncode%3C%2FSPAN%3E%3C%2FH1%3E%3CP%3E%3C%2FP%3E%3CH2%20id%3D%22toc-hId-1072988851%22%20id%3D%22toc-hId-1072988851%22%20id%3D%22toc-hId-1988285456%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EFrom%20YUV%20to%20H.264%3C%2FSPAN%3E%3C%2FH2%3E%3CPRE%20class%3D%22jive-pre%22%3Egst-launch-0.10%20filesrc%20location%3D%3CSTRONG%3Efile_in.yuv%3C%2FSTRONG%3E%20blocksize%3D%3CSTRONG%3Ew*h*1.5%3C%2FSTRONG%3E%20!%20%5C%20%3CSTRONG%3Emfw_vpuencoder%3C%2FSTRONG%3E%20codec%20type%3D%3CSTRONG%3Estd_avc%3C%2FSTRONG%3E%20framerate%3D%3CSTRONG%3Efr%3C%2FSTRONG%3E%20!%20filesink%20location%3D%3CSTRONG%3Efile_out.mpg%3C%2FSTRONG%3E%20%3C%2FPRE%3E%3CP%3EWhere%3A%3C%2FP%3E%3CUL%3E%3CLI%3E%3CSTRONG%3Efile_in.yuv%3A%3C%2FSTRONG%3E%20is%20the%20input%20file%2C%20a%20raw%20file.%3C%2FLI%3E%3CLI%3E%3CSTRONG%3Ew*h*1.5%3A%3C%2FSTRONG%3E%20is%20the%20blocksize%2C%20it's%20calculated%20from%20input%20file%20dimensions%3A%20%3CSTRONG%3Ewidth%20*%20height%20*%201.5%3C%2FSTRONG%3E%3C%2FLI%3E%3CLI%3E%3CSTRONG%3Emfw_vpuencoder%3A%3C%2FSTRONG%3E%20is%20the%20encoder%20with%20hardware%20acceleration%20for%20iMX27%3C%2FLI%3E%3CLI%3E%3CSTRONG%3Estd_avc%3A%3C%2FSTRONG%3E%20chooses%20the%20codec%20type%20for%20output%20file%3C%2FLI%3E%3CLI%3E%3CSTRONG%3Efr%3A%3C%2FSTRONG%3E%20indicates%20the%20framerate%20in%20that%20input%20file%20was%20created%3C%2FLI%3E%3CLI%3E%3CSTRONG%3Efile_out.mpg%3A%3C%2FSTRONG%3E%20is%20the%20output%20file%20encoded%20in%20H.264%3C%2FLI%3E%3C%2FUL%3E%3CP%3E%3C%2FP%3E%3CH2%20id%3D%22toc-hId--734465612%22%20id%3D%22toc-hId--734465612%22%20id%3D%22toc-hId-180830993%22%3E%3CSPAN%20class%3D%22mw-headline%22%3EFrom%20Camera%20to%20H.264%3C%2FSPAN%3E%3C%2FH2%3E%3CPRE%20class%3D%22jive-pre%22%3Egst-launch-0.10%20mfw_v4lsrc%20!%20mfw_vpuencoder%20codec-type%3Dstd_avc%20%5C%20width%3D176%20height%3D144%20framerate%3D25%20!%20filesink%20location%3Dtest.video%20%3C%2FPRE%3E%3CP%3E%3CSPAN%20class%3D%22mce_paste_marker%22%3E%3CBR%20%2F%3E%3C%2FSPAN%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1123674%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CLINGO-LABEL%3Ei.MX2x%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
No ratings
Version history
Last update:
‎09-10-2020 02:59 AM
Updated by: