[gst-devel] Duplicates frames in h264 stream
Prabhulinga Swamy B S
prabhulingaswamy.bs at globaledgesoft.com
Tue Jul 20 09:29:06 CEST 2010
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
>
>
>
More information about the gstreamer-devel
mailing list