fakesink and framerate

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

fakesink and framerate

Julien Isorce
Hi,

I don't know if it' s a bug but the following commande line is not working:
gst-launch-0.10 -v videotestsrc num_buffers=50 ! video/x-raw-rgb, framerate=(fraction)1/1 ! fakesink

The totaltime should be 50s (because of the framerate) but it's executed in less than 2s (because default framerate is 30).

Where am I wrong ?

Sincerely

Julien I.


[log]
gst-launch-0.10 -v videotestsrc num_buffers=50 ! video/x-raw-rgb, framerate=(fraction)1/1 ! fakesink
Setting pipeline to PAUSED ...
/pipeline0/videotestsrc0.src: caps = video/x-raw-rgb, bpp=(int)32, endianness=(int)4321, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)320, height=(int)240, framerate=(fraction)1/1
Pipeline is PREROLLING ...
/pipeline0/capsfilter0.src: caps = video/x-raw-rgb, bpp=(int)32, endianness=(int)4321, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)320, height=(int)240, framerate=(fraction)1/1
/pipeline0/capsfilter0.sink: caps = video/x-raw-rgb, bpp=(int)32, endianness=(int)4321, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)320, height=(int)240, framerate=(fraction)1/1
/pipeline0/fakesink0.sink: caps = video/x-raw-rgb, bpp=(int)32, endianness=(int)4321, depth=(int)24, red_mask=(int)16711680, green_mask=(int)65280, blue_mask=(int)255, width=(int)320, height=(int)240, framerate=(fraction)1/1
/pipeline0/fakesink0: last-message = "preroll   ******* "
/pipeline0/fakesink0: last-message = "event   ******* E (type: 102, GstEventNewsegment, update=(boolean)false, rate=(double)1, applied_rate=(double)1, format=(GstFormat)GST_FORMAT_TIME, start=(gint64)0, stop=(gint64)-1, position=(gint64)0;) 00AB7840"
Pipeline is PREROLLED ...
Setting pipeline to PLAYING ...
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:00.000000000, duration: 0:00:01.000000000, offset: 0, offset_end: 1, flags: 32) 00B5E328"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:01.000000000, duration: 0:00:01.000000000, offset: 1, offset_end: 2, flags: 0) 00B5E380"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:02.000000000, duration: 0:00:01.000000000, offset: 2, offset_end: 3, flags: 0) 00B5E3D8"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:03.000000000, duration: 0:00:01.000000000, offset: 3, offset_end: 4, flags: 0) 00B5E430"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:04.000000000, duration: 0:00:01.000000000, offset: 4, offset_end: 5, flags: 0) 00B5E488"
New clock: GstSystemClock
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:05.000000000, duration: 0:00:01.000000000, offset: 5, offset_end: 6, flags: 0) 00B5E4E0"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:06.000000000, duration: 0:00:01.000000000, offset: 6, offset_end: 7, flags: 0) 00B5E538"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:07.000000000, duration: 0:00:01.000000000, offset: 7, offset_end: 8, flags: 0) 00B5E590"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:08.000000000, duration: 0:00:01.000000000, offset: 8, offset_end: 9, flags: 0) 00B5E5E8"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:09.000000000, duration: 0:00:01.000000000, offset: 9, offset_end: 10, flags: 0) 00B5E590"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:10.000000000, duration: 0:00:01.000000000, offset: 10, offset_end: 11, flags: 0) 00B5E538"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:11.000000000, duration: 0:00:01.000000000, offset: 11, offset_end: 12, flags: 0) 00B5E4E0"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:12.000000000, duration: 0:00:01.000000000, offset: 12, offset_end: 13, flags: 0) 00B5E488"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:13.000000000, duration: 0:00:01.000000000, offset: 13, offset_end: 14, flags: 0) 00B5E430"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:14.000000000, duration: 0:00:01.000000000, offset: 14, offset_end: 15, flags: 0) 00B5E3D8"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:15.000000000, duration: 0:00:01.000000000, offset: 15, offset_end: 16, flags: 0) 00B5E380"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:16.000000000, duration: 0:00:01.000000000, offset: 16, offset_end: 17, flags: 0) 00B5E328"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:17.000000000, duration: 0:00:01.000000000, offset: 17, offset_end: 18, flags: 0) 00B5E380"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:18.000000000, duration: 0:00:01.000000000, offset: 18, offset_end: 19, flags: 0) 00B5E3D8"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:19.000000000, duration: 0:00:01.000000000, offset: 19, offset_end: 20, flags: 0) 00B5E430"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:20.000000000, duration: 0:00:01.000000000, offset: 20, offset_end: 21, flags: 0) 00B5E488"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:21.000000000, duration: 0:00:01.000000000, offset: 21, offset_end: 22, flags: 0) 00B5E4E0"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:22.000000000, duration: 0:00:01.000000000, offset: 22, offset_end: 23, flags: 0) 00B5E538"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:23.000000000, duration: 0:00:01.000000000, offset: 23, offset_end: 24, flags: 0) 00B5E590"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:24.000000000, duration: 0:00:01.000000000, offset: 24, offset_end: 25, flags: 0) 00B5E5E8"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:25.000000000, duration: 0:00:01.000000000, offset: 25, offset_end: 26, flags: 0) 00B5E590"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:26.000000000, duration: 0:00:01.000000000, offset: 26, offset_end: 27, flags: 0) 00B5E538"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:27.000000000, duration: 0:00:01.000000000, offset: 27, offset_end: 28, flags: 0) 00B5E4E0"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:28.000000000, duration: 0:00:01.000000000, offset: 28, offset_end: 29, flags: 0) 00B5E488"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:29.000000000, duration: 0:00:01.000000000, offset: 29, offset_end: 30, flags: 0) 00B5E430"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:30.000000000, duration: 0:00:01.000000000, offset: 30, offset_end: 31, flags: 0) 00B5E3D8"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:31.000000000, duration: 0:00:01.000000000, offset: 31, offset_end: 32, flags: 0) 00B5E380"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:32.000000000, duration: 0:00:01.000000000, offset: 32, offset_end: 33, flags: 0) 00B5E328"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:33.000000000, duration: 0:00:01.000000000, offset: 33, offset_end: 34, flags: 0) 00B5E380"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:34.000000000, duration: 0:00:01.000000000, offset: 34, offset_end: 35, flags: 0) 00B5E3D8"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:35.000000000, duration: 0:00:01.000000000, offset: 35, offset_end: 36, flags: 0) 00B5E430"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:36.000000000, duration: 0:00:01.000000000, offset: 36, offset_end: 37, flags: 0) 00B5E488"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:37.000000000, duration: 0:00:01.000000000, offset: 37, offset_end: 38, flags: 0) 00B5E4E0"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:38.000000000, duration: 0:00:01.000000000, offset: 38, offset_end: 39, flags: 0) 00B5E538"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:39.000000000, duration: 0:00:01.000000000, offset: 39, offset_end: 40, flags: 0) 00B5E590"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:40.000000000, duration: 0:00:01.000000000, offset: 40, offset_end: 41, flags: 0) 00B5E5E8"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:41.000000000, duration: 0:00:01.000000000, offset: 41, offset_end: 42, flags: 0) 00B5E590"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:42.000000000, duration: 0:00:01.000000000, offset: 42, offset_end: 43, flags: 0) 00B5E538"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:43.000000000, duration: 0:00:01.000000000, offset: 43, offset_end: 44, flags: 0) 00B5E4E0"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:44.000000000, duration: 0:00:01.000000000, offset: 44, offset_end: 45, flags: 0) 00B5E488"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:45.000000000, duration: 0:00:01.000000000, offset: 45, offset_end: 46, flags: 0) 00B5E430"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:46.000000000, duration: 0:00:01.000000000, offset: 46, offset_end: 47, flags: 0) 00B5E3D8"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:47.000000000, duration: 0:00:01.000000000, offset: 47, offset_end: 48, flags: 0) 00B5E380"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:48.000000000, duration: 0:00:01.000000000, offset: 48, offset_end: 49, flags: 0) 00B5E328"
/pipeline0/fakesink0: last-message = "chain   ******* < (307200 bytes, timestamp: 0:00:49.000000000, duration: 0:00:01.000000000, offset: 49, offset_end: 50, flags: 0) 00B5E380"
/pipeline0/fakesink0: last-message = "event   ******* E (type: 86, ) 00AB7840"
Got EOS from element "pipeline0".
Execution ended after 62500000 ns.
Setting pipeline to PAUSED ...
Setting pipeline to READY ...
/pipeline0/fakesink0.sink: caps = NULL
/pipeline0/capsfilter0.src: caps = NULL
/pipeline0/capsfilter0.sink: caps = NULL
/pipeline0/videotestsrc0.src: caps = NULL
Setting pipeline to NULL ...
FREEING pipeline ...
[/log]

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: fakesink and framerate

Thijs Vermeir-2
On Wed, 2008-03-26 at 19:46 +0100, Julien Isorce wrote:
> Hi,

Hello,

>
> I don't know if it' s a bug but the following commande line is not
> working:
> gst-launch-0.10 -v videotestsrc num_buffers=50 ! video/x-raw-rgb,
> framerate=(fraction)1/1 ! fakesink
>
> The totaltime should be 50s (because of the framerate) but it's
> executed in less than 2s (because default framerate is 30).
>
> Where am I wrong ?

fakesink is by default not synced to the clock. So it takes buffers
as fast as it can handle them. use the sync=1 property to sync to the
clock and the duration of the pipeline will be 50s.

gst-launch-0.10 -v videotestsrc num_buffers=50 ! video/x-raw-rgb,
framerate=\(fraction\)1/1 ! fakesink sync=1

Gr,
Thijs


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: fakesink and framerate

Sjoerd Simons
In reply to this post by Julien Isorce
On Wed, Mar 26, 2008 at 07:46:38PM +0100, Julien Isorce wrote:

> Hi,
>
> I don't know if it' s a bug but the following commande line is not working:
> gst-launch-0.10 -v videotestsrc num_buffers=50 ! video/x-raw-rgb,
> framerate=(fraction)1/1 ! fakesink
>
> The totaltime should be 50s (because of the framerate) but it's executed in
> less than 2s (because default framerate is 30).
>
> Where am I wrong ?

fakesink doesn't sync to the clock by default. Try with fakesink sync=true

  Sjoerd
--
The door is the key.

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: fakesink and framerate

Julien Isorce
Oh ok Thx :P


2008/3/26, Sjoerd Simons <[hidden email]>:
On Wed, Mar 26, 2008 at 07:46:38PM +0100, Julien Isorce wrote:
> Hi,
>
> I don't know if it' s a bug but the following commande line is not working:
> gst-launch-0.10 -v videotestsrc num_buffers=50 ! video/x-raw-rgb,
> framerate=(fraction)1/1 ! fakesink
>
> The totaltime should be 50s (because of the framerate) but it's executed in
> less than 2s (because default framerate is 30).
>
> Where am I wrong ?


fakesink is by default not synced to the clock. So it takes buffers
as fast as it can handle them. use the sync=1 property to sync to the
clock and the duration of the pipeline will be 50s.

gst-launch-0.10 -v videotestsrc num_buffers=50 ! video/x-raw-rgb,
framerate=\(fraction\)1/1 ! fakesink sync=1

Gr,
Thijs

 

fakesink doesn't sync to the clock by default. Try with fakesink sync=true

  Sjoerd

--
The door is the key.


-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel