title: record camera stream from gstreamer
body: <p>I have a gstreamer pipeline which works perfectly and takes a camera stream, encodes it as H.264 video, saves it to a file AND displays it on the screen as follows:</p>
  
  <pre><code>gst-launch-1.0 -v autovideosrc ! tee name = t ! queue ! omxh264enc ! 
  'video/x-h264, stream-format=(string)byte-stream' ! h264parse ! qtmux ! 
  filesink location=test.mp4 t. ! queue ! videoscale ! video/x-raw, 
  width=480,height=270 ! xvimagesink -e sync=false
  </code></pre>
  
  <p>Now, I am trying to do something even simple and just record the stream to a file (without displaying on screen) and this does not seem to work! It writes a file but  cannot play it. What I have tried so far is:</p>
  
  <pre><code>gst-launch-1.0 -v autovideosrc ! queue ! omxh264enc ! 'video/x-h264, 
  stream-format=(string)byte-stream' ! h264parse ! qtmux ! filesink 
  location=test.mp4 sync=false
  </code></pre>
  
  <p>I can also remove the queue element but with the same result:</p>
  
  <pre><code>gst-launch-1.0 -v autovideosrc ! omxh264enc ! 'video/x-h264, 
  stream-format=(string)byte-stream' ! h264parse ! qtmux ! filesink 
  location=test.mp4 sync=false
  </code></pre>
  
  <p>It does not give any errors but just does not write a valid stream to my filesink, it seems.</p>