Page 1 of 1

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

Posted: Thu Mar 21, 2019 6:50 pm
by JohnB1
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

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

Posted: Thu Mar 21, 2019 7:56 pm
by momocampo
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

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

Posted: Fri Mar 22, 2019 9:20 am
by JohnB1
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.

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

Posted: Fri Mar 22, 2019 9:34 am
by emcodem
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,
emcodem

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

Posted: Fri Mar 22, 2019 10:41 am
by JohnB1
Hi emcodem,

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.

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

Posted: Fri Mar 22, 2019 11:23 am
by momocampo
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

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

Posted: Fri Mar 29, 2019 1:30 pm
by JohnB1
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

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

Posted: Fri Mar 29, 2019 1:42 pm
by momocampo
Hi,
What do you mean by "completed"? Finished to move? closed ?(for mxf file)