R-Car/Boards/Yocto-Gen3-CommonFAQ/How to use H.264 encoding.

From eLinux.org
Jump to: navigation, search

How to use H.264 encoding.

Ex)

$ modprobe -a mmngr mmngrbuf vspm_if uvcs_drv
$ gst-launch-1.0 -e  videotestsrc ! video/x-raw, format=BGRA, width=360, height=240 ! identity sync=true ! video/x-raw,framerate=30/1 ! vspfilter ! video/x-raw, format=NV12 ! omxh264enc control-rate=2 target-bitrate=10485760 interval_intraframes=14 periodicty-idr=2 use-dmabuf=false ! video/x-h264,profile=\(string\)high,level=\(string\)4.2 ! h264parse ! video/x-h264,stream-format=avc,alignment=au ! qtmux ! queue ! filesink location=output.mp

<playback>

$ gst-launch-1.0 filesrc location=./output.mp4 ! qtdemux ! queue ! h264parse ! omxh264dec ! waylandsink