31#ifndef OPENSHOT_CHUNK_WRITER_H
32#define OPENSHOT_CHUNK_WRITER_H
93 std::shared_ptr<Frame> last_frame;
94 bool last_frame_needed;
95 std::string default_extension;
96 std::string default_vcodec;
97 std::string default_acodec;
100 void create_folder(std::string
path);
103 std::string get_chunk_path(int64_t chunk_number, std::string folder, std::string extension);
106 bool is_chunk_valid();
109 void write_json_meta_data();
136 void WriteFrame(std::shared_ptr<openshot::Frame> frame);
141 void WriteFrame(int64_t start, int64_t length);
Header file for CacheMemory class.
Header file for FFmpegWriter class.
Header file for JSON class.
Header file for ReaderBase class.
Header file for WriterBase class.
This class takes any reader and generates a special type of video file, built with chunks of small vi...
void Close()
Close the writer.
bool IsOpen()
Determine if writer is open or closed.
void SetChunkSize(int64_t new_size)
Set the chunk size (number of frames to write in each chunk)
int64_t GetChunkSize()
Get the chunk size (number of frames to write in each chunk)
ChunkWriter(std::string path, openshot::ReaderBase *reader)
Constructor for ChunkWriter. Throws one of the following exceptions.
void WriteFrame(std::shared_ptr< openshot::Frame > frame)
Add a frame to the stack waiting to be encoded.
This class uses the FFmpeg libraries, to write and encode video files and audio files.
This abstract class is the base class, used by all readers in libopenshot.
This abstract class is the base class, used by writers. Writers are types of classes that encode vide...
This namespace is the default namespace for all code in the openshot library.