Page 1 of 1

Make New Folder

Posted: Sun Jan 12, 2020 6:54 am
by Matty
Hi There. I can't seem to figure out how to make a new folder for each processed video. I would like there to be a new folder made inside the delivery folder. I think I would prefer the folder name to be the date and time but the folder could also be named the original video file name.

Is there a way to do this? I've searched this form and can't find anything.

Thanks for the help.

Re: Make New Folder

Posted: Sun Jan 12, 2020 4:28 pm
by momocampo
Hello Matty and welcome to the forum!

It's really easy to do. Open your delivery folder Node and enter (or browse to) the destination delivery folder, add a backslash "\" behind and add the variable needed. For the date you need 3 variables : year+month+day so:
c:\delivery\%i_year%%i_mon%%i_mday%\
c:\delivery\20200112\

and better with a separation
c:\delivery\%i_year%-%i_mon%-%i_mday%\
c:\delivery\2020-01-12\

You can now add the time variables (%i_hour%\%i_min%\%i_sec%\) behind and you will have all that you want.
Hope it helps.

Cheers.

Benjamin

Re: Make New Folder

Posted: Sun Jan 12, 2020 4:56 pm
by Matty
Thank you so very much.

Re: Make New Folder

Posted: Fri Feb 14, 2020 10:57 pm
by lbry
Hi, I am looking for options to do something similar, but not identical. I need to transcode groups of files delivered on cards or disks to Avid Mxf for making DnxHD36 offline edit files, and the finished files for each group of files should be stored in a new subfolder in the common Output folder. The project is intended as a shared transcoding resource for a group of editors, multiple deliveries per day will occur.
In addition to storing in new folders I would appreciate to find out how to fire the "createaaf" utility (a topic elsewhere on the board)at the very end of the process to include an aaf file in each delivered folder. So - is it possible to flag/identify a group of files and use it for output adressing?
Done by hand these operations work today, but needs to be automated to be the unattended solution I want to set up...

regards
Leif

Re: Make New Folder

Posted: Sat Feb 15, 2020 11:44 am
by emcodem
@Ibry
welcome to the forum and thank you for using FFAStrans!
The createaaf.exe is designed to work with a folder as input, it attempts to list all *.mxf files in the folder and tries to find out which mxfs belong together, then it creates an aaf file from those mxf's (single clip only, audio/video).
So you can use it e.g. after a deliver processor and use it in a commandline processor like that

Code: Select all

cmd /C "c:\temp\createaaf.exe "%s_source%"" 
The variable s_source should be the folder where you delivered your files right after the deliver processor.

Let me know if this is of help for you!

Re: Make New Folder

Posted: Sat Feb 15, 2020 3:03 pm
by lbry
Hi, the "createaaf" worked at once, thank you.

My other question was if it is possible somehow to route all files in a delivery to one folder. I expect the files in the job has to be identified in some way at the start. Would it be a starting point to demand the creation of a named input subfolder, could tha be used as a variable for making an output folder?

I am also working on a conversion option - most of our delivered files has Arri LogC encoding, it must be converted to Rec709.
I have set up this ffmpeg script which is working fine with named files:
ffmpeg -i "d:\temp\a0.mov" -vf lut3d="LUT_LogC_Sup_3x__4x_Rec709_800_1581766028655.cube" -s 1920x1080 -c:v dnxhd -pix_fmt yuv422p -b:v 36M d:\temp\DNxHD36_for_Editing2.mxf
Can you guide me in how make this work in a Custom Ffmpg processor, preferably placed between the Monitor Folder and the AvidDnxHD processor?

regards, Leif

Re: Make New Folder

Posted: Mon Feb 17, 2020 10:44 am
by momocampo
Hello Leif,

Of course you can use the names of your input files to populate a variable for output folder. You can for example start from %s_original_name% variable and inside populate node use function to trim or cut your original name to create another variable that you will use into the delivery folder.
e.g: myfileDNx-edward.mxf
Use a populate variables node with function trim to keep only the name at the end :
%s_editor_name% to $triml("%s_original_name%", 10)
Now your %s_editor_name% variable is now "edward", you can use it to create a folder for delivery :
C:\%s_editor_name%\
In that case, a folder called "edward" will be created on C:\ and your output files will be inside :)

It was just an example, you have many choices :)

About your LUT, you just have to "escape" your path lut. So, in a ffmpeg custom node :

Code: Select all

-vf lut3d=file=C\\:/LUT_LogC_Sup_3x__4x_Rec709_800_1581766028655.cube -s 1920x1080 -c:v dnxhd -pix_fmt yuv422p -b:v 36M 
(If your lut file in on c:\ )

Code: Select all

-vf lut3d=file=C\\:/Users/output/LUTS/LUT_LogC_Sup_3x__4x_Rec709_800_1581766028655.cube -s 1920x1080 -c:v dnxhd -pix_fmt yuv422p -b:v 36M 
(for another path)

enjoy ;)

Benjamin

Re: Make New Folder

Posted: Mon Feb 17, 2020 10:55 am
by Ghtais
Hi,

if you are on AVID, you can add a LUT after transcoded your proxy with FFAstran.
Just select all your Dnx36 clip in a bin, right clic on "source setting", add your lut and apply it on all selected clips.
If you have already started your edit just refresh your sequence and the Lut will be apply on all clip in the sequence. In the same way you can remove LUT from your sequence with the refresh sequence menu (remove color)
With this workflow, you can change your LUT or remove it during the editing. It's fast and safe.

bye