CONDITIONAL QUESTION

Questions and answers on how to get the most out of FFAStrans
Post Reply
jhora
Posts: 3
Joined: Sun Dec 01, 2024 8:01 pm

CONDITIONAL QUESTION

Post by jhora »

Hi To All
I'm new here. Amazing Software that you built ...congrats.

I record a lot of *.mov files

2024-11-04_CONCERT.mov
2024-11-06_CONGRESS.mov

I'm trying to build a MP4 transcoding workflow, where after transcoding, it should move the *.mp4 file to CONCERT or CONGRESS folders. I'm trying to work this movement with the file name but without success.
attached are some printscreens
Captura de ecrã 2024-12-01, às 20.15.54.png
Captura de ecrã 2024-12-01, às 20.15.54.png (543.69 KiB) Viewed 1464 times
Captura de ecrã 2024-12-01, às 20.18.20.png
Captura de ecrã 2024-12-01, às 20.18.20.png (266.7 KiB) Viewed 1464 times
It should be something really simple.
tks in advance
Jh
emcodem
Posts: 1812
Joined: Wed Sep 19, 2018 8:11 am

Re: CONDITIONAL QUESTION

Post by emcodem »

Hey Jh, welcome to the forum and thank you for using FFAStrans!

In the Screenshot you sent bottom left you see a little ? symbol, it opens an explainative help (just in case you didnt find that yet).

There are multiple ways to get what you want, the most straight forward might be:

%s_original_name% = *CONCERT*

Your current check only works if the source name literally contains the phrase: CONTAINS "CONCERT". The conditional processor does not support "written" comparison control statements like CONTAINS. The only way to choose how the comparison is done is the middle dropdown that contains the different comparison controls we have (=, regex etc..)

Once everything works as expected, you can check the "Dispel" checkbox at the bottom, this will delete failed decision jobs.

On a sidenote, the way you do it is most natural and beginner friendly, a solid solution. Of course there are advanced ways to do this, which allow to work without a "split" and a copy of all the processors just for the purpose of dealing with 2 different target locations. You could work with user_variables and regex in order to get this done. But there is no need to play with this advanced concepts if your workflow stays as simple as it seems to be currently.
emcodem, wrapping since 2009 you got the rhyme?
jhora
Posts: 3
Joined: Sun Dec 01, 2024 8:01 pm

Re: CONDITIONAL QUESTION

Post by jhora »

Hi emcodem,
Tks a lot. Solved!
missed ? symbol.
I'll continue working on my task!
best
jh
emcodem
Posts: 1812
Joined: Wed Sep 19, 2018 8:11 am

Re: CONDITIONAL QUESTION

Post by emcodem »

Have fun!
emcodem, wrapping since 2009 you got the rhyme?
emcodem
Posts: 1812
Joined: Wed Sep 19, 2018 8:11 am

Re: CONDITIONAL QUESTION

Post by emcodem »

@mahirat
Welcome to the forum and thank you for using FFAStrans!
Of course such things are possible but in order to help you we must know what exactly you want to do, for example to what target paths would your 2 files need to be delivered?

So far you described two filenames, 2024-11-04_CONCERT.mov vs. 2024-11-06_CONGRESS.mov, you can use exactly the same method as you see above, e.g. a conditional and 2 deliver processors.
But i believe what you really want to do is to isolate the date part from the source filename and use it as target delivery folder.

For this, in a populate processor, create a new user_variable and set it to
%s_date_from_input% = $regext("%s_original_name%","(\d\d\d\d-\d\d-\d\d)"). You can then use %s_date_from_input% to construct the target path in the delivery processor.
e.g. you set c:\temp\%s_date_from_input% as target path and 2024-11-04_CONCERT.mov will be delivered to c:\temp\2024-11-04

Let me know the exact relation between your source files and target files so i might be able to come up with some small workflow example for you.
emcodem, wrapping since 2009 you got the rhyme?
Post Reply