Thanks Florian, I tried to mux only h264 as what you say:<div><div>rtspsrc location=rtsp://<a href="http://192.168.1.1:8554/test">192.168.1.1:8554/test</a> name=s ! rtph264depay byte-stream=false ! capsfilter caps="video/x-h264,width=1280, height=720, framerate=(fraction)30/1" ! queue ! mux. qtmux name=mux ! filesink location=x.mp4</div>
<div><br></div><div>But it didn't work. Is this a bug of qtmux since you said it works for ffmux_mp4.</div><div><br></div><div>0:00:00.016190484 7051 0x804e078 LOG qtmux gstqtmux.c:2116:gst_qt_mux_register: Registering muxers</div>
<div>0:00:00.016696178 7051 0x804e078 LOG qtmux gstqtmux.c:2145:gst_qt_mux_register: Finished registering muxers</div><div>0:00:00.019714795 7051 0x804e078 DEBUG qtmux gstqtmux.c:1924:gst_qt_mux_request_new_pad:<mux> Requested pad: (NULL)</div>
<div>Setting pipeline to PAUSED ...</div><div>/GstPipeline:pipeline0/GstRTSPSrc:s/GstRtpBin:rtpbin0: latency = 3000</div><div>/GstPipeline:pipeline0/GstRTSPSrc:s/GstUDPSrc:udpsrc1: timeout = 5000000</div><div>/GstPipeline:pipeline0/GstRTSPSrc:s/GstUDPSrc:udpsrc4: timeout = 5000000</div>
<div>Pipeline is live and does not need PREROLL ...</div><div>Setting pipeline to PLAYING ...</div><div>/GstPipeline:pipeline0/GstRTSPSrc:s/GstRtpBin:rtpbin0/GstRtpSession:rtpsession1: ntp-ns-base = 3466459682817417000</div>
<div>/GstPipeline:pipeline0/GstRTSPSrc:s/GstRtpBin:rtpbin0/GstRtpSession:rtpsession0: ntp-ns-base = 3466459682817417000</div><div>/GstPipeline:pipeline0/GstRTSPSrc:s/GstUDPSrc:udpsrc1: timeout = 0</div><div>/GstPipeline:pipeline0/GstRTSPSrc:s/GstUDPSrc:udpsrc4: timeout = 0</div>
<div>New clock: GstSystemClock</div><div>/GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:src: caps = video/x-h264, codec_data=(buffer)01640028ffe1000b67640028ac1918805005b901000468ee3cb0</div><div>/GstPipeline:pipeline0/GstRtpH264Depay:rtph264depay0.GstPad:sink: caps = application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, profile-level-id=(string)640028, sprop-parameter-sets=(string)\"Z2QAKKwZGIBQBbk\\=\\,aO48sA\\=\\=\", a-tool=(string)GStreamer, a-type=(string)broadcast, clock-base=(guint)4039834199, seqnum-base=(guint)57747, npt-start=(guint64)0, npt-stop=(guint64)176309005737, play-speed=(double)1, play-scale=(double)1</div>
<div>/GstPipeline:pipeline0/GstRTSPSrc:s.GstGhostPad:recv_rtp_src_1_2807690748_96: caps = application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, profile-level-id=(string)640028, sprop-parameter-sets=(string)\"Z2QAKKwZGIBQBbk\\=\\,aO48sA\\=\\=\", a-tool=(string)GStreamer, a-type=(string)broadcast, clock-base=(guint)4039834199, seqnum-base=(guint)57747, npt-start=(guint64)0, npt-stop=(guint64)176309005737, play-speed=(double)1, play-scale=(double)1</div>
<div>/GstPipeline:pipeline0/GstRTSPSrc:s.GstGhostPad:recv_rtp_src_1_2807690748_96.GstProxyPad:proxypad7: caps = application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, profile-level-id=(string)640028, sprop-parameter-sets=(string)\"Z2QAKKwZGIBQBbk\\=\\,aO48sA\\=\\=\", a-tool=(string)GStreamer, a-type=(string)broadcast, clock-base=(guint)4039834199, seqnum-base=(guint)57747, npt-start=(guint64)0, npt-stop=(guint64)176309005737, play-speed=(double)1, play-scale=(double)1</div>
<div>/GstPipeline:pipeline0/GstRTSPSrc:s/GstRtpBin:rtpbin0.GstGhostPad:recv_rtp_src_1_2807690748_96.GstProxyPad:proxypad6: caps = application/x-rtp, media=(string)video, payload=(int)96, clock-rate=(int)90000, encoding-name=(string)H264, profile-level-id=(string)640028, sprop-parameter-sets=(string)\"Z2QAKKwZGIBQBbk\\=\\,aO48sA\\=\\=\", a-tool=(string)GStreamer, a-type=(string)broadcast, clock-base=(guint)4039834199, seqnum-base=(guint)57747, npt-start=(guint64)0, npt-stop=(guint64)176309005737, play-speed=(double)1, play-scale=(double)1</div>
<div>/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:src: caps = video/x-h264, codec_data=(buffer)01640028ffe1000b67640028ac1918805005b901000468ee3cb0, width=(int)1280, height=(int)720, framerate=(fraction)30/1</div>
<div>/GstPipeline:pipeline0/GstCapsFilter:capsfilter0.GstPad:sink: caps = video/x-h264, codec_data=(buffer)01640028ffe1000b67640028ac1918805005b901000468ee3cb0</div><div>/GstPipeline:pipeline0/GstQueue:queue0.GstPad:sink: caps = video/x-h264, codec_data=(buffer)01640028ffe1000b67640028ac1918805005b901000468ee3cb0, width=(int)1280, height=(int)720, framerate=(fraction)30/1</div>
<div>/GstPipeline:pipeline0/GstQueue:queue0.GstPad:src: caps = video/x-h264, codec_data=(buffer)01640028ffe1000b67640028ac1918805005b901000468ee3cb0, width=(int)1280, height=(int)720, framerate=(fraction)30/1</div><div>0:00:00.068833031 7051 0x80b5018 DEBUG qtmux gstqtmux.c:1686:gst_qt_mux_video_sink_set_caps:<mux> mux:pad0, caps=video/x-h264, codec_data=(buffer)01640028ffe1000b67640028ac1918805005b901000468ee3cb0, width=(int)1280, height=(int)720, framerate=(fraction)30/1</div>
<div>0:00:00.068907314 7051 0x80b5018 DEBUG qtmux gstqtmux.c:1720:gst_qt_mux_video_sink_set_caps:<mux> Rate of video track selected: 3000</div><div>/GstPipeline:pipeline0/GstQTMux:mux.GstPad:pad0: caps = video/x-h264, codec_data=(buffer)01640028ffe1000b67640028ac1918805005b901000468ee3cb0, width=(int)1280, height=(int)720, framerate=(fraction)30/1</div>
<div>0:00:00.069019065 7051 0x80b5018 DEBUG qtmux gstqtmux.c:1140:gst_qt_mux_start_file:<mux> starting file</div><div>0:00:00.069060505 7051 0x80b5018 DEBUG qtmux gstqtmux.c:1110:gst_qt_mux_send_ftyp:<mux> Sending ftyp atom</div>
<div>0:00:00.069090323 7051 0x80b5018 LOG qtmux gstqtmux.c:1119:gst_qt_mux_send_ftyp:<mux> Pushing ftyp</div><div>0:00:00.069109441 7051 0x80b5018 LOG qtmux gstqtmux.c:802:gst_qt_mux_send_buffer:<mux> sending buffer size 20</div>
<div>0:00:00.069125781 7051 0x80b5018 LOG qtmux gstqtmux.c:815:gst_qt_mux_send_buffer:<mux> downstream</div><div>/GstPipeline:pipeline0/GstFileSink:filesink0.GstPad:sink: caps = video/quicktime, variant=(string)apple</div>
<div>0:00:00.070485105 7051 0x80b5018 DEBUG qtmux gstqtmux.c:920:gst_qt_mux_send_mdat_header:<mux> Sending mdat's atom header, size 0</div><div>0:00:00.070578336 7051 0x80b5018 LOG qtmux gstqtmux.c:944:gst_qt_mux_send_mdat_header:<mux> Pushing mdat start</div>
<div>0:00:00.070641742 7051 0x80b5018 LOG qtmux gstqtmux.c:802:gst_qt_mux_send_buffer:<mux> sending buffer size 16</div><div>0:00:00.070703335 7051 0x80b5018 LOG qtmux gstqtmux.c:815:gst_qt_mux_send_buffer:<mux> downstream</div>
<div>0:00:00.070776685 7051 0x80b5018 LOG qtmux gstqtmux.c:1415:gst_qt_mux_collected:<mux> selected pad pad0 with time 0:00:00.003299172</div><div>0:00:00.070846558 7051 0x80b5018 LOG qtmux gstqtmux.c:1217:gst_qt_mux_add_buffer:<mux> Pad pad0 has no previous buffer stored, storing now</div>
<div>0:00:00.070925679 7051 0x80b5018 LOG qtmux gstqtmux.c:1415:gst_qt_mux_collected:<mux> selected pad pad0 with time 0:00:00.003299172</div><div>0:00:00.071011560 7051 0x80b5018 WARN qtmux gstqtmux.c:1347:gst_qt_mux_add_buffer:<mux> error: Failed to determine time to mux.</div>
<div>ERROR: from element /GstPipeline:pipeline0/GstQTMux:mux: Could not multiplex stream.</div><div>Additional debug info:</div><div>gstqtmux.c(1347): gst_qt_mux_add_buffer (): /GstPipeline:pipeline0/GstQTMux:mux:</div><div>
Failed to determine time to mux.</div><div>Execution ended after 6209475 ns.</div><div>Setting pipeline to PAUSED ...</div><br><div class="gmail_quote">2009/11/5 florian iragne <span dir="ltr"><<a href="mailto:florian.iragne@viewsurf.com">florian.iragne@viewsurf.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">dxssx a écrit :<br>
<div class="im">> gstqtmux.c:1862:gst_qt_mux_video_sink_set_caps:<mux> pad pad0 refused<br>
> caps video/x-h264<br>
<br>
</div>according to your log h264 and audio pads are refusing default caps<br>
<br>
i would add something like :<br>
<br>
rtph264depay byte-stream=false ! capsfilter<br>
caps="video/x-h264,width=XXX,height=YYY,framerate=(fraction)YouFrameRate/1"<br>
<br>
at least, i've had to add this to record h264 from rtspsrc with ffmux_mp4<br>
<br>
Florian<br>
<br>
------------------------------------------------------------------------------<br>
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day<br>
trial. Simplify your report design, integration and deployment - and focus on<br>
what you do best, core application coding. Discover what's new with<br>
Crystal Reports now. <a href="http://p.sf.net/sfu/bobj-july" target="_blank">http://p.sf.net/sfu/bobj-july</a><br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.sourceforge.net">gstreamer-devel@lists.sourceforge.net</a><br>
<a href="https://lists.sourceforge.net/lists/listinfo/gstreamer-devel" target="_blank">https://lists.sourceforge.net/lists/listinfo/gstreamer-devel</a><br>
</blockquote></div><br></div>