<div dir="ltr">On the first question:<div>There's nothing in your pipeline sending an audio channel into the avimux. h264 is video only. To add audio you'll need something like (changes in bold)</div><div><br></div><div><span style="font-size:13px">GST_DEBUG="*:2" gst-launch-0.10 -v -e rtspsrc debug=1 </span><span style="font-size:13px">location=rtsp://</span><a href="http://192.168.1.4:554/vs1" target="_blank" style="font-size:13px">192.168.1.4:554/vs1</a><span style="font-size:13px"> ! gstrtpjitterbuffer ! rtph264depay ! </span><span style="font-size:13px">h264parse ! capsfilter </span><span style="font-size:13px">caps="video/x-h264,width=1280,</span><span style="font-size:13px">height=720,framerate=(</span><span style="font-size:13px">fraction)25/1" ! avimux <b>name=mux</b> </span><span style="font-size:13px">! filesink location=foo.avi \</span></div><div><span style="font-size:13px"> <b><some_audio_src_element_or_chain_of_elements> ! mux. </b></span><br></div><div><span style="font-size:13px"><b><br></b></span></div><div>For live reproduction:</div><div><div><span style="font-size:13px">gst-launch-0.10 -e rtspsrc location=rtsp://</span><a href="http://192.168.1.4:554/vs1" target="_blank" style="font-size:13px">192.168.1.4:554/vs1</a><span style="font-size:13px"> ! </span><span style="font-size:13px">rtph264depay ! h264parse ! capsfilter </span><span style="font-size:13px">caps="video/x-h264,width=1280,</span><span style="font-size:13px">height=800,framerate=(</span><span style="font-size:13px">fraction)25/1" ! </span><span style="font-size:13px">ffdec_h264 ! ffmpegcolorspace ! glimagesink </span><span style="font-size:13px"> </span><b style="font-size:13px"><some_audio_src_element_or_chain_of_elements></b><span style="font-size:13px"><b> ! autoaudiosink</b></span></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">2014-12-18 16:22 GMT+01:00 Sérgio Agostinho <span dir="ltr"><<a href="mailto:sergio.r.agostinho@gmail.com" target="_blank">sergio.r.agostinho@gmail.com</a>></span>:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">On the second question:<div><a href="http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-dataaccess.html#section-preroll-probes" target="_blank">http://gstreamer.freedesktop.org/data/doc/gstreamer/head/manual/html/chapter-dataaccess.html#section-preroll-probes</a><br></div><div><br></div><div><br></div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2014-12-18 15:00 GMT+01:00 zhang007z <span dir="ltr"><<a href="mailto:zhang007z@gmail.com" target="_blank">zhang007z@gmail.com</a>></span>:<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">First problem:<br>
I taken this command as follow: (but there is not audio.)<br>
//----------------------------------save video file by using<br>
command---------------------------//<br>
GST_DEBUG="*:2" gst-launch-0.10 -v -e rtspsrc debug=1<br>
location=rtsp://<a href="http://192.168.1.4:554/vs1" target="_blank">192.168.1.4:554/vs1</a> ! gstrtpjitterbuffer ! rtph264depay !<br>
h264parse ! capsfilter<br>
caps="video/x-h264,width=1280,height=720,framerate=(fraction)25/1" ! avimux<br>
! filesink location=foo.avi<br>
//--------------------------------------------------------------------------------------------//<br>
by using I may real-time view video as follow:(but there is not audio.)<br>
//---------------------------------real-time view command by using<br>
command------------------//<br>
gst-launch-0.10 -e rtspsrc location=rtsp://<a href="http://192.168.1.4:554/vs1" target="_blank">192.168.1.4:554/vs1</a> !<br>
rtph264depay ! h264parse ! capsfilter<br>
caps="video/x-h264,width=1280,height=800,framerate=(fraction)25/1" !<br>
ffdec_h264 ! ffmpegcolorspace ! glimagesink<br>
//--------------------------------------------------------------------------------------------//<br>
above two commands could save avi video file and view at real-time, but<br>
there is not audio.<br>
how to save audio to avi video file ? or  is there audio when I view at<br>
real-time?<br>
<br>
Second problem:<br>
For example: Avi video file record 60 minutes of file at actual time,I want<br>
to play video section after 23 minutes of video file, how to implement this<br>
function pipeline by using gstreamer?<br>
<br>
on this two problem ,please anybody have any idea for me. thank you for<br>
helping me.<br>
<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://gstreamer-devel.966125.n4.nabble.com/not-audio-rtspsrc-connect-live555-then-I-put-livestream-to-save-avi-video-file-but-there-is-not-audi-tp4669963.html" target="_blank">http://gstreamer-devel.966125.n4.nabble.com/not-audio-rtspsrc-connect-live555-then-I-put-livestream-to-save-avi-video-file-but-there-is-not-audi-tp4669963.html</a><br>
Sent from the GStreamer-devel mailing list archive at Nabble.com.<br>
_______________________________________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org" target="_blank">gstreamer-devel@lists.freedesktop.org</a><br>
<a href="http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" target="_blank">http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel</a><br>
</blockquote></div></div>
</div></div></blockquote></div></div>