You've already forked libopenshot
mirror of
https://github.com/OpenShot/libopenshot.git
synced 2026-03-02 08:53:52 -08:00
Write JSON info file for the ChunkWriter
This commit is contained in:
@@ -176,7 +176,15 @@ void ChunkWriter::write_json_meta_data()
|
||||
root["audio_timebase"]["num"] = local_reader->info.audio_timebase.num;
|
||||
root["audio_timebase"]["den"] = local_reader->info.audio_timebase.den;
|
||||
|
||||
cout << root << endl;
|
||||
// Load path of chunk folder
|
||||
string json_path = QDir::cleanPath(QString(path.c_str()) + QDir::separator() + "info.json").toStdString();
|
||||
|
||||
// Write JSON file
|
||||
ofstream myfile;
|
||||
myfile.open (json_path.c_str());
|
||||
myfile << root << endl;
|
||||
myfile.close();
|
||||
|
||||
}
|
||||
|
||||
// check for chunk folder
|
||||
|
||||
Reference in New Issue
Block a user