28 #ifndef OPENSHOT_CHUNK_WRITER_H 29 #define OPENSHOT_CHUNK_WRITER_H 40 #include <QtCore/qdir.h> 93 std::shared_ptr<Frame> last_frame;
94 bool last_frame_needed;
95 string default_extension;
96 string default_vcodec;
97 string default_acodec;
100 void create_folder(
string path);
103 string get_chunk_path(
int chunk_number,
string folder,
string extension);
106 bool is_chunk_valid();
109 void write_json_meta_data();
136 void WriteFrame(std::shared_ptr<Frame> frame)
throw(
WriterClosed);
141 void WriteFrame(
int start,
int length)
throw(
WriterClosed);
int GetChunkSize()
Get the chunk size (number of frames to write in each chunk)
Header file for ReaderBase class.
This class uses the FFmpeg libraries, to write and encode video files and audio files.
This class takes any reader and generates a special type of video file, built with chunks of small vi...
This abstract class is the base class, used by all readers in libopenshot.
Header file for FFmpegWriter class.
void SetChunkSize(int new_size)
Set the chunk size (number of frames to write in each chunk)
Header file for CacheMemory class.
bool IsOpen()
Determine if writer is open or closed.
Header file for all Exception classes.
Exception when no valid codec is found for a file.
Exception when memory could not be allocated.
Exception when invalid encoding options are used.
Exception for files that can not be found or opened.
Header file for WriterBase class.
This abstract class is the base class, used by writers. Writers are types of classes that encode vide...
Header file for JSON class.
This namespace is the default namespace for all code in the openshot library.
Exception when a writer is closed, and a frame is requested.