Fast AVI video speed

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

Fast AVI video speed

ldac

    Hi all,

I am trying to record video alive and to save it into an AVI file. My last problem with the avi file was fixed sending to the pipeline an EOS signal before stopping (with CTRL+C) as Jyoti pointed me (thanks).

    Now, I have "the last" problem with the video speed when I play it using VLC or any other player. I am recording a chronometer count of around 13 seconds, but when I play the file, it is played in less than 7 seconds!! I enclose the avi file, just as help.

    The pipeline that I am running is the following. I have added as many elements as I know to control de frame rate, but nothing works.

gst-launch-0.10 mfw_v4lsrc capture-width=640 capture-height=480 num-buffers=200 ! 'video/x-raw-yuv,framerate=25/1' ! mfw_vpuencoder framerate=25 width=640 height=480 codec-type=std_mpeg4 ! queue ! avimux ! filesink location=fast.avi

    Thanks one more time.
    Regards.
    LD.

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel

fast.avi (319K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Fast AVI video speed

Arnout Vandecappelle
On Friday 08 May 2009 12:02:57 ldac wrote:

>     Now, I have "the last" problem with the video speed when I play it
> using VLC or any other player. I am recording a chronometer count of around
> 13 seconds, but when I play the file, it is played in less than 7 seconds!!
> I enclose the avi file, just as help.
>
>      The pipeline that I am running is the following. I have added as many
> elements as I know to control de frame rate, but nothing works.
>
>  gst-launch-0.10 mfw_v4lsrc capture-width=640 capture-height=480
> num-buffers=200 ! 'video/x-raw-yuv,framerate=25/1' ! mfw_vpuencoder
> framerate=25 width=640 height=480 codec-type=std_mpeg4 ! queue ! avimux !
> filesink location=fast.avi

 I guess your source element is not really grabbing frames at 25fps.  Indeed,
since you limit the capturing to 200 frames, this should be 8 seconds, not
13...  I guess mfw_vpuencoder doesn't look at timestamps, just at framerate.

 You can probably solve this by adding a videorate element before the encoder.

 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:  D206 D44B 5155 DF98 550D  3F2A 2213 88AA A1C7 C933

------------------------------------------------------------------------------
The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your
production scanning environment may not be a perfect world - but thanks to
Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700
Series Scanner you'll get full speed at 300 dpi even with all image
processing features enabled. http://p.sf.net/sfu/kodak-com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel