Welcome to our community

Be a part of something great, join today!

  • Hey all, just changed over the backend after 15 years I figured time to give it a bit of an update, its probably gonna be a bit weird for most of you and i am sure there is a few bugs to work out but it should kinda work the same as before... hopefully :)

BUG AND C++ FIX: reel names not in XML file (and crash)

Bruce Allen

Well-known member
Joined
Jan 4, 2007
Messages
3,047
Reaction score
11
Points
38
Age
46
Website
www.boacinema.com
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::out);

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;
}
 
Back
Top