[L4T] R24.1: WARNING: erroneous pipeline: no element "h264parse"

Hi,

is the Gstreamer element “h264parse” missing in L4T R24.1? Because when I execute the sample H.264 encode taken from “L4T_Tegra_X1_Multimedia_User_Guide_Release_24.1.pdf” I get:

ubuntu@tegra-ubuntu:~$ gst-launch-1.0 videotestsrc ! 'video/x-raw, format=(string)I420, width=(int)640, height=(int)480' ! omxh264enc ! 'video/x-h264, stream-format=(string)byte-stream' ! h264parse ! qtmux ! filesink location=test.mp4 -e
WARNING: erroneous pipeline: no element "h264parse"
ubuntu@tegra-ubuntu:~$

Thanks for clarification.

Hi

The h264parse element is part of the gstreamer1.0-plugins-bad package, which seems to not be installed by default.

So to install it:

sudo apt-get install gstreamer1.0-plugins-bad

It might be necessary to enable universe repository first:

  1. Locate and edit the following file:
/etc/apt/sources.list
  1. Add the following line:
deb http://ports.ubuntu.com/ubuntu-ports trusty-updates universe
  1. Update the packages:
sudo apt-get update