[gst-devel] record h264 rtp to a mp4 file

Terry Leung terry83 at gmail.com
Mon May 11 10:06:51 CEST 2009


Hi all,

I create a pipeline to record the h264 rtp stream into a mp4 file like below:

gst-launch -m -v ffmux_mp4 name=mux ! filesink location = /home/video/test.mp4 \
{ udpsrc name=videoudp num-buffers=1000 port=23456
caps="application/x-rtp, media=(string)video, clock-rate=(int)90000,
encoding-name=(string)H264, profile-level-id=(string)42c00d,
sprop-parameter-sets=(string)\"Z0LADZp0Cg/YCIAAAAMAgAAAD0eKFVA\\=\\,aM48gA\\=\\=\",
payload=(int)96" !  rtph264depay ! video/x-h264,width=352,height=240 !
ffdec_h264 ! videorate ! x264enc } ! mux.


The pipeline work nicely without error, but the file is not good
It can be played, but nothing can be seen(the recorded file is attached)

Anyone know what's missed in the pipeline??

version: gstreamer-0.10.22 (other plugin are the source package
downloaded in the website)

Regards,
Terry
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.mp4
Type: video/mp4
Size: 83891 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20090511/77fa4555/attachment.mp4>


More information about the gstreamer-devel mailing list