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

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

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

Jump to solution
814 Views
向井隆智
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 Kudos
1 Solution
569 Views
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.

View solution in original post

0 Kudos
1 Reply
570 Views
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 Kudos