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

cannot open the saved videos #2

Open
joewoods opened this issue Jan 14, 2013 · 3 comments
Open

cannot open the saved videos #2

joewoods opened this issue Jan 14, 2013 · 3 comments

Comments

@joewoods
Copy link

hi, dear James. A video can be saved but cannot be played by QiuckTime player. Do you what is wrong? My laptop is windows7. Thank you.

@jamezilla
Copy link
Owner

Are you calling finishMovie() on the video saver object before you close the app? If not, then your movie files will be incomplete/corrupt.

You can call finishMovie() manually (via key press or something), or call it in the destructor for the app so it get's executed when you quit. Like this:

testApp::~testApp(){
    // finalize the movie and write it out to disk
    mVidSaver.finishMovie();
}

See the example projects for a more complete example.

Let me know if that helps!

@joewoods
Copy link
Author

Thanks, James. What I tested is your example code. I saw finishMovie() is called in the destructor on the top of "testApp.cpp". in that way, The saved video cannot be played by QT player. However, it works when I call it by a key but the quality of images in the beginning of the saved video are not good.

Could I control the VideoSaver by two keys (start and stop) to save more videos? Any hints? Thank you.

@jamezilla
Copy link
Owner

Which version of OF are you compiling against?

I'm not sure what to say about the quality of the images. Can you describe "bad quality"? Blurry/choppy/noisy/artifacty? It might be a CPU problem or memory problem. If your machine can't keep up with the encode...

Yes, you can start/stop with 2 different keys, though you'd probably want some way to generate a unique filename for each (eg. use ofGetTimestampString() to generate a filename), otherwise you'd end up writing over the previous movie.

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