how to convert RGB565 to PNG format

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

how to convert RGB565 to PNG format

Jump to solution
4,075 Views
erickang
Contributor II

Dear All,

I want to convert RGB565 format to PNG format.

 

When I converted the RGB565 to PNG format in i.MX25, the below execution was failed.

Could you tell me What's the problem?

And could you tell me how to convert the image except for using ffmpeg if there is?

 

For image convertion, I used the captured RGB565 format image via i.MX25 Camera.

I used the below command to capture the RGB565 format image on the EVK.

~ $ modprobe fsl_csi

~ $ modprobe ov2640_camera

~ $ modprobe csi_v4l2_capture

~ $ /unit_tests/mxc_v4l2_still.out -f RGB565

 

And I executed the below command in the Desktop(Ubuntu10.10) and the Board(i.MX25).

~ $ ffmpeg -vcodec rawvideo -pix_fmt rgb565 -s 640x480 -i still_RGB565.yuv -f image2 -vcodec png still_RGB565.yuv.png

 

When I used the upper command, I could create the PNG format file but I couldn't create the PNG format file.

When I executed the command, the below error was occurred.

 

root@freescale /test/png_rgb565$ ffmpeg -vcodec rawvideo -pix_fmt rgb565 -s 640x480 -i still_RGB565.yuv -f image2 -vcodec png still_RGB565.yuv.png

FFmpeg version SVN-r15339, Copyright (c) 2000-2008 Fabrice Bellard, et al.

  configuration: --arch=arm --disable-altivec --disable-mmx --disable-mmx2 --enable-cross-compile --prefix=/usr --mandir=/usr/share/man --extra-cflags=-I../linux/include

  libavutil     49.10. 0 / 49.10. 0

  libavcodec    52. 0. 0 / 52. 0. 0

  libavformat   52.22. 1 / 52.22. 1

  libavdevice   52. 1. 0 / 52. 1. 0

  built on Nov  6 2012 10:09:26, gcc: 4.1.2

Illegal instruction

root@freescale /test/png_rgb565$

 

For the detailed information, refer to the attach files.

 

Best Regards,

Eric.

Original Attachment has been moved to: execute_ffmpeg_in_Board.log.zip

Original Attachment has been moved to: execute_ffmpeg_in_Desktop.log.zip

Labels (2)
Tags (4)
0 Kudos
Reply
1 Solution
2,024 Views
imxcommunitysco
Senior Contributor II

Hi,

This issue is related to the ffmpeg library (not made by Freescale). We don't provide support for it.

Rgds

Rogerio

View solution in original post

0 Kudos
Reply
2 Replies
2,025 Views
imxcommunitysco
Senior Contributor II

Hi,

This issue is related to the ffmpeg library (not made by Freescale). We don't provide support for it.

Rgds

Rogerio

0 Kudos
Reply
2,024 Views
erickang
Contributor II

Thanks Rogerio,

I confirmed the ffmpeg is not supported in i.MX25.

I'll find the other method to perform the ffmpeg.

Regards,

Rogerio.

0 Kudos
Reply