31 #include "../../include/OpenShot.h" 32 #include "../../include/CrashHandler.h" 37 int main(
int argc,
char* argv[]) {
40 FFmpegReader r(
"/home/jonathan/sintel-120fps-crash.mp4");
49 for (
int attempt = 1; attempt < 10; attempt++) {
50 cout <<
"** Attempt " << attempt <<
" **" << endl;
53 for (
int frame_number = 1; frame_number < r.
info.
video_length; frame_number++) {
55 std::shared_ptr<Frame> f = r.
GetFrame(frame_number);
58 cout << frame_number <<
" [" << f->number <<
"], " << flush;
59 if (frame_number % 10 == 0)
63 cout <<
"Completed successfully!" << endl;
std::shared_ptr< Frame > GetFrame(long int requested_frame)
void Enable(bool is_enabled)
Enable/Disable logging.
int main(int argc, char *argv[])
This class uses the FFmpeg libraries, to open video files and audio files, and return openshot::Frame...
void Path(string new_path)
Set or change the file path (optional)
static CrashHandler * Instance()
ReaderInfo info
Information about the current media file.
static ZmqLogger * Instance()
Create or get an instance of this logger singleton (invoke the class with this method) ...
This namespace is the default namespace for all code in the openshot library.
void Open()
Open File - which is called by the constructor automatically.
long int video_length
The number of frames in the video stream.