[gst-devel] Duplicates frames in h264 stream

sudarshan bisht bisht.sudarshan at gmail.com
Tue Jul 20 09:43:26 CEST 2010


use export GST_DEBUG=element_name:5

What is your goal here ? You want an avi file having video width and height
1280x720 or 800x600 ? with frame rate 30 or 60 ?

And can you please tell us what is you sender application ? Is it some
gstreamer pipeline ?





On Tue, Jul 20, 2010 at 10:29 AM, Prabhulinga Swamy B S <prabhulingaswamy.bs
@globaledgesoft.com> wrote:

>
> Hi,
>
>     I am setting the video caps of appsrc as,
>
>    appsrc is-live=true
> "caps=video/x-h264,width=1280,height=720,framerate=60/1" \
>         h264parse ! queue ! avimux ! queue ! filesink location=filename.avi
>
>         To test the video file, I just set it as 60fps. I'm having a count
> for
>        number of frames received. I'm sure its 30fps. If i set video caps
> as 30fps
>        file take double the time, and if  I set it as 60fps, it plays as
> normal.
>
>        I set the GST_DEBUG=3 as a environment variable. Is it right ? I
> didn't get
>        any debug messages of gstreamer.
>        Or, let me know correct way of setting GST_DEBUG variable.
>
>
> With Regards,
>     Prabhu B S
>
>
> On 07/20/2010 12:44 PM, sudarshan bisht wrote:
> >
> > But if the frame rate is 60 then the file duration should be half  ,
> > right ?
> >
> > Can you dump the file before giving it to avimux and check the number
> > of frames ?
> >
> > On Tue, Jul 20, 2010 at 9:41 AM, Sandeep Prakash <123sandy at gmail.com
> > <mailto:123sandy at gmail.com>> wrote:
> >
> >
> >     Hi Prabhulinga,
> >
> >     >From your ffmpeg command line
> >
> >      prabhu at prabhu:avi $ ffmpeg -v 5 -i sample.avi -f null -
> >      Input #0, avi, from 'sample.avi':
> >       Duration: 00:00:00.00, start: 0.000000, bitrate: -2147483 kb/s
> >         Stream #0.0, 1/60: Video: h264, yuv420p, 1280x720, 1/120, 59.94
> >      tbr, 60 tbn, 120 tbc
> >      Output #0, null, to 'pipe:':
> >         Stream #0.0, 1/90000: Video: rawvideo, yuv420p, 1280x720,
> >      1001/60000, q=2-31, 200 kb/s, 90k tbn, 59.94 tbc
> >      Stream mapping:
> >       Stream #0.0 -> #0.0
> >       existing PPS referenced
> >
> >     we can also observe that the framerate is actually 60 (59.94 to be
> >     exact)
> >     and not 30
> >     as you are saying. So somewhere the framerate is getting modified.
> >     This
> >     explains the
> >     video duration getting awry.
> >
> >     Can you attach some logs that will show the caps at each element. Try
> >     setting the
> >     GST_DEBUG=3 env variable.
> >
> >     Also you can try to disable your frame completion logic and check
> >     whats the
> >     outcome.
> >
> >     Regards
> >     Sandeep Prakash
> >
> >
> > --
> > Regards,
> >
> > Sudarshan Bisht
> >
> >
> >
>
>
>
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by Sprint
> What will you do first with EVO, the first 4G phone?
> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>



-- 
Regards,

Sudarshan Bisht
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100720/924a50c1/attachment.htm>


More information about the gstreamer-devel mailing list