mp4mux record video and audio

troywang troywang123 at gmail.com
Thu Oct 31 04:51:33 CET 2013


hi:
I want to record video and audio to mp4 file. The format of video stream is
h264 ,the fomat of audio stream is aac.

At start ,my pipeline is  :

udpsrc_video-->                     --->rtph264depay---h264parse-------->
                     |---->rtpbin-->|                                                     
|-->mp4mux-->filesink
udpsrv_audio-->                     --->rtppcmudepay-->decode-->faac--->

and it works very well.

And at some moment in the middle , another video stream is coming ,I have to
add it into the pipeline.

video---->decode------->
                                   |-->videomixer-->x264enc-->
second_video--decode-->                                       |
                                                                         
|-------------->mp4mux---->filesink
audio--------------....------------------------------->


If I rename the filesink'location,mean that rebuilt a mp4 file to record ,it
goes well.But so many mp4 files as result .
And I want to  append stream on the first mp4 file.So I set filesink's
append attributes,and when the second video stream is coming,I set the
pipeline's state to PAUSED,the change the pipeline.But ,it doesn't write
file any more.....

So ,wht should I do ?




--
View this message in context: http://gstreamer-devel.966125.n4.nabble.com/mp4mux-record-video-and-audio-tp4663017.html
Sent from the GStreamer-devel mailing list archive at Nabble.com.


More information about the gstreamer-devel mailing list