DirectFB and Gstreamer at same time

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

DirectFB and Gstreamer at same time

Mohammad, Jamal M
Hi Guys,
 
We had an application using DirectFB which divides the screen into four panels. Attached Image. Big panel (Left side ) is updated every second with text, the other three panels ( Right Side ) has static images.
 
We are planning to play video on the panels where images are displayed.. Idea is used to gstreamer-imx plugins.
 
gst-launch-1.0 playbin uri=file:///Images/hash.mp4 video-sink="imxipuvideosink window-height=240 window-width=360 window-y-coord=0 window-x-coord=684" flags=0x57
 
When we play the video using the above command, we are facing problem : the text panel in the big panel will be updated every second which is flickering the video. I believe this is due to fact that DirectFB is updating framebuffer while trying to write text. Is there any way to avoid this flickering and allow both DirectFB and gstreamer to work in parallel.
 
Thanks for all your help.
 
Mohammad Jamal Mohiuddin
Software Engineer, Retail Hosp/HW
NCR Corporation India Pvt Ltd.
[hidden email] | www.ncr.com
 
 
 

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

Re: DirectFB and Gstreamer at same time

anjojohn
Hi Mohammad,
 from the gstreamer pipeline you are using IMX6 processor. One solution would be to use the overlay frame buffer /dev/fb1 of IMX6 for the text part and /dev/fb0 for the video part. you can modify the imxipuvideosink framebuffer=/dev/fb1 and check. Please unblank and set the size of the overlay frame-buffer before you run the command. Also adjust the alpha value for transparency.
to unblank  : echo 0 > /sys/class/graphics/fb1/blank
to set resolution  : fbset -xres <> -yres <> -fb /dev/fb1



On Thu, Feb 15, 2018 at 11:23 AM, Mohammad, Jamal M <[hidden email]> wrote:
Hi Guys,
 
We had an application using DirectFB which divides the screen into four panels. Attached Image. Big panel (Left side ) is updated every second with text, the other three panels ( Right Side ) has static images.
 
We are planning to play video on the panels where images are displayed.. Idea is used to gstreamer-imx plugins.
 
gst-launch-1.0 playbin uri=file:///Images/hash.mp4 video-sink="imxipuvideosink window-height=240 window-width=360 window-y-coord=0 window-x-coord=684" flags=0x57
 
When we play the video using the above command, we are facing problem : the text panel in the big panel will be updated every second which is flickering the video. I believe this is due to fact that DirectFB is updating framebuffer while trying to write text. Is there any way to avoid this flickering and allow both DirectFB and gstreamer to work in parallel.
 
Thanks for all your help.
 
Mohammad Jamal Mohiuddin
Software Engineer, Retail Hosp/HW
NCR Corporation India Pvt Ltd.
[hidden email] | www.ncr.com
 
 
 

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




--

*With Best Regards*


*Anjo John*

VVDN Technologies Pvt Ltd

*Cell : *+91 9539931442 | Skype :anjojohn051
 


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

RE: DirectFB and Gstreamer at same time

Mohammad, Jamal M

Problem is we are using fb1 for scrolling messages at the bottom.. So, we already have fb0 for directFb. Is there any other solution…

 

From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Anjo John
Sent: Thursday, February 15, 2018 11:44 AM
To: Discussion of the development of and with GStreamer <[hidden email]>
Subject: Re: DirectFB and Gstreamer at same time

 

Hi Mohammad,

 from the gstreamer pipeline you are using IMX6 processor. One solution would be to use the overlay frame buffer /dev/fb1 of IMX6 for the text part and /dev/fb0 for the video part. you can modify the imxipuvideosink framebuffer=/dev/fb1 and check. Please unblank and set the size of the overlay frame-buffer before you run the command. Also adjust the alpha value for transparency.

to unblank  : echo 0 > /sys/class/graphics/fb1/blank

to set resolution  : fbset -xres <> -yres <> -fb /dev/fb1

 

 

 

On Thu, Feb 15, 2018 at 11:23 AM, Mohammad, Jamal M <[hidden email]> wrote:

Hi Guys,

 

We had an application using DirectFB which divides the screen into four panels. Attached Image. Big panel (Left side ) is updated every second with text, the other three panels ( Right Side ) has static images.

 

We are planning to play video on the panels where images are displayed.. Idea is used to gstreamer-imx plugins.

 

gst-launch-1.0 playbin uri=file:///Images/hash.mp4 video-sink="imxipuvideosink window-height=240 window-width=360 window-y-coord=0 window-x-coord=684" flags=0x57

 

When we play the video using the above command, we are facing problem : the text panel in the big panel will be updated every second which is flickering the video. I believe this is due to fact that DirectFB is updating framebuffer while trying to write text. Is there any way to avoid this flickering and allow both DirectFB and gstreamer to work in parallel.

 

Thanks for all your help.

 

Mohammad Jamal Mohiuddin
Software Engineer, Retail Hosp/HW
NCR Corporation India Pvt Ltd.
[hidden email] | www.ncr.com

 

 

 


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



 

--


*With Best Regards*


*Anjo John*

VVDN Technologies Pvt Ltd

*Cell : *+91 9539931442 | Skype :anjojohn051
 


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

RE: DirectFB and Gstreamer at same time

Mohammad, Jamal M
In reply to this post by anjojohn

When I typed the following command, there was nothing displayed on the screen.

 

gst-launch-1.0 playbin uri=file:///Images/hash.mp4 video-sink="imxipuvideosink window-height=240 window-width=360 window-y-coord=0 window-x-coord=684 framebuffer=/dev/fb1" flags=0x57

 

The gstreamer logs shows that video played..But not displayed on the screen.

 

I have already executed: echo 0 > /sys/class/graphics/fb1/blank

 

From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Anjo John
Sent: Thursday, February 15, 2018 11:44 AM
To: Discussion of the development of and with GStreamer <[hidden email]>
Subject: Re: DirectFB and Gstreamer at same time

 

Hi Mohammad,

 from the gstreamer pipeline you are using IMX6 processor. One solution would be to use the overlay frame buffer /dev/fb1 of IMX6 for the text part and /dev/fb0 for the video part. you can modify the imxipuvideosink framebuffer=/dev/fb1 and check. Please unblank and set the size of the overlay frame-buffer before you run the command. Also adjust the alpha value for transparency.

to unblank  : echo 0 > /sys/class/graphics/fb1/blank

to set resolution  : fbset -xres <> -yres <> -fb /dev/fb1

 

 

 

On Thu, Feb 15, 2018 at 11:23 AM, Mohammad, Jamal M <[hidden email]> wrote:

Hi Guys,

 

We had an application using DirectFB which divides the screen into four panels. Attached Image. Big panel (Left side ) is updated every second with text, the other three panels ( Right Side ) has static images.

 

We are planning to play video on the panels where images are displayed.. Idea is used to gstreamer-imx plugins.

 

gst-launch-1.0 playbin uri=file:///Images/hash.mp4 video-sink="imxipuvideosink window-height=240 window-width=360 window-y-coord=0 window-x-coord=684" flags=0x57

 

When we play the video using the above command, we are facing problem : the text panel in the big panel will be updated every second which is flickering the video. I believe this is due to fact that DirectFB is updating framebuffer while trying to write text. Is there any way to avoid this flickering and allow both DirectFB and gstreamer to work in parallel.

 

Thanks for all your help.

 

Mohammad Jamal Mohiuddin
Software Engineer, Retail Hosp/HW
NCR Corporation India Pvt Ltd.
[hidden email] | www.ncr.com

 

 

 


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



 

--


*With Best Regards*


*Anjo John*

VVDN Technologies Pvt Ltd

*Cell : *+91 9539931442 | Skype :anjojohn051
 


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

Re: DirectFB and Gstreamer at same time

Nicolas Dufresne-5
In reply to this post by Mohammad, Jamal M
Le jeudi 15 février 2018 à 06:28 +0000, Mohammad, Jamal M a écrit :
> Problem is we are using fb1 for scrolling messages at the bottom..
> So, we already have fb0 for directFb. Is there any other solution…

Well, then implement a driver for the framebuffer sharing. A mechanism
that allow gstreamer to take control of the FB (preventing the app from
rendering text), and when done, give that control back to the app.

Short story, design for framebuffer sharing.

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

signature.asc (201 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: DirectFB and Gstreamer at same time

Mohammad, Jamal M
But in may case, both should work simultaneously. In my previous setup we used gstreamer-0.10 plugins imxv4l2sink which was using Video 4 Linux subsystem. In that case it was working fine. But we want to shift to the latest plugins due to the issues which exist in 0.10

-----Original Message-----
From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Nicolas Dufresne
Sent: Thursday, February 15, 2018 9:48 PM
To: Discussion of the development of and with GStreamer <[hidden email]>
Subject: Re: DirectFB and Gstreamer at same time

Le jeudi 15 février 2018 à 06:28 +0000, Mohammad, Jamal M a écrit :
> Problem is we are using fb1 for scrolling messages at the bottom..
> So, we already have fb0 for directFb. Is there any other solution…

Well, then implement a driver for the framebuffer sharing. A mechanism that allow gstreamer to take control of the FB (preventing the app from rendering text), and when done, give that control back to the app.

Short story, design for framebuffer sharing.

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

Re: DirectFB and Gstreamer at same time

anjojohn
In reply to this post by Nicolas Dufresne-5
You could also use the "imxipucompositor" for combining all the video output to a single buffer and give it to frame buffer.

On Thu, Feb 15, 2018 at 9:47 PM, Nicolas Dufresne <[hidden email]> wrote:
Le jeudi 15 février 2018 à 06:28 +0000, Mohammad, Jamal M a écrit :
> Problem is we are using fb1 for scrolling messages at the bottom..
> So, we already have fb0 for directFb. Is there any other solution…

Well, then implement a driver for the framebuffer sharing. A mechanism
that allow gstreamer to take control of the FB (preventing the app from
rendering text), and when done, give that control back to the app.

Short story, design for framebuffer sharing.

Nicolas

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




--

*With Best Regards*


*Anjo John*

VVDN Technologies Pvt Ltd

*Cell : *+91 9539931442 | Skype :anjojohn051
 


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