Is video playback benchmark possible with Gstreamer ?

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

Is video playback benchmark possible with Gstreamer ?

tapas kundu
Hi
 I want to play video at highest speed without displaying video window. I want to see the frame  rate ,CPU usage etc for video.

Please suggest me how to proceed. I am beginner user of gstreamer.

Thanks in advance .
Navik

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is video playback benchmark possible with Gstreamer ?

Tim-Philipp Müller-2
On Sun, 2009-10-18 at 16:01 +0530, tapas kundu wrote:

>  I want to play video at highest speed without displaying video
> window. I want to see the frame  rate ,CPU usage etc for video.
>
> Please suggest me how to proceed. I am beginner user of gstreamer.

You could use fakesink sync=false instead of a videosink, which won't
show you framerate etc. though. FWIW, the latest gst-plugins-bad release
also contains a fpsdisplaysink, but this will still show a video window
unless you change the code to make it use fakesink.

Cheers
 -Tim



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Is video playback benchmark possible with Gstreamer ?

Arnout Vandecappelle
In reply to this post by tapas kundu
On Sunday 18 Oct 2009 12:31:57 tapas kundu wrote:
> Hi
>  I want to play video at highest speed without displaying video window. I
> want to see the frame  rate ,CPU usage etc for video.

 If you have your own application, you can easily use a pipeline ending with
fakesink and do something in the have-buffer callback of the fakesink.  You
can even play around with QoS by setting qos=true and sync=true on the
fakesink.  Attached is some code for the have-buffer callback.

 If you're calling gst-launch on the command line and can't be bothered with
creating an application, and accuracy is not essential, then you can do
something like this:

BUFFERS=...
LOGFILE=/tmp/log$$
gst-launch uridecodebin uri=... ! fakesink num-buffers=$BUFFERS > $LOGFILE
TIME=$(sed -n 's/Execution ended after \([0-9]*\)[0-9][0-9][0-9] ns./\1/p' \
           $LOGFILE)
echo FPS: $(( $BUFFERS * 1000000 / $TIME ))

 Regards,
 Arnout

--
Arnout Vandecappelle                               arnout at mind be
Senior Embedded Software Architect                 +32-16-286540
Essensium/Mind                                     http://www.mind.be
G.Geenslaan 9, 3001 Leuven, Belgium                BE 872 984 063 RPR Leuven
LinkedIn profile: http://www.linkedin.com/in/arnoutvandecappelle
GPG fingerprint:  31BB CF53 8660 6F88 345D  54CC A836 5879 20D7 CF43

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel