CMD command to move file from one folder to another based on condition

Questions and answers on how to get the most out of FFAStrans
Post Reply
JohnB1
Posts: 35
Joined: Thu Feb 15, 2018 12:42 pm

CMD command to move file from one folder to another based on condition

Post by JohnB1 » Thu Mar 21, 2019 6:50 pm

Hi,

I want to check a file if it matches a certain resolution and then moves it to another location to proceed to the next step.

I am assuming that Command executor will be used.

What command can I use for this to work?

Thank you

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

Re: CMD command to move file from one folder to another based on condition

Post by momocampo » Thu Mar 21, 2019 7:56 pm

Hello John,
It is really easy to do.
Monitor folder> Conditional> Delivery
Set your conditional with %i_width% = 1920 (If you want only HD) and %i_height% = 1080.
These variables are in media properties selection.

You have to specify how to do if your files are not 1920x1080, otherwise nothing will do.

Cheers.

Benjamin

JohnB1
Posts: 35
Joined: Thu Feb 15, 2018 12:42 pm

Re: CMD command to move file from one folder to another based on condition

Post by JohnB1 » Fri Mar 22, 2019 9:20 am

Hi Benjamin,

Thank you for the information!

Is it possible to create a Quality Control check to see if the file passes a certain MXF format? I have the latest version of FFastrans, if that has any help.

Thank you.

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

Re: CMD command to move file from one folder to another based on condition

Post by emcodem » Fri Mar 22, 2019 9:34 am

Hey John,

do you know what exactly you want to check? e.g. can you come up with a list of tests you'd like to perform?

cheers,
Harry

JohnB1
Posts: 35
Joined: Thu Feb 15, 2018 12:42 pm

Re: CMD command to move file from one folder to another based on condition

Post by JohnB1 » Fri Mar 22, 2019 10:41 am

Hi Harry,

This is the check I want in place:

File extension: .MXF
Container: MXF OP1a
Video Codec: MPEG2
Video Bitrate: 50 Mbps
Profile: 4:2:2
Resolution: 1920x1080
Standard: PAL
Field Order: Interlaced, Top Field First
Frame Rate: 25.00 fps
Audio Codec: BWF Audio
Audio Channels: 2
Audio Sample Rate: 48kHz
Aspect Ratio: 16:9

If it is possible how can I tell the file to move to success folder if it passes or move to the failed folder if it fails.

Thank you.

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

Re: CMD command to move file from one folder to another based on condition

Post by momocampo » Fri Mar 22, 2019 11:23 am

Hi John,

I think you have all that you want in the variables setting menu.
First, set your monitor folder to sort the extension file (set only *.mxf), others files will not process. Then, use a conditional node to set all your conditions to different variables.
At last use a deliver folder to finalize your workflow.
Just create a alternative action if one of condition isn't ok (send email for example) so create email node and set in "execute on error" (right clic on green square on the left side of node).
Hope you succeed ;)

Benjamin

PS:I just not sure for the exact terms into conditional but you will find :D
Attachments
CHECK.xml
(9.3 KiB) Downloaded 66 times

JohnB1
Posts: 35
Joined: Thu Feb 15, 2018 12:42 pm

Re: CMD command to move file from one folder to another based on condition

Post by JohnB1 » Fri Mar 29, 2019 1:30 pm

Hi,

Thank you for the help!

Also is there a way of checking if the file is completed or not? As in to see if there is an issue with the file before doing a transcode by FFAStrans.

Thank you

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

Re: CMD command to move file from one folder to another based on condition

Post by momocampo » Fri Mar 29, 2019 1:42 pm

Hi,
What do you mean by "completed"? Finished to move? closed ?(for mxf file)

Post Reply