File format for jpeg encode sample code ?

I have been following the examples in the L4T Multimedia reference (

Can somebody tell me where i can find the format for the input file please ?


Please refer to tegra_multimedia_api\samples\05_jpeg_encode and check print_help()

-f <pixfmt>          Color format of input to encoder (works only for --encode-fd) [1=YUV420(Default), 2=NV12]

Thanks @DaneLLL. For that example, it seems the file has to be YUV 420 planar with no headers.

Yes, it is without headers. For 320x240, the YUV input size is 320x240x1.5.