title: gstreamer mpeg2enc has no timestamp
body: <p>I was trying to change the frame size of mpeg2 transport stream video using gstreamer pipeline. The procedure was: Fist, separated the video portion and audio portion using  tsdemax, then, went through mpeg2dec, capsfilter (change the frame size), mpeg2enc, and  mpegtsmux to combine the audio portion of the stream. The mpegtsmux had no output.</p>
  
  <p>I searched, and found a document said:</p>
  
  <blockquote>
    <p>that the nature of mpeg2enc leads to it output not having metadata on timestamps</p>
  </blockquote>
  
  <p>(which might be the cause of the problem), and suggested:</p>
  
  <blockquote>
    <p>then stamp can easily help one out if needed, as in the fragment (mpeg2enc format=3 ! stamp ! avimux)</p>
  </blockquote>
  
  <p>I am using gstreamer 1.0 'C' library, and couldn't find the element "stamp". I appreciate if someone can help me why the video through mpeg2enc can't mux with the audio, and if it is caused by the lack of timestamp, how to add a timestamp on or after the mpeg2enc? </p>