Can i encoding UYVY(yuv422) format?

Can i encoding UYVY(yuv422) format?

My Camera output format is YUV422(UYVY).

try to h.264 encoding use to omxh264enc!

i cannot encoding with omxh264enc.

omxh264enc is only support input format I420. is that right?

how to h264 encoding YUV422(UYVY) format guide plz.

root@tegra-ubuntu:~# gst-inspect-1.0 omxh264enc
Factory Details:
Rank primary + 10 (266)
Long-name OpenMAX H.264 Video Encoder
Klass Codec/Encoder/Video
Description Encode H.264 video streams
Author Sebastian Dr철ge sebastian.droege@collabora.co.uk

Plugin Details:
Name omx
Description GStreamer OpenMAX Plug-ins
Filename /usr/lib/arm-linux-gnueabihf/gstreamer-1.0/libgstomx.so
Version 1.2.3
License LGPL
Source module gstreamer
Source release date 2014-02-08
Binary package GStreamer source release
Origin URL Unknown package origin

GObject
±—GInitiallyUnowned
±—GstObject
±—GstElement
±—GstVideoEncoder
±—GstOMXVideoEnc
±—GstOMXH264Enc
±—GstOMXH264Enc-omxh264enc

Implemented Interfaces:
GstPreset

Pad Templates:
SINK template: ‘sink’
Availability: Always
Capabilities:
video/x-raw(memory:NVMM)
format: { I420, NV12 }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]
video/x-raw
format: { I420, NV12 }
width: [ 1, 2147483647 ]
height: [ 1, 2147483647 ]
framerate: [ 0/1, 2147483647/1 ]

SRC template: ‘src’
Availability: Always
Capabilities:
video/x-h264
width: [ 16, 4096 ]
height: [ 16, 4096 ]
stream-format: { byte-stream, avc }
alignment: au

gst-launch-1.0 v4l2src device=/dev/video2 num-buffers=150 do-timestamp=true ! ‘video/x-raw, width=1280, height=720, format=UYVY’ ! nvvidconv ! ‘video/x-raw(memory:NVMM), format=I420, width=1280, height=720’ ! omxh264enc ! ‘video/x-h264, stream-format=(string)byte-stream’ ! filesink location=video2.h264 -e