Hello!
I've been trying to make a script for video compressing, working with ffmpeg. The script intercepts the video during upload, compresses it, and ahould replace the uploaded one with the compressed one. The first part seems to work: the video is intercepted, reduced, and saved in a folder. What is not working is the swapping of the uploaded video. Basically, in the backend, the video is the one I uploaded, not the reduced one. I noticed that videos in CB are renamed and placed in a folder like:
/var/www/html/images/comprofiler/plug_cbgallery/168/videos/
except that the number (168) is random (is it?), and there are many numeric folders.
What I am asking is: is thera criteria for assigning the folder and file namer? How could I solve or work around the problem of the script not overwriting?