Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fail to read video files #10

Closed
Chun-Lin opened this issue Sep 13, 2015 · 3 comments
Closed

Fail to read video files #10

Chun-Lin opened this issue Sep 13, 2015 · 3 comments

Comments

@Chun-Lin
Copy link

Hi Tadas,

When I tried to use the demo videos in folder video to test the program, it just showed that the video can't be read. I typed ./bin/SimpleCLM -f "./videos/default.wmv" , and then it showed the error messages:

Attempting to read from file: ./videos/changeLighting.wmv
Segmentation fault (core dumped)

Is that something wrong?

Thank you,
Chun-Lin

@TadasBaltrusaitis
Copy link
Owner

Hi Chin-Lin,

It was indeed a bug, it couldn't find one of the model files. It should be fixed now, just redo the cmake step and the build.

Let me know if it works now.

Thanks,
Tadas

@Chun-Lin
Copy link
Author

yes, it works!! Thank you so much!!

But I've found something wrong when I tried to run SimpleCLMImg.
I typed ./bin/SimpleCLMImg -fdir "./videos/" -ofdir "./demo_img/" -oidir "./demo_img/" -clmwild
then it showed the error messages:

OpenCV Error: Unspecified error (could not find a writer for the specified extension) in imwrite_, file /home/gary/Documents/opencv-3.0.0-beta/modules/imgcodecs/src/loadsave.cpp, line 353
terminate called after throwing an instance of 'cv::Exception'
what(): /home/gary/Documents/opencv-3.0.0-beta/modules/imgcodecs/src/loadsave.cpp:353: error: (-2) could not find a writer for the specified extension in function imwrite_

I think there are something wrong with image writer or maybe some libraries that I've not installed, but I'm sure that I've install OpenCV correctly@@

Thank you,
Chun-Lin

@TadasBaltrusaitis
Copy link
Owner

Hi,

I just attempted to run that piece of code and it runs fine my end.

It is attempting to write the images as .jpg, you can probably try changing that to .png in the code and seeing if it makes a difference. Alternatively, try no including the -oidir flag to see if the problem is only in the image writing part.

Thanks,
Tadas

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants