【i.mx6 SABRE Platform for Smart Devices】 AVIfile cannot be read by opencv.

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

【i.mx6 SABRE Platform for Smart Devices】 AVIfile cannot be read by opencv.

跳至解决方案
1,022 次查看
向井隆智
Contributor I

I am trying to read an AVI file using "cvCaptureFromAVI()" of "Opencv".
However, it will be an error.
==========================================================
pCapData = cvCaptureFromAVI( filePath ) ;
if( pCapData == NULL ) {
    printf( "init: AVIfile open NG %s", filePath ) ; ←
}
==========================================================
"ffmpeg" is introduced from "LTIB".
"codec" is "mjpeg".

"FFMPEG" is performed from a command line and it is checking that it is also convertible for "mjpeg".

On "PC(ubuntu-10.04)", it is reproduced by the same "OpenCV", "ffmpeg", and "avifile".

Is there any solution of this error?

[Environment]

HostPC:ubuntu-10.04

OpenCV:2.1.0

ffmpeg:0.5.9

AVIfile codec: Motion JPEG

Please give me your answer ASAP. Thank you in advance.

0 项奖励
回复
1 解答
777 次查看
daiane_angolini
NXP Employee
NXP Employee

As I understand, you need to playback your file using a simple gstreamer command line and then instead of display it on mfw-v4lsink, you use fakesink.

在原帖中查看解决方案

0 项奖励
回复
1 回复
778 次查看
daiane_angolini
NXP Employee
NXP Employee

As I understand, you need to playback your file using a simple gstreamer command line and then instead of display it on mfw-v4lsink, you use fakesink.

0 项奖励
回复