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 (int64_t 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(int64_t 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)
int64_t video_length
The number of frames in the video stream.
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.