View Issue Details

IDProjectCategoryView StatusLast Update
0000582Cinelerra-GG[All Projects] Featurepublic2021-07-30 00:42
ReporterPhyllisSmith Assigned ToPhyllisSmith  
PrioritylowSeverityminorReproducibilityhave not tried
Status feedbackResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0000582: When using Proxy Jpeg sequence, put in subdirectory
DescriptionWhen using Proxy with the jpeg sequence, so many files are created and it interferes with the "real" video files and is messy.
It would be better to have the jpeg sequence proxy files put into a subdirectory thus making it easy to clean it up later.
Current workaround at a terminal window while being very careful:

   rm -f *.proxy*.jpg

Requesting an option to the JPEG Sequence exporter that places the frames in their own directory.
TagsNo tags attached.




2021-07-30 00:42

manager   ~0004893

Andrew provided a patch to begin with, but I think the concept in this BT is just going to be too confusing so will close soon as "not going to do". Attaching patch here though so it does not get lost.

proxy_dir.patch (1,642 bytes)
diff --git a/cinelerra-5.1/cinelerra/proxy.C b/cinelerra-5.1/cinelerra/proxy.C
index 0012fd19..dd47a384 100644
--- a/cinelerra-5.1/cinelerra/proxy.C
+++ b/cinelerra-5.1/cinelerra/proxy.C
@@ -207,7 +207,12 @@ void ProxyRender::to_proxy_path(char *new_path, Indexable *indexable, int scale)
 		sprintf(new_path, "%s/%s", proxy_path, ifn);
-		strcpy(new_path, indexable->path);
+		{ strcpy(new_path, indexable->path);
+		strcat(new_path, "_");
+		if(mkdir(new_path, 0700)) printf("mkdir 1 err! \n");
+		strcat(new_path, "/Proxy/"); 
+		if(mkdir(new_path, 0700)) printf("mkdir err!\n");
+		strcat(new_path, basename(indexable->path)); }
 	char prxy[BCSTRLEN];
 	int n = sprintf(prxy, ".proxy%d", scale);
 // insert proxy, path.sfx => path.proxy#-sfx.ext
@@ -229,7 +234,7 @@ void ProxyRender::to_proxy_path(char *new_path, Indexable *indexable, int scale)
 	while( *ext ) *ep++ = *ext++;
 	*ep = 0;
-//printf("ProxyRender::to_proxy_path %d %s %s\n", __LINE__, new_path), asset->path);
+//printf("ProxyRender::to_proxy_path %d %s %s\n", __LINE__, new_path, indexable->path);
 int ProxyRender::from_proxy_path(char *new_path, Asset *asset, int scale)
@@ -237,6 +242,9 @@ int ProxyRender::from_proxy_path(char *new_path, Asset *asset, int scale)
 	char prxy[BCTEXTLEN];
 	int n = sprintf(prxy, ".proxy%d", scale);
 	strcpy(new_path, asset->path);
+	strcpy(new_path, "_");
+	strcat(new_path, "/Proxy/");
+	strcat(new_path, basename(asset->path));
 	char *ptr = strstr(new_path, prxy);
 	if( !ptr || (ptr[n] != '-' && ptr[n] != '.') ) return 1;
 // remove proxy, path.proxy#-sfx.ext => path.sfx
proxy_dir.patch (1,642 bytes)

Issue History

Date Modified Username Field Change
2021-07-22 16:22 PhyllisSmith New Issue
2021-07-30 00:42 PhyllisSmith File Added: proxy_dir.patch
2021-07-30 00:42 PhyllisSmith Note Added: 0004893
2021-07-30 00:42 PhyllisSmith Assigned To => PhyllisSmith
2021-07-30 00:42 PhyllisSmith Status new => feedback