oh, sorry there was crasher in my patch!
if you paste silence and try to export edl it will crash.. new version doesn't do this On Sunday, May 30, 2021, Andrew Randrianasulu <[email protected]> wrote: > > > On Sunday, May 30, 2021, Andrea paz via Cin <[email protected]> > wrote: > >> Thank you for your patience in always showing me what to do. I have >> compiled, but "Export to EDL" keeps giving me the same errors. >> >> Maybe there needs to be a way to indicate the path to the original >> files used? The first lines of the EDL file I created are: > > > > yeah.... but i tried to mimc what openshot and blender do - they add > comment (starting from *) where you list your source... > > https://www.openshot.org/static/files/user-guide/import_export.html > > see example here... > > may be put all source files in same folder as EDL and export from this? > > > >> TITLE: Cinproj FORMAT: CMX 3600 4-Ch >> FCM: NON DROP FRAME >> >> But the title I gave the project is not Cinproj and neither is the >> title of the mp4 file I used in the project. > > > interesting question - should this title come from videotrack name or some > other place? (user-editable may be?) > > right now this line is hardcoded... > > i saw * Format 1080 p 24fps (as comment, on new line) again at this page: > > https://xmil.biz/EDL-X/EDL-X.shtml > you can find huge pdf file describing this cmx format at this site (half > of file about diskette / floppy format those systems used!) > > may be those high-end editors just accept/create/interpret those comments > equally? > > Try to edit your edl file until at least one other NLE accept it - then > tell us about what was wrong with Cin's file? > > > > >> -- >> Cin mailing list >> [email protected] >> https://lists.cinelerra-gg.org/mailman/listinfo/cin >> >
diff --git a/cinelerra-5.1/cinelerra/exportedl.C b/cinelerra-5.1/cinelerra/exportedl.C
index f4e3805c..bdcc6d47 100644
--- a/cinelerra-5.1/cinelerra/exportedl.C
+++ b/cinelerra-5.1/cinelerra/exportedl.C
@@ -92,7 +92,7 @@ int ExportEDLAsset::edit_to_timecodes(Edit *edit,
double edit_sourceend;
double edit_deststart;
double edit_destend;
-
+ if(!strcmp(reel_name,""))
strcpy(reel_name, " BL ");
edit_sourcestart = 0;
edit_sourceend = track->from_units(edit->length);
@@ -135,11 +135,23 @@ void ExportEDLAsset::export_it()
int last_dissolve = 1;
if (edl_type == EDLTYPE_CMX3600)
- {
+ {
// TODO: Find docs about exact header for CMX3600
- fprintf(fh, "TITLE: Cinproj FORMAT: CMX 3600 4-Ch\n");
-
+ // https://xmil.biz/EDL-X/CMX3600.pdf
+ double frame_rate = edl->session->frame_rate;
+ int frame_rate_int = (int)frame_rate;
+ fprintf(fh, "TITLE: Cinproj fps: %i\n", frame_rate_int);
+ switch(frame_rate_int) {
+ case 24:
+ case 25:
+ case 50:
+ case 60:
+ fprintf(fh, "FCM: NON DROP FRAME\n"); // fixme: select depending on fps
+ break;
+ default:
+ fprintf(fh, "FCM: DROP FRAME\n");
+ }
int colnum = 1;
@@ -155,6 +167,12 @@ void ExportEDLAsset::export_it()
char sourceoutpoint[12];
char destinpoint[12];
char destoutpoint[12];
+
+ if(!edit->asset)
+ strcpy(reel_name,"BL ");
+ else
+ strcpy(reel_name,"AX ");
+
if (track->data_type == TRACK_AUDIO)
strcpy(avselect, "A ");
else
@@ -187,10 +205,15 @@ void ExportEDLAsset::export_it()
} else
{
edit_to_timecodes(edit, sourceinpoint, sourceoutpoint, destinpoint, destoutpoint, reel_name);
+ char filename[1024];
+ if (edit->asset)
+ strcpy(filename,basename(edit->asset->path));
fprintf(fh, "%03d %8s %s %4s %3s", colnum, reel_name, avselect, edittype, cutinfo);
fprintf(fh, " %s %s", sourceinpoint, sourceoutpoint);
fprintf(fh, " %s %s", destinpoint, destoutpoint);
fprintf(fh,"\n");
+ if(edit->asset)
+ fprintf(fh,"* FROM CLIP NAME: %s\n", filename);
last_dissolve = 0;
}
my.edl
Description: Binary data
-- Cin mailing list [email protected] https://lists.cinelerra-gg.org/mailman/listinfo/cin

