updated patch attached..

this one produces something more resembling those examples i saw online...



On Sunday, May 30, 2021, Andrew Randrianasulu <[email protected]>
wrote:

>
>
> On Sunday, May 30, 2021, Phyllis Smith via Cin <[email protected]>
> wrote:
>
>> Tested it. 25 fps / PAL and created 3 separate files for Video 1 and the
>> 2 Audio tracks. BUT I have no idea
>> if it is correct because I do not know how to use another program to test
>> it.  Maybe Andrea will have some
>> time later.  I have attached the 3 files.  Don't you also have to have
>> the original input file?
>>
>
>
> yeah, i think so.
>
> also, i think i messed up filename vs filepath - we probably only need
> filename without full path... will look into how to split them.
>
> also i think those files must end with   .edl, not  .xml?
>
>
>
>> On Sat, May 29, 2021 at 4:43 PM Andrew Randrianasulu via Cin <
>> [email protected]> wrote:
>>
>>> not sure if it will work like i hoped..
>>>
>>> but can anyone test it? (with last commit reverted, so 'ExportEDL'
>>> option will be around in menu again)
>>>
>>> try with 24 / 25 fps session (PAL)
>>> --
>>> 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..609e0fab 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,11 @@ 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");
-
+		fprintf(fh, "FCM: NON DROP FRAME\n"); // fixme: select depending on fps
 		int colnum = 1;
 
 
@@ -147,7 +147,7 @@ void ExportEDLAsset::export_it()
 			edit;
 			edit = edit->next)
 		{
-			char reel_name[BCTEXTLEN];
+			char reel_name[BCTEXTLEN] ="AX ";
 			char avselect[5];
 			char edittype[5] = "C   ";
 			char cutinfo[4] = "   ";
@@ -187,10 +187,13 @@ void ExportEDLAsset::export_it()
 			} else
 			{
 				edit_to_timecodes(edit, sourceinpoint, sourceoutpoint, destinpoint, destoutpoint, reel_name);
+				char filename[1024];
+				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");
+				fprintf(fh,"* FROM CLIP NAME: %s\n", filename);
 				last_dissolve = 0;
 			}
 

Attachment: my.edl
Description: Binary data

-- 
Cin mailing list
[email protected]
https://lists.cinelerra-gg.org/mailman/listinfo/cin

Reply via email to