MCPcopy Create free account
hub / github.com/OpenShot/libopenshot / ChunkWriter

Method ChunkWriter

src/ChunkWriter.cpp:21–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19using namespace openshot;
20
21ChunkWriter::ChunkWriter(std::string path, ReaderBase *reader) :
22 local_reader(reader), path(path), chunk_size(24*3), chunk_count(1), frame_count(1), is_writing(false),
23 default_extension(".webm"), default_vcodec("libvpx"), default_acodec("libvorbis"), last_frame_needed(false), is_open(false)
24{
25 // Change codecs to default
26 info.vcodec = default_vcodec;
27 info.acodec = default_acodec;
28
29 // Copy info struct from the source reader
30 CopyReaderInfo(local_reader);
31
32 // Create folder (if it does not exist)
33 create_folder(path);
34
35 // Write JSON meta data file
36 write_json_meta_data();
37
38 // Open reader
39 local_reader->Open();
40}
41
42// get a formatted path of a specific chunk
43std::string ChunkWriter::get_chunk_path(int64_t chunk_number, std::string folder, std::string extension)

Callers

nothing calls this directly

Calls 1

OpenMethod · 0.45

Tested by

no test coverage detected