[mfw_isink]What is this problem (vssconfig-->format=RGB3)

取消
显示结果 
显示  仅  | 搜索替代 
您的意思是: 
已解决

[mfw_isink]What is this problem (vssconfig-->format=RGB3)

跳至解决方案
1,580 次查看
tongchunyang
Contributor III

Dear FSL All

I have met a problem about playing videos by gst-fsl-plugin mfw_isink.

The Detail just like below.

1, OK playing status image with vssconfig-->format=RGBP by mfw_isink

------------------------------------------------------------------------------------------------

① /usr/share/vssconfig

  # vss device definition

  # Master=DVI, Slave=TV

  # please add "video=video=mxcdi1fb:YUV444,720P60 video=mxcdi0fb:RGB24,1024x768M-16@60" to kernel startup command line

  # master display

  [master]

  type = framebuffer

  format = RGBP

  fb_num = 1

  main_fb_num = 0

② /root/test.sh script

  #! /bin/sh

    export VSALPHA=1

    gst-launch filesrc location=WhereTheHellIsMatt_720p.mp4 typefind=true ! aiurdemux ! vpudec ! mfw_isink axis-top=100 axis-left=100 disp-width=800 disp-height=600

imageFile.jpg

2, Flickering playing status image with vssconfig-->format=RGB3 by mfw_isink

------------------------------------------------------------------------------------------------

① /usr/share/vssconfig

  # vss device definition

  # Master=DVI, Slave=TV

  # please add "video=video=mxcdi1fb:YUV444,720P60 video=mxcdi0fb:RGB24,1024x768M-16@60" to kernel startup command line

  # master display

  [master]

  type = framebuffer

  format = RGB3

  fb_num = 1

  main_fb_num = 0

② /root/test.sh script

  #! /bin/sh

    export VSALPHA=1

    gst-launch filesrc location=WhereTheHellIsMatt_720p.mp4 typefind=true ! aiurdemux ! vpudec ! mfw_isink axis-top=100 axis-left=100 disp-width=800 disp-height=600

imageFile.jpgimageFile.jpg

Who can tell me what is the reason about this problem for mfw_isink?

1, When playing the video with screen size set over 640x480(include this size), it must be flickering or strange color.

2, When playing the video screen screen size set less than 640x480, it palys normally and with correct color.

The gst-fsl-plugins' version is 3.0.7

0 项奖励
回复
1 解答
879 次查看
tongchunyang
Contributor III

Could anyone help for this problem?

All right.

I have just fixed this problem

Reason:      mfw_gst_vss_common.c can not supply to convert the RGB24(RGB3) to correct pixel format.

File:            gst-fsl-plugins-3.0.7/libs/vss/mfw_gst_vss_common.c

Function:     int fmt2bit (unsigned long fmt)

Fixing:        Line 147 adding

                 case IPU_PIX_FMT_RGB24:  // added by TongChunyang for fixing the problem of vssconfig set as RGB3

Evidence:

1, bug status log

Before Fix.png

2, fixed status log

After Fix.png

在原帖中查看解决方案

0 项奖励
回复
1 回复
880 次查看
tongchunyang
Contributor III

Could anyone help for this problem?

All right.

I have just fixed this problem

Reason:      mfw_gst_vss_common.c can not supply to convert the RGB24(RGB3) to correct pixel format.

File:            gst-fsl-plugins-3.0.7/libs/vss/mfw_gst_vss_common.c

Function:     int fmt2bit (unsigned long fmt)

Fixing:        Line 147 adding

                 case IPU_PIX_FMT_RGB24:  // added by TongChunyang for fixing the problem of vssconfig set as RGB3

Evidence:

1, bug status log

Before Fix.png

2, fixed status log

After Fix.png

0 项奖励
回复