Watch Folder_Wait for File Copy to complete

Questions and answers on how to get the most out of FFAStrans
Post Reply
erik
Posts: 2
Joined: Mon Jun 22, 2020 1:10 pm

Watch Folder_Wait for File Copy to complete

Post by erik » Mon Jun 22, 2020 1:22 pm

Hi!

I have a workflow in which a Watch Folder will pick up any video file and pass it on to the encoder. These video files already exist on my drive and will be copied to the watch folder if transcoding is desired.

Some video files are pretty large and take time to fully copy to the watch folder. It seems that Windows calculates and reserves the file size up front. The file size is not growing, like when you're exporting a video file from Adobe Premiere or Avid Mediacomposer, but the final file size is displayed immediately. This results in FFAStrans picking up the file too early and a failed job.

Is there a way to wait for a completed file copy before picking up the file? Maybe a setting I don't know about or a Command Line solution?

Thanks in advance!

Erik

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

Re: Watch Folder_Wait for File Copy to complete

Post by momocampo » Mon Jun 22, 2020 5:39 pm

Hello Erik and welcome to the forum,
I think the option that you're looking for is "check growing file", inside Monitor folder node. Choose "once".
Hope it helps ;)

Cheers.

Benjamin

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

Re: Watch Folder_Wait for File Copy to complete

Post by Ghtais » Tue Jun 23, 2020 6:37 am

Hi Erik

this is a strange problem, I'am using many workflow like that (copy file in a watch folder for encoding) and I have no issue even with big file (more than 50 Go)
As momocampo said, check growing file and once :)

bye

erik
Posts: 2
Joined: Mon Jun 22, 2020 1:10 pm

Re: Watch Folder_Wait for File Copy to complete

Post by erik » Tue Jun 23, 2020 3:00 pm

Hi everyone,

Thanks for your responses!

Unfortunately that doesn't work here. As you can see in my screenshot, I checked "check growing files" and selected "once".
These were already my settings so the problem still occurs.

Is there a command line solution which will check if a copy is completed?

Thanks again!

Erik
Attachments
ScreenShot.jpg
ScreenShot.jpg (127.88 KiB) Viewed 289 times

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

Re: Watch Folder_Wait for File Copy to complete

Post by momocampo » Tue Jun 23, 2020 3:20 pm

Hello Erik,

Weird, because this is the good option in theory.
Anyway, you can to adjust your "sleep timer" (workflow properties and general) and set to several minutes for example.
Tell us if it can help.
;)
Benjamin

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

Re: Watch Folder_Wait for File Copy to complete

Post by emcodem » Wed Jun 24, 2020 8:59 am

Hey erik,

your probelm is strange, it should actually work without problems.
As it does not work, the workaround might not work as well, but if you want to do it with batch, then try something like that:

Code: Select all

@echo off
:filenotready
echo Checking file readiness
ping 127.0.0.1 -n 4 > nul
if not exist %1 GOTO end
copy /b %1 +,,
echo %errorlevel%
if /i "%errorlevel%" NEQ "0" GOTO :filenotready
:end
Save this to a batch file e.g. c:\temp\test.bat and in your cmd executor do something like that:

Code: Select all

cmd /C ""c:\temp\test.bat" "%s_source%""

Post Reply