13#ifndef OPENSHOT_CHUNK_WRITER_H
14#define OPENSHOT_CHUNK_WRITER_H
75 std::shared_ptr<Frame> last_frame;
76 bool last_frame_needed;
77 std::string default_extension;
78 std::string default_vcodec;
79 std::string default_acodec;
82 void create_folder(std::string
path);
85 std::string get_chunk_path(int64_t chunk_number, std::string folder, std::string extension);
88 bool is_chunk_valid();
91 void write_json_meta_data();
118 void WriteFrame(std::shared_ptr<openshot::Frame> frame);
123 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)
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.