There may be a timestamping problem, or this computer is too slow.

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

There may be a timestamping problem, or this computer is too slow.

Thabelo Mmbengeni-2
I am tring to mix a video and desktop capture croped but i get the message `There may be a timestamping problem, or this computer is too slow.`
" gst-launch -e \
   videomixer name=mix sink_0::zorder=0 sink_0::sync=false \
sink_1::xpos=0 sink_1::ypos=0 sink_1::alpha=1 sink_1::zorder=1 sink_1::sync=false \
sink_2::xpos=803 sink_2::ypos=427 sink_2::alpha=1 sink_2::zorder=1 sink_2::sync=false \
sink_3::xpos=100 sink_3::ypos=570 sink_3::alpha=1 sink_3::zorder=2 sink_3::sync=false \
sink_4::xpos=1 sink_4::ypos=100 sink_4::alpha=1 sink_4::zorder=2 sink_4::sync=false \
sink_5::xpos=500 sink_5::ypos=-100 sink_5::alpha=1 sink_5::zorder=3 sink_5::sync=false \
sink_6::xpos=550 sink_6::ypos=250 sink_6::alpha=1 sink_6::zorder=2 sink_6::sync=false \
sink_7::xpos=400 sink_7::ypos=400 sink_7::alpha=1 sink_7::zorder=3 sink_7::sync=false \
sink_8::xpos=50 sink_8::ypos=250 sink_8::alpha=1 sink_8::zorder=2 sink_8::sync=false !\
    ffmpegcolorspace ! xvimagesink \
videotestsrc pattern="3" ! video/x-raw-yuv, framerate=10/1, width=1024, height=768 ! mix.sink_0 \
filesrc location="video.avi" ! avidemux ! queue  ! decodebin ! videoscale ! ffmpegcolorspace ! \
videorate ! video/x-raw-yuv,framerate=25/1, width=1024, height=768 ! mix.sink_1 \
ximagesrc  startx=3156 starty=150 endx=3285 endy=780 ! videoscale ! video/x-raw-rgb,width=150, height=400 ! kenburns background-color=0xFFF333 ! \
ffmpegcolorspace ! mix.sink_5 \
ximagesrc  startx=2676 starty=150 endx=2806 endy=740 ! kenburns  zrot=5 background-color=0xFFFFFF ! videoflip method="1" ! \
videoscale ! video/x-raw-rgb,width=500, height=180 ! ffmpegcolorspace ! mix.sink_6 \
ximagesrc  startx=2196 starty=150 endx=2326 endy=740 ! kenburns  background-color=0xFFFFFF ! videoflip method="2" ! \
videoscale ! video/x-raw-rgb,width=150, height=400 ! ffmpegcolorspace ! mix.sink_7 \
ximagesrc  startx=1716 starty=160 endx=1846 endy=740 ! kenburns zrot=2 background-color=0xFFFFFF ! videoflip method="3" ! \
videoscale ! video/x-raw-rgb,width=400, height=180 ! ffmpegcolorspace ! mix.sink_8
"
--
Regards

Thabelo Mmbengeni (TMT Services Cape Town HO, Engineering dep)

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

Re: There may be a timestamping problem, or this computer is too slow.

Marco Ballesio
On Mon, Sep 12, 2011 at 3:16 PM, Thabelo Mmbengeni <[hidden email]> wrote:
> I am tring to mix a video and desktop capture croped but i get the message
> `There may be a timestamping problem, or this computer is too slow.`

To check which of the two, run "top" on a separate terminal. By
checking your pipeline I'd say it's the latter, you'll probably need
to simplify it.

Regards

> " gst-launch -e \
>    videomixer name=mix sink_0::zorder=0 sink_0::sync=false \
> sink_1::xpos=0 sink_1::ypos=0 sink_1::alpha=1 sink_1::zorder=1
> sink_1::sync=false \
> sink_2::xpos=803 sink_2::ypos=427 sink_2::alpha=1 sink_2::zorder=1
> sink_2::sync=false \
> sink_3::xpos=100 sink_3::ypos=570 sink_3::alpha=1 sink_3::zorder=2
> sink_3::sync=false \
> sink_4::xpos=1 sink_4::ypos=100 sink_4::alpha=1 sink_4::zorder=2
> sink_4::sync=false \
> sink_5::xpos=500 sink_5::ypos=-100 sink_5::alpha=1 sink_5::zorder=3
> sink_5::sync=false \
> sink_6::xpos=550 sink_6::ypos=250 sink_6::alpha=1 sink_6::zorder=2
> sink_6::sync=false \
> sink_7::xpos=400 sink_7::ypos=400 sink_7::alpha=1 sink_7::zorder=3
> sink_7::sync=false \
> sink_8::xpos=50 sink_8::ypos=250 sink_8::alpha=1 sink_8::zorder=2
> sink_8::sync=false !\
>     ffmpegcolorspace ! xvimagesink \
> videotestsrc pattern="3" ! video/x-raw-yuv, framerate=10/1, width=1024,
> height=768 ! mix.sink_0 \
> filesrc location="video.avi" ! avidemux ! queue  ! decodebin ! videoscale !
> ffmpegcolorspace ! \
> videorate ! video/x-raw-yuv,framerate=25/1, width=1024, height=768 !
> mix.sink_1 \
> ximagesrc  startx=3156 starty=150 endx=3285 endy=780 ! videoscale !
> video/x-raw-rgb,width=150, height=400 ! kenburns background-color=0xFFF333 !
> \
> ffmpegcolorspace ! mix.sink_5 \
> ximagesrc  startx=2676 starty=150 endx=2806 endy=740 ! kenburns  zrot=5
> background-color=0xFFFFFF ! videoflip method="1" ! \
> videoscale ! video/x-raw-rgb,width=500, height=180 ! ffmpegcolorspace !
> mix.sink_6 \
> ximagesrc  startx=2196 starty=150 endx=2326 endy=740 ! kenburns
>  background-color=0xFFFFFF ! videoflip method="2" ! \
> videoscale ! video/x-raw-rgb,width=150, height=400 ! ffmpegcolorspace !
> mix.sink_7 \
> ximagesrc  startx=1716 starty=160 endx=1846 endy=740 ! kenburns zrot=2
> background-color=0xFFFFFF ! videoflip method="3" ! \
> videoscale ! video/x-raw-rgb,width=400, height=180 ! ffmpegcolorspace !
> mix.sink_8
> "
> --
> Regards
>
> Thabelo Mmbengeni (TMT Services Cape Town HO, Engineering dep)
>
> _______________________________________________
> 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
Reply | Threaded
Open this post in threaded view
|

Re: There may be a timestamping problem, or this computer is too slow.

Thabelo Mmbengeni-2
Gstreamer is using at most +-15% of my cpu but. And resource usage in total is 70% cpu usage RAM remains at 1.2G of 3G.

On Tue, Sep 13, 2011 at 10:35 AM, Marco Ballesio <[hidden email]> wrote:
On Mon, Sep 12, 2011 at 3:16 PM, Thabelo Mmbengeni <[hidden email]> wrote:
> I am tring to mix a video and desktop capture croped but i get the message
> `There may be a timestamping problem, or this computer is too slow.`

To check which of the two, run "top" on a separate terminal. By
checking your pipeline I'd say it's the latter, you'll probably need
to simplify it.

Regards

> " gst-launch -e \
>    videomixer name=mix sink_0::zorder=0 sink_0::sync=false \
> sink_1::xpos=0 sink_1::ypos=0 sink_1::alpha=1 sink_1::zorder=1
> sink_1::sync=false \
> sink_2::xpos=803 sink_2::ypos=427 sink_2::alpha=1 sink_2::zorder=1
> sink_2::sync=false \
> sink_3::xpos=100 sink_3::ypos=570 sink_3::alpha=1 sink_3::zorder=2
> sink_3::sync=false \
> sink_4::xpos=1 sink_4::ypos=100 sink_4::alpha=1 sink_4::zorder=2
> sink_4::sync=false \
> sink_5::xpos=500 sink_5::ypos=-100 sink_5::alpha=1 sink_5::zorder=3
> sink_5::sync=false \
> sink_6::xpos=550 sink_6::ypos=250 sink_6::alpha=1 sink_6::zorder=2
> sink_6::sync=false \
> sink_7::xpos=400 sink_7::ypos=400 sink_7::alpha=1 sink_7::zorder=3
> sink_7::sync=false \
> sink_8::xpos=50 sink_8::ypos=250 sink_8::alpha=1 sink_8::zorder=2
> sink_8::sync=false !\
>     ffmpegcolorspace ! xvimagesink \
> videotestsrc pattern="3" ! video/x-raw-yuv, framerate=10/1, width=1024,
> height=768 ! mix.sink_0 \
> filesrc location="video.avi" ! avidemux ! queue  ! decodebin ! videoscale !
> ffmpegcolorspace ! \
> videorate ! video/x-raw-yuv,framerate=25/1, width=1024, height=768 !
> mix.sink_1 \
> ximagesrc  startx=3156 starty=150 endx=3285 endy=780 ! videoscale !
> video/x-raw-rgb,width=150, height=400 ! kenburns background-color=0xFFF333 !
> \
> ffmpegcolorspace ! mix.sink_5 \
> ximagesrc  startx=2676 starty=150 endx=2806 endy=740 ! kenburns  zrot=5
> background-color=0xFFFFFF ! videoflip method="1" ! \
> videoscale ! video/x-raw-rgb,width=500, height=180 ! ffmpegcolorspace !
> mix.sink_6 \
> ximagesrc  startx=2196 starty=150 endx=2326 endy=740 ! kenburns
>  background-color=0xFFFFFF ! videoflip method="2" ! \
> videoscale ! video/x-raw-rgb,width=150, height=400 ! ffmpegcolorspace !
> mix.sink_7 \
> ximagesrc  startx=1716 starty=160 endx=1846 endy=740 ! kenburns zrot=2
> background-color=0xFFFFFF ! videoflip method="3" ! \
> videoscale ! video/x-raw-rgb,width=400, height=180 ! ffmpegcolorspace !
> mix.sink_8
> "
> --
> Regards
>
> Thabelo Mmbengeni (TMT Services Cape Town HO, Engineering dep)
>
> _______________________________________________
> 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



--
Regards

Thabelo Mmbengeni (TMT Services Cape Town HO, Engineering dep)

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

Re: There may be a timestamping problem, or this computer is too slow.

Marco Ballesio
On Tue, Sep 13, 2011 at 10:40 AM, Thabelo Mmbengeni <[hidden email]> wrote:
> Gstreamer is using at most +-15% of my cpu but. And resource usage in total
> is 70% cpu usage RAM remains at 1.2G of 3G.

so maybe you have enough juice in your system for that pipeline (is it
only user space CPU?).

It's possible that buffers are dropped from the sink because of too
high a latency in the system. What if you add the option sync=false on
the xvimagesink? What if you reduce the frame resolution?

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

Re: There may be a timestamping problem, or this computer is too slow.

Thabelo Mmbengeni-2
Cool thanks, that solved the problem syncing xvimagesink to false. 

On Tue, Sep 13, 2011 at 12:53 PM, Marco Ballesio <[hidden email]> wrote:
On Tue, Sep 13, 2011 at 10:40 AM, Thabelo Mmbengeni <[hidden email]> wrote:
> Gstreamer is using at most +-15% of my cpu but. And resource usage in total
> is 70% cpu usage RAM remains at 1.2G of 3G.

so maybe you have enough juice in your system for that pipeline (is it
only user space CPU?).

It's possible that buffers are dropped from the sink because of too
high a latency in the system. What if you add the option sync=false on
the xvimagesink? What if you reduce the frame resolution?

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



--
Regards

Thabelo Mmbengeni (TMT Services Cape Town HO, Engineering dep)

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

Re: There may be a timestamping problem, or this computer is too slow.

Marco Ballesio
On Tue, Sep 13, 2011 at 1:15 PM, Thabelo Mmbengeni <[hidden email]> wrote:
> Cool thanks, that solved the problem syncing xvimagesink to false.

I'm glad it helped, but note that this approach makes the sink never
drop a buffer. It might be slightly better to set an appropriate value
for "max-lateness".

The best would be, indeed, to find which element is declaring a wrong
latency and fix its reported value.

Regards

>
> On Tue, Sep 13, 2011 at 12:53 PM, Marco Ballesio <[hidden email]>
> wrote:
>>
>> On Tue, Sep 13, 2011 at 10:40 AM, Thabelo Mmbengeni <[hidden email]>
>> wrote:
>> > Gstreamer is using at most +-15% of my cpu but. And resource usage in
>> > total
>> > is 70% cpu usage RAM remains at 1.2G of 3G.
>>
>> so maybe you have enough juice in your system for that pipeline (is it
>> only user space CPU?).
>>
>> It's possible that buffers are dropped from the sink because of too
>> high a latency in the system. What if you add the option sync=false on
>> the xvimagesink? What if you reduce the frame resolution?
>>
>> Regards
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
> --
> Regards
>
> Thabelo Mmbengeni (TMT Services Cape Town HO, Engineering dep)
>
> _______________________________________________
> 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
Reply | Threaded
Open this post in threaded view
|

Re: There may be a timestamping problem, or this computer is too slow.

Thabelo Mmbengeni-2
I agree, thanks...  set max-lateness to  200 mili-sec  and still works fine... CPU dropped to constant at 10%...  So cool

On Tue, Sep 13, 2011 at 1:41 PM, Marco Ballesio <[hidden email]> wrote:
On Tue, Sep 13, 2011 at 1:15 PM, Thabelo Mmbengeni <[hidden email]> wrote:
> Cool thanks, that solved the problem syncing xvimagesink to false.

I'm glad it helped, but note that this approach makes the sink never
drop a buffer. It might be slightly better to set an appropriate value
for "max-lateness".

The best would be, indeed, to find which element is declaring a wrong
latency and fix its reported value.

Regards

>
> On Tue, Sep 13, 2011 at 12:53 PM, Marco Ballesio <[hidden email]>
> wrote:
>>
>> On Tue, Sep 13, 2011 at 10:40 AM, Thabelo Mmbengeni <[hidden email]>
>> wrote:
>> > Gstreamer is using at most +-15% of my cpu but. And resource usage in
>> > total
>> > is 70% cpu usage RAM remains at 1.2G of 3G.
>>
>> so maybe you have enough juice in your system for that pipeline (is it
>> only user space CPU?).
>>
>> It's possible that buffers are dropped from the sink because of too
>> high a latency in the system. What if you add the option sync=false on
>> the xvimagesink? What if you reduce the frame resolution?
>>
>> Regards
>> _______________________________________________
>> gstreamer-devel mailing list
>> [hidden email]
>> http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>
>
>
> --
> Regards
>
> Thabelo Mmbengeni (TMT Services Cape Town HO, Engineering dep)
>
> _______________________________________________
> 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



--
Regards

Thabelo Mmbengeni (TMT Services Cape Town HO, Engineering dep)

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