logo       

problem loading avi file with cvcamPlayAVI: msg#00656

lib.opencv

Subject: problem loading avi file with cvcamPlayAVI

hi
i'm new to opencv.
i installed opencv and viewed the examples and tried some coding...
everything was fine and perfectly working.
so i tried to open an avi movie with

void ShowAVIVideo(char* filename, HWND hwnd, int width, int height)
{
cvcamAVIFILE f = cvcamAVIOpenFile(filename);
if( (int)f < 0 )
return;
cvcamAVISetWindow (f, hwnd);
cvcamAVISetCallback(f, mycallback);
cvcamAVISetSize(f, width, height);
cvcamAVIRun(f);
cvcamAVIWaitCompletion(f);
cvcamAVIStop(f);
cvcamAVICloseFile(f);
}

cvNamedWindow("avi window", CV_WINDOW_AUTOSIZE);
ShowAVIVideo( movie, (HWND)cvGetWindowHandle("avi window"), 320, 240);

the window was opened but it was only grey and i didn't receive an error
message neither the movie was shown in the window.

so i tried simple to call

cvcamPlayAVI(0,0,0,0,0)

the file dialog was opened and i was able to choose an avi file of my
choice. so i have chosen an avi file, but again the opened window stayed grey
and didn't show the avi file

who one can help? i have no idea about the error.

thanx




---------------------------------
Bring words and photos together (easily) with
PhotoMail - it's free and works with Yahoo! Mail.

[Non-text portions of this message have been removed]





Change settings: http://www.yahoogroups.com/mygroups, select
Get Emails (get all posts)
Daily Digest (one summary email per day)
Read on the web (read posts on the web only)Or Unsubscribe by mailing
OpenCV-unsubscribe@xxxxxxxxxxxxxxx



<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise