OpenShot Library | libopenshot
0.4.0
|
Go to the documentation of this file.
13 #ifndef OPENSHOT_CHUNK_WRITER_H
14 #define OPENSHOT_CHUNK_WRITER_H
30 #include <QtCore/QDir>
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 FFmpegWriter class.
Header file for WriterBase class.
bool IsOpen()
Determine if writer is open or closed.
This namespace is the default namespace for all code in the openshot library.
void WriteFrame(std::shared_ptr< openshot::Frame > frame)
Add a frame to the stack waiting to be encoded.
int64_t GetChunkSize()
Get the chunk size (number of frames to write in each chunk)
This class uses the FFmpeg libraries, to write and encode video files and audio files.
void SetChunkSize(int64_t new_size)
Set the chunk size (number of frames to write in each chunk)
Header file for CacheMemory class.
Header file for ReaderBase class.
void Close()
Close the writer.
This abstract class is the base class, used by all readers in libopenshot.
ChunkWriter(std::string path, openshot::ReaderBase *reader)
Constructor for ChunkWriter. Throws one of the following exceptions.
Header file for JSON class.
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 writers. Writers are types of classes that encode vide...