title: How can I encode a video to h264?
body: <p>I am trying to send a video file using GNUradio, specifically using GRC. In order to do this I am first obtaining whichever video, in our case we took a 6 second video of us staring and talking to the camera. After this was done we created a "pipe" file I believe is called using mkfifo, both for the input and output file. After that I believe Im supposed to save the video I took in a h264 encoding using a command that I found:</p>
  
  <pre><code>gst-launch -e -v v4l2src device="/dev/video1" ! video/x-raw-yuv, framerate=25/1, width=640, height=360 ! \timeoverlay halign=right valign=bottom shaded-background=true ! \textoverlay text="Test Video 640x360 25fps" halign=left valign=bottom shaded-background=true ! \x264enc bitrate=498 ! mpegtsmux ! filesink location=test1.ts
  </code></pre>
  
  <p>This is giving me an error:</p>
  
  <pre><code>WARNING: erroneous pipeline: no element "x264enc"
  </code></pre>
  
  <p>Ive been trying to find how to solve this and I've installed basically every package or library that exists that may have to do with h264 encoding or x264enc command. </p>
  
  <p>How can I possibly resolve that issue? Thanks in advance.</p>