ofxQTVideoSaver icon indicating copy to clipboard operation
ofxQTVideoSaver copied to clipboard

cannot open the saved videos

Open joewoods opened this issue 12 years ago • 3 comments

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.

joewoods avatar Jan 14 '13 23:01 joewoods

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!

jamezilla avatar Jan 15 '13 00:01 jamezilla

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.

joewoods avatar Jan 15 '13 04:01 joewoods

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.

jamezilla avatar Jan 15 '13 07:01 jamezilla