Environment
- Jetson TX2
- Ubuntu 16.04
Install MPEG4 codec
$ sudo apt-get install ubuntu-restricted-extras
$ sudo apt-get install libav-tools ffmpeg
Record
$ gst-launch-1.0 -v ximagesrc use-damage=0 ! nvvidconv ! 'video/x-raw(memory:NVMM),alignment=(string)au,format=(string)I420,framerate=(fraction)25/1,pixel-aspect-ratio=(fraction)1/1' ! omxh264enc ! 'video/x-h264,stream-format=(string)byte-stream' ! filesink location="test.h264" -e