how to convert RGB565 to PNG format

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

how to convert RGB565 to PNG format

跳至解决方案
4,067 次查看
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

标签 (2)
标记 (4)
0 项奖励
回复
1 解答
2,016 次查看
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 项奖励
回复
2 回复数
2,017 次查看
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 项奖励
回复
2,016 次查看
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 项奖励
回复