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.
I searched, and found a document said:
that the nature of mpeg2enc leads to it output not having metadata on timestamps
(which might be the cause of the problem), and suggested:
then stamp can easily help one out if needed, as in the fragment (mpeg2enc format=3 ! stamp ! avimux)
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?