Using videorate after http src + jpegdec

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

Using videorate after http src + jpegdec

Florent THIERY-2
Hi

My goal is to "shape" an mjpeg stream in the following pipeline type:
souphttpsrc location=$uri ! jpegdec ! videorate ! sink

Apparently videorate cannot work if the upstream elements announce a
0/1 framerate. Is it possible to overcome this limitation ?

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Using videorate after http src + jpegdec

Damien Lespiau
2008/7/30 Florent <[hidden email]>:
> Hi
>
> My goal is to "shape" an mjpeg stream in the following pipeline type:
> souphttpsrc location=$uri ! jpegdec ! videorate ! sink
>
> Apparently videorate cannot work if the upstream elements announce a
> 0/1 framerate. Is it possible to overcome this limitation ?

You'll have to tell GStreamer a little more about the mjpeg stream by adding
a capsfilter that looks like:

souphttpsrc location=$uri !  "image/jpeg, framerate=$fps/1" ! jpegdec
! videorate ! sink

Obviously $fps is known outside of GStreamer and is probably already
part of the URI.
BTW, using multipartdemux after your http element could be a good idea.

HTH

--
Damien Lespiau

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Using videorate after http src + jpegdec

Florent THIERY-2
Hi

Thanks a lot for your help, i finally found a way to use videorate together with the setup using this pipeline:
gst-launch-0.10 -vvv gnomevfssrc location=http://192.168.40.126/image do-timestamp=true ! multipartdemux ! "image/jpeg, framerate=(fraction)25/1" ! jpegdec ! videorate ! xvimagesink

Notes:
* without videorate, the stream is perfectly "fluid", with videorate, the stream is a bit "sluggish"
* If i do not put multipartdemux, videorate says: videorate gstvideorate.c:722:gst_video_rate_chain:<videorate0> Got buffer with GST_CLOCK_TIME_NONE timestamp, discarding it

Does multipartdemux handle the timestamping of http src elements ?

Thanks

FLorent

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel