[gst-devel] Transform variable in constant framerate

Armando Taffarel Neto taffarel at solis.coop.br
Thu Oct 18 14:07:42 CEST 2007


Hi!

I think the problem is that videorate is discarding the rfbsrc frames.
See this (gstreamer debug):

0:00:01.621653000 12058 0x813b838 WARN             videorate
gstvideorate.c:722:gst_video_rate_chain:<videorate0> Got buffer with
GST_CLOCK_TIME_NONE timestamp, discarding it
0:00:01.629480000 12058 0x813b838 WARN             videorate
gstvideorate.c:722:gst_video_rate_chain:<videorate0> Got buffer with
GST_CLOCK_TIME_NONE timestamp, discarding it
0:00:01.635486000 12058 0x813b838 WARN             videorate
gstvideorate.c:722:gst_video_rate_chain:<videorate0> Got buffer with
GST_CLOCK_TIME_NONE timestamp, discarding it
0:00:01.646278000 12058 0x813b838 WARN             videorate
gstvideorate.c:722:gst_video_rate_chain:<videorate0> Got buffer with
GST_CLOCK_TIME_NONE timestamp, discarding it



The patch below seems to solve the problem:

cvs diff: Diffing gst/librfb
Index: gst/librfb/gstrfbsrc.c
===================================================================
RCS file: /cvs/gstreamer/gst-plugins-bad/gst/librfb/gstrfbsrc.c,v
retrieving revision 1.18
diff -r1.18 gstrfbsrc.c
398a399,400
> //  GST_BUFFER_TIMESTAMP (*outbuf) = gst_clock_get_time
(GST_ELEMENT_CLOCK (src)) - GST_ELEMENT_CAST (src)->base_time;
> 


Is this the correct way?


Hug!
Taffarel





Em Qui, 2007-10-18 às 01:29 -0200, Armando Taffarel Neto escreveu:
> Hi!
> 
> It is possible transform a variable framerate ( 0/1 ) in a constant
> framerate? The "videorate" component seems not work properly.
> 
> I need do this before encode to theora format!
> 
> I,m using the rfbsrc component thats generate a variable framerate, like
> this:
> 
> 
> gst-launch rfbsrc ! videoscale ! videorate ! video/x-raw-rgb,framerate=
> \(fraction\)5/1,format=\(fourcc\)I420 ! ffmpegcolorspace ! xvimagesink
> 
> 
> This pipeline don't show nothing, while the pipeline below works
> perfectly:
> 
> gst-launch rfbsrc ! videoscale  ! ffmpegcolorspace ! xvimagesink
> 
> 
> 
> Thanks!
> 
> Hug!
> Taffarel
> 
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Splunk Inc.
> Still grepping through log files to find problems?  Stop.
> Now Search log events and configuration files using AJAX and a browser.
> Download your FREE copy of Splunk now >> http://get.splunk.com/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel





More information about the gstreamer-devel mailing list