Video Rate problem

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

Video Rate problem

gtissington
My Pipe line is

[src] ! { 800x600x30fps }  ! timeoverlay ! 
              ffmpegcolorspace ! output-selector ! 
              jpegenc ! avimux ! filesink

g_object_set (G_OBJECT (sink), "sync", FALSE, "async", FALSE, NULL);
g_object_set (G_OBJECT (src), "do-timestamp", TRUE, NULL);

---

I have this code to select which source I use
         if( TRUE )
    src = gst_element_factory_make ("v4l2src", "src");
          else
             src = gst_element_factory_make ("videotestsrc", "src");


videotestsource works perfectly.  Playback with movieplayer is in real time.

v4l2testsrc save to the file sink just fine.  Out put says it is 30fps.


PROBLEM: the file saved by v4l2src pipe played back with movieplayer (or MPLAYER) is almost double speed.. takes about 6 seconds to play a 10 second clip.

Any Ideas what I am missing?

Thanks

Garth




Garth Tissington

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: Video Rate problem

Marco Ballesio
Hi,

On Thu, Sep 8, 2011 at 11:17 PM, Garth Tissington <[hidden email]> wrote:
> My Pipe line is
> [src] ! { 800x600x30fps }  ! timeoverlay !
>               ffmpegcolorspace ! output-selector !
>               jpegenc ! avimux ! filesink
> g_object_set (G_OBJECT (sink), "sync", FALSE, "async", FALSE, NULL);

I'd try without this at first. Are there any reasons for this to be here?

Regards

> g_object_set (G_OBJECT (src), "do-timestamp", TRUE, NULL);
> ---
> I have this code to select which source I use
>          if( TRUE )
>     src = gst_element_factory_make ("v4l2src", "src");
>           else
>              src = gst_element_factory_make ("videotestsrc", "src");
>
> videotestsource works perfectly.  Playback with movieplayer is in real time.
> v4l2testsrc save to the file sink just fine.  Out put says it is 30fps.
>
> PROBLEM: the file saved by v4l2src pipe played back with movieplayer (or
> MPLAYER) is almost double speed.. takes about 6 seconds to play a 10 second
> clip.
> Any Ideas what I am missing?
> Thanks
> Garth
>
>
>
> Garth Tissington
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel