Write JSON info file for the ChunkWriter

This commit is contained in:
Jonathan Thomas
2013-08-27 14:27:24 -05:00
parent 1e2d93721d
commit e3636bd3e9
2 changed files with 10 additions and 1 deletions

View File

@@ -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