Reconfing mjpeg at any given fps

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Reconfing mjpeg at any given fps

Krutskikh Ivan
Hi everyone

I have a working program that captures video from varion IP cams. The main problem I'm facing is recording from mjpeg streams.

I have to do this monster for mjpeg:

souphttpsrc name=source  is-live=1 do-timestamp=1 ! multipartdemux name=demux ! jpegparse ! videorate ! image/jpeg,framerate=5/1 ! tee name=f
ork fork. ! queue name=delay ! multipartmux name=mux ! tcpserversink   name=stream timeout=2000000000  fork. ! queue ! matroskamux ! multifilesink name=persist  aggregate-gops=true post-mess
ages=true  next-file=4

My quesion goes as this: 

if I do ! videorate | image/jpeg,framerate=5/1' I get decent video but fixed at 5 fps.
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?

_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Reconfing mjpeg at any given fps

Krutskikh Ivan
Thought anyone?

2016-12-26 9:10 GMT+03:00 Krutskikh Ivan <[hidden email]>:
Hi everyone

I have a working program that captures video from varion IP cams. The main problem I'm facing is recording from mjpeg streams.

I have to do this monster for mjpeg:

souphttpsrc name=source  is-live=1 do-timestamp=1 ! multipartdemux name=demux ! jpegparse ! videorate ! image/jpeg,framerate=5/1 ! tee name=f
ork fork. ! queue name=delay ! multipartmux name=mux ! tcpserversink   name=stream timeout=2000000000  fork. ! queue ! matroskamux ! multifilesink name=persist  aggregate-gops=true post-mess
ages=true  next-file=4

My quesion goes as this: 

if I do ! videorate | image/jpeg,framerate=5/1' I get decent video but fixed at 5 fps.
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?


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Reconfing mjpeg at any given fps

Nicolas Dufresne-5
In reply to this post by Krutskikh Ivan


Le 26 déc. 2016 1:18 AM, "Krutskikh Ivan" <[hidden email]> a écrit :
Hi everyone

I have a working program that captures video from varion IP cams. The main problem I'm facing is recording from mjpeg streams.

I have to do this monster for mjpeg:

souphttpsrc name=source  is-live=1 do-timestamp=1 ! multipartdemux name=demux ! jpegparse ! videorate ! image/jpeg,framerate=5/1 ! tee name=f
ork fork. ! queue name=delay ! multipartmux name=mux ! tcpserversink   name=stream timeout=2000000000  fork. ! queue ! matroskamux ! multifilesink name=persist  aggregate-gops=true post-mess
ages=true  next-file=4

My quesion goes as this: 

if I do ! videorate | image/jpeg,framerate=5/1' I get decent video but fixed at 5 fps.
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?

GStreamer supports ranges in caps (framerate=[5/1,20/1]). You can also add multiple video/x-raw section separated by ; to specify preferences.


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel