<div dir="auto"><div><br><div class="gmail_extra"><br><div class="gmail_quote">Le 26 déc. 2016 1:18 AM, "Krutskikh Ivan" <<a href="mailto:stein.hak@gmail.com">stein.hak@gmail.com</a>> a écrit :<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div><div><div>Hi everyone<br><br></div>I have a working program that captures video from varion IP cams. The main problem I'm facing is recording from mjpeg streams.<br><br></div>I have to do this monster for mjpeg:<br><br>souphttpsrc name=source  is-live=1 do-timestamp=1 ! multipartdemux name=demux ! jpegparse ! videorate ! image/jpeg,framerate=5/1 ! tee name=f<br>ork fork. ! queue name=delay ! multipartmux name=mux ! tcpserversink   name=stream timeout=2000000000  fork. ! queue ! matroskamux ! multifilesink name=persist  aggregate-gops=true post-mess<br>ages=true  next-file=4<br><br></div><div>My quesion goes as this:  <br><br></div><div>if I do ! videorate | image/jpeg,framerate=5/1' I get decent video but fixed at 5 fps. <br></div><div>if complitely remove the element I get out video at 1 fps. In real world ip cams provide different fps from 15-20 to 5-4. How can I use gstreamer to be ready for that?<br></div></div></div></blockquote></div></div></div><div dir="auto"><br></div><div dir="auto">GStreamer supports ranges in caps (framerate=[5/1,20/1]). You can also add multiple video/x-raw section separated by ; to specify preferences.</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_extra"><div class="gmail_quote"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><div></div></div></div>
<br>______________________________<wbr>_________________<br>
gstreamer-devel mailing list<br>
<a href="mailto:gstreamer-devel@lists.freedesktop.org">gstreamer-devel@lists.<wbr>freedesktop.org</a><br>
<a href="https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel" rel="noreferrer" target="_blank">https://lists.freedesktop.org/<wbr>mailman/listinfo/gstreamer-<wbr>devel</a><br>
<br></blockquote></div><br></div></div></div>