Bruce Allen
Well-known member
Hit a weird bug:
I saved my project as an .xml file out of REDCINE.
BUG: the .xml file had no <reel_id> !
This fucked my Avid import of course.
I'd try re-generating the .xml file but my redcine file crashes when I load it now.
So I wrote a rinky-dink C++ program that reads the clip name and generates the <reel_id> tag from that. Maybe other people will find it useful. Sorry the code is kinda CS101-level. It's been 4 years since I last did C++. But the beta suck-ness of REDCINE calls for desperate remedies, so here you are.
Attached are before and after redcine .xml files. I added ".log" to the end of their names so this bulletin board system would allow me to attach 'em.
I would ask the REDCINE team to look into this <reel_id> exporting bug but quite frankly I'd rather they look into:
- project "Failed to save as" bug (posted 10/28/08 - no response from you guys)
- lack of color info in xml file (posted 10/14/08 - no response)
- bug where REDCINE doesn't like importing many files at once and only gets halfway through (reported by many people)
- lack of ability to relink footage - or just PUT THE COLOR INFO IN THE XML FILE and I'll do a search and replace myself (people have been posting about this since 03/24/08 - only response was Luki saying on 3/24 & 3/27 that he is researching it)
- lack of zoom in / out in Library
- lack of zoom in / out in Timeline
- lack of marquee select in library (selecting clips one-by-one gets old fast and sucks)
- weird stuck frame issues (described by other people, I am hitting them too)
Bruce Allen
www.boacinema.com
//===================================
// Name : bruce_redcine_xml_reelid_fix.cpp
// Author : Bruce Allen
// Version : 0.1
// Copyright : Copyright (C) 2008 Bruce Allen - BUT ANYONE PLEASE USE IT
// Description : Fixes stupid redcine xml file bug
//===================================
#include <iostream>
#include <fstream>
using namespace std;
int main() {
int i;
string reelid;
string str; // using the dreaded deafult c++ string class
fstream rc_source("C:\\SERVER_VOL_1\\_work_2008\\2008_BRANCH\\proj\\redcine\\branchdailies_v4b.xml",ios::in);
fstream rc_dest("C:\\SERVER_VOL_1\\_work_2008\\2008_BRANCH\\proj\\redcine\\branchdailies_v4b_fixed.xml",ios:
ut);
while(!rc_source.eof()) {
getline(rc_source, str, '\n');
i = str.find("Clip name=",0);
if (i > 0) {
reelid = str.substr(14,4);
// put clip name
rc_dest << str;
rc_dest << endl;
//get and put user
getline(rc_source, str, '\n');
rc_dest << str;
rc_dest << endl;
// get and put source
getline(rc_source, str, '\n');
rc_dest << str;
rc_dest << endl;
// put reel id
rc_dest << "\t" << "\t" << "\t" << "<reel_id>\"";
rc_dest << reelid;
rc_dest << "\"</reel_id>";
rc_dest << endl;
}
else {
rc_dest << str;
rc_dest << endl;
}
}
rc_source.close();
rc_dest.close();
cout << "Done! Wish I were editing instead of writing code!" << endl; // prints Hello World!!!
cout << endl;
return 0;
}
I saved my project as an .xml file out of REDCINE.
BUG: the .xml file had no <reel_id> !
This fucked my Avid import of course.
I'd try re-generating the .xml file but my redcine file crashes when I load it now.
So I wrote a rinky-dink C++ program that reads the clip name and generates the <reel_id> tag from that. Maybe other people will find it useful. Sorry the code is kinda CS101-level. It's been 4 years since I last did C++. But the beta suck-ness of REDCINE calls for desperate remedies, so here you are.
Attached are before and after redcine .xml files. I added ".log" to the end of their names so this bulletin board system would allow me to attach 'em.
I would ask the REDCINE team to look into this <reel_id> exporting bug but quite frankly I'd rather they look into:
- project "Failed to save as" bug (posted 10/28/08 - no response from you guys)
- lack of color info in xml file (posted 10/14/08 - no response)
- bug where REDCINE doesn't like importing many files at once and only gets halfway through (reported by many people)
- lack of ability to relink footage - or just PUT THE COLOR INFO IN THE XML FILE and I'll do a search and replace myself (people have been posting about this since 03/24/08 - only response was Luki saying on 3/24 & 3/27 that he is researching it)
- lack of zoom in / out in Library
- lack of zoom in / out in Timeline
- lack of marquee select in library (selecting clips one-by-one gets old fast and sucks)
- weird stuck frame issues (described by other people, I am hitting them too)
Bruce Allen
www.boacinema.com
//===================================
// Name : bruce_redcine_xml_reelid_fix.cpp
// Author : Bruce Allen
// Version : 0.1
// Copyright : Copyright (C) 2008 Bruce Allen - BUT ANYONE PLEASE USE IT
// Description : Fixes stupid redcine xml file bug
//===================================
#include <iostream>
#include <fstream>
using namespace std;
int main() {
int i;
string reelid;
string str; // using the dreaded deafult c++ string class
fstream rc_source("C:\\SERVER_VOL_1\\_work_2008\\2008_BRANCH\\proj\\redcine\\branchdailies_v4b.xml",ios::in);
fstream rc_dest("C:\\SERVER_VOL_1\\_work_2008\\2008_BRANCH\\proj\\redcine\\branchdailies_v4b_fixed.xml",ios:
while(!rc_source.eof()) {
getline(rc_source, str, '\n');
i = str.find("Clip name=",0);
if (i > 0) {
reelid = str.substr(14,4);
// put clip name
rc_dest << str;
rc_dest << endl;
//get and put user
getline(rc_source, str, '\n');
rc_dest << str;
rc_dest << endl;
// get and put source
getline(rc_source, str, '\n');
rc_dest << str;
rc_dest << endl;
// put reel id
rc_dest << "\t" << "\t" << "\t" << "<reel_id>\"";
rc_dest << reelid;
rc_dest << "\"</reel_id>";
rc_dest << endl;
}
else {
rc_dest << str;
rc_dest << endl;
}
}
rc_source.close();
rc_dest.close();
cout << "Done! Wish I were editing instead of writing code!" << endl; // prints Hello World!!!
cout << endl;
return 0;
}