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(int64_t 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);
141 void WriteFrame(int64_t start, int64_t length);
147 void WriteFrame(
ReaderBase* reader, int64_t start, int64_t length);
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.
Header file for CacheMemory class.
bool IsOpen()
Determine if writer is open or closed.
Header file for all Exception classes.
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.
void SetChunkSize(int64_t new_size)
Set the chunk size (number of frames to write in each chunk)
This namespace is the default namespace for all code in the openshot library.
int64_t GetChunkSize()
Get the chunk size (number of frames to write in each chunk)