Problem with clockoverlay and theoraenc

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

Problem with clockoverlay and theoraenc

Fabrício Ceolin
Hi,

I'm testing the following complex pipeline:

gst-launch videotestsrc do-timestamp=true pattern=0 ! videoscale method=1 ! videorate ! video/x-raw-yuv,format=\(fourcc\)UYVY,framerate=2/1,width=640,height=480 ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=320,height=240 ! videobox border-alpha=0 alpha=1 top=-240 left=-320 ! mix. videotestsrc do-timestamp=true pattern=1 ! videoscale method=1 ! videorate ! video/x-raw-yuv,format=\(fourcc\)UYVY,framerate=2/1,width=640,height=480 ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=320,height=240 ! videobox border-alpha=0 alpha=1 top=0 left=0 ! mix. videotestsrc do-timestamp=true pattern=0 ! videoscale method=1 ! videorate ! video/x-raw-yuv,format=\(fourcc\)UYVY,framerate=2/1,width=640,height=480 ! ffmpegcolorspace  ! videoscale method=1 ! video/x-raw-yuv,width=320,height=240 ! videobox border-alpha=0 alpha=1 top=-240 left=0 ! mix. videotestsrc do-timestamp=true pattern=0 ! videoscale method=1 ! videorate ! video/x-raw-yuv,format=\(fourcc\)UYVY,framerate=2/1,width=640,height=480 ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=320,height=240 ! videobox border-alpha=0 alpha=1 top=0 left=-320 ! mix. videomixer name=mix  ! ffmpegcolorspace ! clockoverlay ypad=5 halign=right valign=bottom shaded-background=false font-desc=\"DejaVuSans Bold 10\" time-format=\"%Y/%m/%d %H:%M:%S\" ! queue ! theoraenc name=theora1 ! oggmux name=oggmux1 ! filesink name=fsink1 location=/tmp/test1.ogg t1.

It's simulate my environment, that gets 4 640x480 YUV video source, converts to one video 640x480 with 4 320x240 on each quadrant.

See the clockoverlay at near end. When I'm playing the test1ogg, the clock is very slowed compared to real time.

Is it a bug or a error on pipeline setup?

Thanks

--
Fabrício Ceolin
ulevel.com
Diretor Executivo

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

Re: Problem with clockoverlay and theoraenc

Kapil Agrawal
You seem to have done  a typo mistake,
please change the framerate from 2 to >=25 fps in the capsfilter :)

Best
Kapil

2011/3/16 Fabrício Ceolin <[hidden email]>
Hi,

I'm testing the following complex pipeline:

gst-launch videotestsrc do-timestamp=true pattern=0 ! videoscale method=1 ! videorate ! video/x-raw-yuv,format=\(fourcc\)UYVY,framerate=2/1,width=640,height=480 ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=320,height=240 ! videobox border-alpha=0 alpha=1 top=-240 left=-320 ! mix. videotestsrc do-timestamp=true pattern=1 ! videoscale method=1 ! videorate ! video/x-raw-yuv,format=\(fourcc\)UYVY,framerate=2/1,width=640,height=480 ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=320,height=240 ! videobox border-alpha=0 alpha=1 top=0 left=0 ! mix. videotestsrc do-timestamp=true pattern=0 ! videoscale method=1 ! videorate ! video/x-raw-yuv,format=\(fourcc\)UYVY,framerate=2/1,width=640,height=480 ! ffmpegcolorspace  ! videoscale method=1 ! video/x-raw-yuv,width=320,height=240 ! videobox border-alpha=0 alpha=1 top=-240 left=0 ! mix. videotestsrc do-timestamp=true pattern=0 ! videoscale method=1 ! videorate ! video/x-raw-yuv,format=\(fourcc\)UYVY,framerate=2/1,width=640,height=480 ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=320,height=240 ! videobox border-alpha=0 alpha=1 top=0 left=-320 ! mix. videomixer name=mix  ! ffmpegcolorspace ! clockoverlay ypad=5 halign=right valign=bottom shaded-background=false font-desc=\"DejaVuSans Bold 10\" time-format=\"%Y/%m/%d %H:%M:%S\" ! queue ! theoraenc name=theora1 ! oggmux name=oggmux1 ! filesink name=fsink1 location=/tmp/test1.ogg t1.

It's simulate my environment, that gets 4 640x480 YUV video source, converts to one video 640x480 with 4 320x240 on each quadrant.

See the clockoverlay at near end. When I'm playing the test1ogg, the clock is very slowed compared to real time.

Is it a bug or a error on pipeline setup?

Thanks

--
Fabrício Ceolin
ulevel.com
Diretor Executivo

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
www.mediamagictechnologies.com (Gstreamer, ffmpeg, Red5, Streaming)
twitter handle: @gst_kaps
http://www.linkedin.com/in/kapilagrawal

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

Re: Problem with clockoverlay and theoraenc

Fabrício Ceolin
Hi Kapil,

I really want 2 fps. I solve the problem adding a is-live at videosource. It's make sense, isn't?

gst-launch videotestsrc do-timestamp=true is-live=true pattern=0 ! videoscale method=1 ! videorate ! video/x-raw-yuv,format=\(fourcc\)AYUV,framerate=2/1,width=6
deo/x-raw-yuv,width=320,height=240 ! videobox border-alpha=0 alpha=1 top=-240 left=-320 ! mix. videotestsrc do-timestamp=true is-live=true pattern=1 ! videoscale method=1 ! video
width=640,height=480 ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=320,height=240 ! videobox border-alpha=0 alpha=1 top=0 left=0 ! mix. videotestsrc do-timesta
orate ! video/x-raw-yuv,format=\(fourcc\)AYUV,framerate=2/1,width=640,height=480 ! ffmpegcolorspace  ! videoscale method=1 ! video/x-raw-yuv,width=320,height=240 ! videobox borde
mestamp=true is-live=true pattern=0 ! videoscale method=1 ! videorate ! video/x-raw-yuv,format=\(fourcc\)AYUV,framerate=2/1,width=640,height=480 ! ffmpegcolorspace ! videoscale m
order-alpha=0 alpha=1 top=0 left=-320 ! mix. videomixer name=mix  ! ffmpegcolorspace ! clockoverlay ypad=5 halign=right valign=bottom shaded-background=false font-desc=\"DejaVuSa
eoraenc name=theora1 ! oggmux name=oggmux1 ! filesink name=fsink1 location=/tmp/test1.ogg t1.

Thanks!

On Wed, Mar 23, 2011 at 9:14 AM, Kapil Agrawal <[hidden email]> wrote:
You seem to have done  a typo mistake,
please change the framerate from 2 to >=25 fps in the capsfilter :)

Best
Kapil

2011/3/16 Fabrício Ceolin <[hidden email]>
Hi,

I'm testing the following complex pipeline:

gst-launch videotestsrc do-timestamp=true pattern=0 ! videoscale method=1 ! videorate ! video/x-raw-yuv,format=\(fourcc\)UYVY,framerate=2/1,width=640,height=480 ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=320,height=240 ! videobox border-alpha=0 alpha=1 top=-240 left=-320 ! mix. videotestsrc do-timestamp=true pattern=1 ! videoscale method=1 ! videorate ! video/x-raw-yuv,format=\(fourcc\)UYVY,framerate=2/1,width=640,height=480 ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=320,height=240 ! videobox border-alpha=0 alpha=1 top=0 left=0 ! mix. videotestsrc do-timestamp=true pattern=0 ! videoscale method=1 ! videorate ! video/x-raw-yuv,format=\(fourcc\)UYVY,framerate=2/1,width=640,height=480 ! ffmpegcolorspace  ! videoscale method=1 ! video/x-raw-yuv,width=320,height=240 ! videobox border-alpha=0 alpha=1 top=-240 left=0 ! mix. videotestsrc do-timestamp=true pattern=0 ! videoscale method=1 ! videorate ! video/x-raw-yuv,format=\(fourcc\)UYVY,framerate=2/1,width=640,height=480 ! ffmpegcolorspace ! videoscale method=1 ! video/x-raw-yuv,width=320,height=240 ! videobox border-alpha=0 alpha=1 top=0 left=-320 ! mix. videomixer name=mix  ! ffmpegcolorspace ! clockoverlay ypad=5 halign=right valign=bottom shaded-background=false font-desc=\"DejaVuSans Bold 10\" time-format=\"%Y/%m/%d %H:%M:%S\" ! queue ! theoraenc name=theora1 ! oggmux name=oggmux1 ! filesink name=fsink1 location=/tmp/test1.ogg t1.

It's simulate my environment, that gets 4 640x480 YUV video source, converts to one video 640x480 with 4 320x240 on each quadrant.

See the clockoverlay at near end. When I'm playing the test1ogg, the clock is very slowed compared to real time.

Is it a bug or a error on pipeline setup?

Thanks

--
Fabrício Ceolin
ulevel.com
Diretor Executivo

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
www.mediamagictechnologies.com (Gstreamer, ffmpeg, Red5, Streaming)
twitter handle: @gst_kaps
http://www.linkedin.com/in/kapilagrawal

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel




--
Fabrício Ceolin
ulevel.com
Diretor Executivo

_______________________________________________
gstreamer-devel mailing list
[hidden email]
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel