"imxv4l2sink" is closing with wrong framebuffer settings.

cancel
Showing results for 
Search instead for 
Did you mean: 

"imxv4l2sink" is closing with wrong framebuffer settings.

754 Views
shiva_mudugal
Contributor I

Hi All,

I am trying to play a video using "imxv4l2sink" and followed by I am playing another video using "imxipuvideosink".

After the playback with "imxv4l2sink" finishes, the bits_per_pixel is set to 16, but the RGBA is set to 32 bit format (rgba 8/16,8/8,8/0,8/24). 

Because of this, "imxipuvideosink" gives error saying that "framebuffer has unknown format".

fbset output before "imxv4l2sink"

=========================

$fbset -fb /dev/fb1

mode "800x480-65"
# D: 36.261 MHz, H: 34.338 kHz, V: 65.405 Hz
geometry 800 480 800 480 32
timings 27578 210 26 22 13 20 10
accel false
rgba 8/16,8/8,8/0,8/24
endmode

fbset output after "imxv4l2sink"

=========================

$fbset -fb /dev/fb1

mode "800x480-65"
# D: 36.261 MHz, H: 34.338 kHz, V: 65.405 Hz
geometry 800 480 800 1440 16
timings 27578 210 26 22 13 20 10
accel false
rgba 8/16,8/8,8/0,8/24
endmode

-Regards,

Shiva Kumar M S

Labels (4)
Tags (1)
0 Kudos
3 Replies

431 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Shiva

reason may be that there are two different plugins:

community gstreamer-imx - it uses "imxipuvideosink"

nxp gstreamer plugins (imx-gst1.0-plugins)  - uses "imxv4l2sink".

"imxv4l2sink" usage can be found in attached Linux Guide and Release Notes p.33.

from nxp official software resources page:

i.MX Software|NXP 

gstreamer-imx usage:

i.MX6 GStreamer-imx Plugins - Tutorial & Example Pipelines 

GitHub - Freescale/gstreamer-imx: GStreamer 1.0 plugins for i.MX platforms 

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos

431 Views
shiva_mudugal
Contributor I

Hi igorpadykov,

Overlaysink is also part of "imx-gst1.0-plugins" and there is no issue with that sink. We can play video using "imxipuvideosink"  after "overlaysink" playback. Issue is that, "imxv4l2sink" is leaving with wrong framebuffer format after finishing playback. This seems to be a bug.

-Regards,

Shiva Kumar

0 Kudos

431 Views
igorpadykov
NXP TechSupport
NXP TechSupport

Hi Shiva

one can try Demo Images

https://www.nxp.com/webapp/Download?colCode=L4.9.88_2.0.0_MX6QDLSOLOX&appType=license&location=null&... 

use cases are described in attached Linux Guide sect.7 Multimedia.

Best regards
igor
-----------------------------------------------------------------------------------------------------------------------
Note: If this post answers your question, please click the Correct Answer button. Thank you!
-----------------------------------------------------------------------------------------------------------------------

0 Kudos