Ask Your Question

pascal's profile - activity

2018-05-03 10:20:36 -0500 received badge  Popular Question (source)
2016-02-03 22:06:51 -0500 received badge  Taxonomist
2012-11-23 19:15:01 -0500 received badge  Student (source)
2012-11-23 08:02:13 -0500 commented answer Try to read AVI file

Hi Mahdi. I work under Linux (REdHat) and use OpenCV 2.4.0. I have used a AVI file which can be read by MPlayer and also Windows Media Player. How can I know if I have installed proper codecs????? Here below the output of ffmpeg : ffmpeg -i /disc1/users/pklein/Pictures/fault_synth_45d/fault_synth_45d.avi ffmpeg version 1.0.git-83cab07 Copyright (c) 2000-2012 the FFmpeg developers built on Nov 16 2012 14:45:29 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-50) configuration: --disable-yasm libavutil 52. 7.100 / 52. 7.100 libavcodec 54. 71.100 / 54. 71.100 libavformat 54. 36.100 / 54. 36.100 libavdevice 54. 3.100 / 54. 3.100 libavfilter 3. 23.100 / 3. 23.100 libswscale 2. 1.102 / 2. 1.102 libswresample 0. 16.100 / 0. 16.100 Input #0, avi, from '/disc1/users/pklein/Pictures/fault_synth_45d/fault_synth_45d.avi': Duration: 00 ... (more)

2012-11-23 07:25:06 -0500 answered a question Try to read AVI file

Hi everyone, I work under Linux and use OpenCV 2.4.0. I have made the test for a AVI file which can read by MPlayer. How to know if I have installed proper codecs?

Here below the output of launching ffmpeg on this AVI file :

ffmpeg -i /disc1/users/pklein/Pictures/fault_synth_45d/fault_synth_45d.avi ffmpeg version 1.0.git-83cab07 Copyright (c) 2000-2012 the FFmpeg developers built on Nov 16 2012 14:45:29 with gcc 4.1.2 (GCC) 20080704 (Red Hat 4.1.2-50) configuration: --disable-yasm libavutil 52. 7.100 / 52. 7.100 libavcodec 54. 71.100 / 54. 71.100 libavformat 54. 36.100 / 54. 36.100 libavdevice 54. 3.100 / 54. 3.100 libavfilter 3. 23.100 / 3. 23.100 libswscale 2. 1.102 / 2. 1.102 libswresample 0. 16.100 / 0. 16.100 Input #0, avi, from '/disc1/users/pklein/Pictures/fault_synth_45d/fault_synth_45d.avi': Duration: 00:00:03.10, start: 0.000000, bitrate: 24072 kb/s Stream #0:0: Video: msvideo1 (CRAM / 0x4D415243), rgb555le, 504x536, 10 tbr, 10 tbn, 10 tbc At least one output file must be specified

2012-11-21 08:37:38 -0500 asked a question lkdemo don't work .

I try to use the code of LK tracking demo within Linux environment.. However lkdemo don't work (with or without parameters).

Example : $ lkdemo Could not initialize capturing...

Have I missed something ?

2012-11-21 04:38:31 -0500 received badge  Supporter (source)
2012-11-16 11:34:12 -0500 asked a question Try to read AVI file

I try to open an AVI file. The return of the open method is false, although the file exists.
Here below the snippet code. Any idea, suggestion is welcome.

#include "opencv2/opencv.hpp"

using namespace cv;
using namespace std;
int main(int argc , char* argv []) {
     VideoCapture cap(0); 
     bool ok = cap.open (argv [1]);
     if (ok == false) {
         cout << "Problem when opening file." << endl;
         return -1;
     } 
     return(0);
 }
2012-11-16 04:09:23 -0500 asked a question Optical flow - color images

I would like to know if there is a way to apply the Luca Kanade Optical FLow function on color images, i.e. taking account of R,G,B channels istead of reading images as level grey images. Thanks.