Make New Folder

Questions and answers on how to get the most out of FFAStrans
Post Reply
Matty
Posts: 2
Joined: Sat Jan 11, 2020 5:07 am

Make New Folder

Post by Matty » Sun Jan 12, 2020 6:54 am

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.

momocampo
Posts: 427
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: Make New Folder

Post by momocampo » Sun Jan 12, 2020 4:28 pm

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

Matty
Posts: 2
Joined: Sat Jan 11, 2020 5:07 am

Re: Make New Folder

Post by Matty » Sun Jan 12, 2020 4:56 pm

Thank you so very much.

lbry
Posts: 2
Joined: Tue Mar 13, 2018 8:12 am

Re: Make New Folder

Post by lbry » Fri Feb 14, 2020 10:57 pm

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

emcodem
Posts: 504
Joined: Wed Sep 19, 2018 8:11 am

Re: Make New Folder

Post by emcodem » Sat Feb 15, 2020 11:44 am

@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!

lbry
Posts: 2
Joined: Tue Mar 13, 2018 8:12 am

Re: Make New Folder

Post by lbry » Sat Feb 15, 2020 3:03 pm

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

momocampo
Posts: 427
Joined: Thu Jun 08, 2017 12:36 pm
Location: France-Paris

Re: Make New Folder

Post by momocampo » Mon Feb 17, 2020 10:44 am

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

Ghtais
Posts: 78
Joined: Thu Jan 19, 2017 11:06 am

Re: Make New Folder

Post by Ghtais » Mon Feb 17, 2020 10:55 am

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

Post Reply